Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550088 - Update handbook to advise performing a world update immediately after selecting profile
Summary: Update handbook to advise performing a world update immediately after selecti...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Marchese
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 22:52 UTC by Mike Gilbert
Modified: 2016-03-04 00:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2015-05-21 22:52:36 UTC
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
Comment 1 Zac Medico gentoo-dev 2015-05-21 23:51:16 UTC
(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.
Comment 2 Mike Gilbert gentoo-dev 2015-05-22 02:10:58 UTC
Thanks for the advice; re-assigning to the docs team in that case.
Comment 3 Matthew Marchese Gentoo Infrastructure gentoo-dev 2016-01-21 09:22:56 UTC
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.
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2016-01-21 16:20:51 UTC
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.
Comment 5 Matthew Marchese Gentoo Infrastructure gentoo-dev 2016-03-01 22:38:32 UTC
Brian, good to know! I'll consider writing this up somewhere as well.
Comment 6 Matthew Marchese Gentoo Infrastructure gentoo-dev 2016-03-04 00:13:17 UTC
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