View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Mon Dec 25, 2023 5:08 pm Post subject: How 2 emerge binary app not matching footprint [solved] |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54261 Location: 56N 3W
|
Posted: Mon Dec 25, 2023 5:28 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Mon Dec 25, 2023 5:30 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54261 Location: 56N 3W
|
Posted: Mon Dec 25, 2023 5:46 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Mon Dec 25, 2023 5:54 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Tue Dec 26, 2023 12:00 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Tue Dec 26, 2023 12:07 pm Post subject: |
|
|
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 |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3346 Location: Rasi, Finland
|
Posted: Tue Dec 26, 2023 1:14 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Tue Dec 26, 2023 5:46 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Tue Dec 26, 2023 5:59 pm Post subject: |
|
|
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 |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3346 Location: Rasi, Finland
|
Posted: Tue Dec 26, 2023 6:13 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Tue Dec 26, 2023 6:17 pm Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Dec 26, 2023 9:41 pm Post subject: |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1678
|
Posted: Tue Dec 26, 2023 10:35 pm Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Wed Dec 27, 2023 12:29 am Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3628
|
Posted: Wed Dec 27, 2023 12:31 am Post subject: |
|
|
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 |
|
|
|