Users have been reporting strange behavior when installing gentoo-sources in a stage3 image after having selected the systemd profile. Portage attempts to install sys-fs/static-dev for no apparent reason. kernel-2.eclass has this weird dep, which I am asking to be removed (bug 550086). PDEPEND="!build? ( virtual/dev-manager )" What I don't understand is why it tries to install sys-fs/static-dev instead of rebuilding virtual/udev with the systemd USE flag set. To reproduce, unpack a stage3 tarball and chroot. Then run: # eselect profile set default/linux/amd64/13.0/systemd # emerge -pv1 gentoo-sources These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-apps/makedev-3.23.1::gentoo USE="-build (-selinux)" 0 KiB [ebuild N ] sys-fs/static-dev-0.1::gentoo 0 KiB [ebuild N ] sys-devel/bc-1.06.95::gentoo USE="readline -libedit -static" 0 KiB [ebuild N ] sys-kernel/gentoo-sources-3.18.12:3.18.12::gentoo USE="-build -deblob -experimental -symlink" 352 KiB Total: 4 packages (4 new), Size of downloads: 352 KiB
(In reply to Mike Gilbert from comment #0) > What I don't understand is why it tries to install sys-fs/static-dev instead > of rebuilding virtual/udev with the systemd USE flag set. 'emerge foo' never rebuilds or updates installed packages unless they are needed to satisfy dependencies. In this case, there's a "valid" solution that doesn't require virtual/udev to be rebuilt. I would advise users against switching profiles without running 'emerge -uDN @world' immediately afterwards.
Thanks for the advice; re-assigning to the docs team in that case.
Does everyone agree that running 'emerge -uDN @world' is the proper solution? If so, then I'll simply add a small paragraph after selecting the profiles and will close this bug.
Mathew, if this will be a generic "when switching profiles" paragraph, it is probably a good time to mention "enalyze" from gentoolkit. It has the capability of building a package.use file to maintain the installed pkgs state. This would be for established systems, not a fresh stage3. When you switch profiles, on an established system the many use flags enabled and pkgs installed could be greatly affected by a profile switch, which a user may not want to happen. "enalyze rebuild use" can be used to create a package.use file with settings to maintain the current installed state of those packages.
Brian, good to know! I'll consider writing this up somewhere as well.
Just added a section called "Updating the @world set" that fixes this bug. See below for the changes. Feel free to revise as necessary: https://wiki.gentoo.org/index.php?title=Handbook%3AParts%2FInstallation%2FBase&type=revision&diff=463920&oldid=463906