Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How 2 emerge binary app not matching footprint [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Mon Dec 25, 2023 5:08 pm    Post subject: How 2 emerge binary app not matching footprint [solved] Reply with quote

A local script builds binary package twice, with #.
Each has its own report, later allowing which of the two to install.

If decision for install goes for the second everything goes fine.
When trying to install the first one, it size will misfit the one recorded in $PKGDIR/Packages.

I guess $PKGDIR/Packages could be temporary renamed;
Any better way?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Wed Dec 27, 2023 12:36 am; edited 3 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Mon Dec 25, 2023 5:28 pm    Post subject: Reply with quote

CaptainBlood,

Code:
FEATURES="binpkg-multi-instance"
maybe?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Mon Dec 25, 2023 5:30 pm    Post subject: Reply with quote

Oh boy!
$PKGDIR/Packages seems mandatory.

Guess its time to read https://wiki.gentoo.org/wiki/Binary_package_guide

EDIT: That's a waste :(

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Mon Dec 25, 2023 5:46 pm    Post subject: Reply with quote

CaptainBlood,

Yep, Packages is mandatory now. It wasn't always but if its not in Packages, portage won't see it.
The good news is that it can be regenerated now too.

I found all that out the hard way, just like you, too. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Mon Dec 25, 2023 5:54 pm    Post subject: Reply with quote

NeddySeagoon wrote:
CaptainBlood,

Code:
FEATURES="binpkg-multi-instance"
maybe?
Seems the way to go as PKGDIR/packages keeps track of each $PKGDIR/<cat>/<package>/*-{1,2,...,n].gpkg.tar.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Tue Dec 26, 2023 12:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
The good news is that it can be regenerated now too.
Sorry to ask, could you please elaborate how to regenerate, as I currently fail to find out?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Tue Dec 26, 2023 12:07 pm    Post subject: Reply with quote

Never mind,
Got it Wiki

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Tue Dec 26, 2023 1:14 pm    Post subject: Reply with quote

Code:
--digest
    Prevent corruption from being noticed. The `repoman manifest` command is the preferred way to generate manifests and it is capable of doing an entire repository or category at once (see repoman(1)).
… maybe?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Tue Dec 26, 2023 5:46 pm    Post subject: Reply with quote

Zucca wrote:
Code:
--digest
    Prevent corruption from being noticed. The `repoman manifest` command is the preferred way to generate manifests and it is capable of doing an entire repository or category at once (see repoman(1)).
… maybe?
???

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Tue Dec 26, 2023 6:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Tue Dec 26, 2023 5:59 pm    Post subject: Reply with quote

local script generates 2 binary pkg:
first generated is renamed with .lto-no extension.
second is renamed with .lto extension.

when updating index for the second binary pkg, the index for the first is somehow corrupted, leading to:
Code:
>>> Emerging binary (1 of 1) $CATEGORY/$PF::$REPO
!!! Tried to use non-existent binary for '$CATEGORY/$PF::$REPO'
!!! Likely caused by an outdated index. Run 'emaint binhost -f'.


So this 'emaint binhost --fix' from the Wiki seems mandatory previous to any renamed binpkg install

What a drag!
Moreover this is time consuming!

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Tue Dec 26, 2023 6:13 pm    Post subject: Reply with quote

CaptainBlood wrote:
???
If you can't emerge the other binary package, because it's checksum/size does not match to the expected values, you could pass --digest switch to emerge, so that it skips such checks.

I'm not 100% certain it works with precompiled/binary packages, but worth a try?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Tue Dec 26, 2023 6:17 pm    Post subject: Reply with quote

Ok, I see...
EDIT: Doesn't work.
EDIT2: I'm refraining hard from ranting.
Thks 4 ur attention, interest & support
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Dec 26, 2023 9:41 pm    Post subject: Reply with quote

why not set your script to target directory name instead of altering package name?
PKGDIR="blahblah/binpkg-nolto"
and PKGDIR="blahblah/binkpg-lto"

later the script doesn't need to find the package name, just the right PKGDIR to use
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Tue Dec 26, 2023 10:35 pm    Post subject: Reply with quote

You can set FEATURES="-pkgdir-index-trusted" if you want to avoid regenerating the index with emaint binhost -f or emaint all -f, which is the old default, but then your Portage gets slower.

EDIT: Updated the wiki to explicitly mention this.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Wed Dec 27, 2023 12:29 am    Post subject: Reply with quote

sam_ wrote:
You can set FEATURES="-pkgdir-index-trusted" if you want to avoid regenerating the index with emaint binhost -f or emaint all -f, which is the old default, but then your Portage gets slower.

EDIT: Updated the wiki to explicitly mention this.
Speed is back. Nice.
A better wiki is also nice.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Wed Dec 27, 2023 12:31 am    Post subject: Reply with quote

krinn wrote:
why not set your script to target directory name instead of altering package name?
PKGDIR="blahblah/binpkg-nolto"
and PKGDIR="blahblah/binkpg-lto"

later the script doesn't need to find the package name, just the right PKGDIR to use
Investigating...

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum