when runnig emerge --depclean, got a huge list of cadidates, including packages i have just emerged 10 minutes ago. I have checked /var/lib/portage/world file and the packages i just emerged are not there :( Reproducible: Always Steps to Reproduce: 1. emerge -u emul-linux-x86-sdl 2. emerge --depclean (or) 2. cat /var/lib/portage/world Actual Results: >>> Waiting 10 seconds before starting... >>> (Control-C to abort)... >>> Depclean in: 10 9 8 7 6 5 4 3 2 1 Calculating depclean dependencies ... done! ... app-emulation/emul-linux-x86-sdl selected: 1.2.8-r1 protected: none omitted: none ... + more than a half of my system (kdevelop, ntp, pciutils, logrotate just to name a few). Packages both emerged manually by myself as well as these emerged a sdependencies. Expected Results: packages that were not emerged with --oneshot shall be added to world file and excluded from depclean procedure.
I'm not sure but I think this is wanted. If I update a dependency (a library) I don't want to have it saved in the worldfile. Probably it should fail if called with a package which is not installed.
well, either one way or another. Libraries get updated usually anyway while doing emerge -uDp world, but it would be ok with me if emerge -u would not add the package to the wordwile as long as it doesn't emerge new packages. Because the way its done now, people may (like i did) end up having most of the packages 'orphaned'
Yep. There's a couple of bugs like this now. The idea was that a lot of users want to upgrade libraries and such without adding them to world. Time for those users to start using --oneshot (again).
I agree that this is a problem. I've been using "--update" whenever installing a package, with the idea that this would mean: "update to the latest version if it's already installed, or otherwise install it". I now have a bunch of packages missing in /var/lib/portage/world. :-( I still think that this is the best behaviour. "--oneshot" should be used precisely for the purpose indicated in the man page: "Emerge as normal, but do not add the packages to the world profile for later updating". "Hardware" should be changed to "all", BTW.
*** This bug has been marked as a duplicate of 48181 ***