Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 393517

Summary: add reference to fixpackages in the emerge --package-moves docs
Product: Portage Development Reporter: Jeroen Roovers (RETIRED) <jer>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 381649    

Description Jeroen Roovers (RETIRED) gentoo-dev 2011-12-07 14:26:48 UTC
I don't know whether this should be an enhancement or whether it's a bug or whether I simply don't use the right configuration, but it takes ages to run `PORTDIR_OVERLAY=/foo emerge --nodeps cat/pkg' when that overlay contains profiles/updates.

I often do this when a CVS update on the gentoo-x86 tree gives me early access to a new or changed ebuild, but since FEATURES=-fixpackages is now gone, it seems to always run, and takes ages to complete (especially since all of PORTDIR, PORTDIR_OVERLAY and PKGDIR are shared over NFS).

The only workaround appears to be to delete profiles/updates/* on the overlay, and `cvs update' when I actually need it.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-07 14:40:23 UTC
Of interest as well is that at the point when this happens, it doesn't matter whether there is any difference in content between PORTDIR/profiles/updates and the overlay. Maybe the files' *time is taken into account, but touching all the files in either profiles/updates does not seem to have the desired effect.
Comment 2 Zac Medico gentoo-dev 2011-12-07 14:55:03 UTC
You should use --package-moves=n to temporarily disable package moves. I actually have this setting in my EMERGE_DEFAULT_OPTS, since I frequently switch trees for testing purposes, and I really only want package moves applied once every few weeks when I do full system updates.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-07 15:18:04 UTC
Ah yes, that actually skips the updates.

I'll leave it to you to decide what to do with this report. Maybe this warrants some more documentation about the move from fixpackages to --package-moves.
Comment 4 Zac Medico gentoo-dev 2011-12-07 17:29:40 UTC
Bug 386871 is the only other bug that I remember being filed about the fixpackages thing. I guess we can wait until after this change goes to stable, and then see what kind of reaction we get from the stable users.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-07 18:16:27 UTC
I guess the trouble is that make.conf(5) no longer mentions fixpackages, but doesn't mention its replacement either. emerge(1) does mention --package-moves, but does not mention that this is the new fixpackages.

emerge(1) appears to mention the string "packages" about a hundred times, and make.conf mentions it around two dozen times. :)
Comment 6 Zac Medico gentoo-dev 2011-12-07 19:24:04 UTC
I've added a man page for the fixpackages(1) command, and cross-referenced it in the emerge(1) --package-moves docs:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c93a46851c43f7e8539a67b2376dc8f55af41789

So, now searching for 'fixpackages' in the emerge(1) man page will turn up a the --package-moves option. Is that better?
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-10 17:04:17 UTC
That will do nicely. :)
Comment 8 Zac Medico gentoo-dev 2011-12-11 09:00:16 UTC
This is fixed in 2.1.10.40 and 2.2.0_alpha80.