[gentoo-user] Re: Confessional: how I generally use emerge.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 03/18/2016 02:43 PM, »Q« wrote: > On Thu, 17 Mar 2016 20:37:04 -0400 Alec Ten Harmsel > wrote: > >>> emerge --update --newuse --deep --with-bdeps=y system >>> --keep-going >> >> Add "--oneshot", same reasoning as above. > > When the target is a set (in this case @system), does portage ever > add all of it to @world? > > > The correct answer for this is "it depends". Each set can be configured to be included or not in the world_sets file, based usually on the type of set. The file /usr/share/portage/config/sets/portage.conf declares many sets, setting "world-candidate = True" for some of them. Others (like @world, @selected, and @system) are not candidates for @world. Note that the "@world" set itself is declared to be exactly the three sets "@profile @selected @system" -- @system is the usual system set, @selected is the contents of the "world" and "world_sets" files, and @profile is certain packages that used to be defined as required in profiles without being listed in @system (I don't believe this functionality is used in the tree any more). - -- Jonathan Callen -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQIcBAEBCgAGBQJW7yKvAAoJEEIQbvYRB3mgONYQAJbXimtAn8pGuU96707g6+Cm yfWlZ1QoLM6GNcw20V42sSfioZiHPlAgE+tj2fn+W3e51xwQrBoY2i4JO/3waiy4 j9m6XxC7wjV1ZFzCvS6SavuAYTegkRNRPonC0pKwb2y5zQV64t9tFyhm+bGt4ixn k3rUjC82YsVEE/Jf4TNdKYvcZL9Qh9h2xSpvWAE1zn9yvtlrjAiAcNC+ZSbSYnHB FBYN/C7jniv03zTqnzgsfygF+23FB57AScJWFAFg1g2l7c34PhBcdHLi206fLQsX YhNsHd7mgkSBNhRBH9SaLxI6YG3ldCivKbmzSXdZ2SozRVL+8uqff9RH6JsdOtZE lTnjxHZ/UV1ZNeUB+4A4tkQlthXewDzdyts+ChTzxlNnVA/YD+zk3JxdCg7Y0t6x skFmg5Yqhlbq0CLiidllQeHQIEyCHShjMag+Fw7SP0OEJj9mm4IkjAkymuJbnkv7 iqm3Yvsx401+JIByhgUqUIrSlxc0TN0porlC7JP+oXr30vLcDZlrqqsAXq7i1gvG jM5tL50aP7OCx+bXbVWF31vJYDCts5DQZ5z/pJaCHapgevGbHTXNBeTSQyQuttzr 6fBArEdCW8bHpJzMxRqGHaTICKAAUtJXttt+qyWO0bmRrOsnoPjMliu5vhRbGOjI 3q6JRiM4NkYkgTscKvRo =u0eN -END PGP SIGNATURE-
Re: [gentoo-user] Re: Confessional: how I generally use emerge.
»Q« wrote: > On Sat, 19 Mar 2016 19:03:24 +0200 > Alan McKinnon wrote: > Recording @testset in "world_sets" favorites file... > I had also been under the mistaken impression that --update > implied --oneshot, but I see that it's not so. > > > > Don't worry, a lot of us learned that the hard way. Dale :-) :-)
[gentoo-user] Re: Confessional: how I generally use emerge.
On Sat, 19 Mar 2016 19:03:24 +0200 Alan McKinnon wrote: > On 19/03/2016 18:43, »Q« wrote: > > On Fri, 18 Mar 2016 23:55:19 +0200 > > Alan McKinnon wrote: > > > >> On 18/03/2016 20:43, »Q« wrote: > >>> On Thu, 17 Mar 2016 20:37:04 -0400 > >>> Alec Ten Harmsel wrote: > >>> > > emerge --update --newuse --deep --with-bdeps=y system > > --keep-going > > Add "--oneshot", same reasoning as above. > >>> > >>> When the target is a set (in this case @system), does portage ever > >>> add all of it to @world? [big snip] > @module-rebuild is a dynamic set. It translates to "all the packages > you have emerged that install out-of-tree kernel modules" > > So not really a fair comparison. Compare instead against a regular > static set - "a bunch of packages defined by you that go together and > live in /etc/portage/sets/" Thanks much for the lesson. I may hijack more of the OP's threads to ask about trivia. :) $ sudo emerge --noreplace @testset Calculating dependencies... done! >>> Recording @testset in "world_sets" favorites file... I had also been under the mistaken impression that --update implied --oneshot, but I see that it's not so.
Re: [gentoo-user] Re: Confessional: how I generally use emerge.
On 19/03/2016 18:43, »Q« wrote: > On Fri, 18 Mar 2016 23:55:19 +0200 > Alan McKinnon wrote: > >> On 18/03/2016 20:43, »Q« wrote: >>> On Thu, 17 Mar 2016 20:37:04 -0400 >>> Alec Ten Harmsel wrote: >>> > emerge --update --newuse --deep --with-bdeps=y system > --keep-going Add "--oneshot", same reasoning as above. >>> >>> When the target is a set (in this case @system), does portage ever >>> add all of it to @world? >> >> Effectively, yes. That's not what the code does of course (they go >> into world_sets) but the behaviour is as if the set was in world, and >> gets added/removed as a complete unit > > Hmm, that doesn't match my experience. I just tested with the smallest > set I ever use, @module-rebuild : > > # emerge @module-rebuild > Calculating dependencies... done! Verifying ebuild manifests Emerging (1 of 1) app-emulation/virtualbox-modules-4.3.32::gentoo Installing (1 of 1) app-emulation/virtualbox-modules-4.3.32::gentoo Jobs: 1 of 1 complete Load avg: 2.04, 0.80, 0.52 Auto-cleaning packages... > No outdated packages were found on your system. > > * GNU info directory index is up-to-date. > # cat /var/lib/portage/world_sets > # file /var/lib/portage/world_sets > /var/lib/portage/world_sets: empty > > I don't think I have anything in make.conf which would change the > default behavior WRT world_sets, but here's what I have anyway: > > FEATURES="binpkg-logs buildsyspkg collision-protect downgrade-backup > fail-clean fixlafiles news parallel-fetch parallel-install > preserve-libs sandbox strict unknown-features-warn userfetch > userpriv usersandbox usersync" > > EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=8 --load-average 11.2 > --with-bdeps y" > > > @module-rebuild is a dynamic set. It translates to "all the packages you have emerged that install out-of-tree kernel modules" So not really a fair comparison. Compare instead against a regular static set - "a bunch of packages defined by you that go together and live in /etc/portage/sets/" -- Alan McKinnon alan.mckin...@gmail.com
[gentoo-user] Re: Confessional: how I generally use emerge.
On Fri, 18 Mar 2016 23:55:19 +0200 Alan McKinnon wrote: > On 18/03/2016 20:43, »Q« wrote: > > On Thu, 17 Mar 2016 20:37:04 -0400 > > Alec Ten Harmsel wrote: > > > >>> emerge --update --newuse --deep --with-bdeps=y system > >>> --keep-going > >> > >> Add "--oneshot", same reasoning as above. > > > > When the target is a set (in this case @system), does portage ever > > add all of it to @world? > > Effectively, yes. That's not what the code does of course (they go > into world_sets) but the behaviour is as if the set was in world, and > gets added/removed as a complete unit Hmm, that doesn't match my experience. I just tested with the smallest set I ever use, @module-rebuild : # emerge @module-rebuild Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-emulation/virtualbox-modules-4.3.32::gentoo >>> Installing (1 of 1) app-emulation/virtualbox-modules-4.3.32::gentoo >>> Jobs: 1 of 1 complete Load avg: 2.04, >>> 0.80, 0.52 Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. # cat /var/lib/portage/world_sets # file /var/lib/portage/world_sets /var/lib/portage/world_sets: empty I don't think I have anything in make.conf which would change the default behavior WRT world_sets, but here's what I have anyway: FEATURES="binpkg-logs buildsyspkg collision-protect downgrade-backup fail-clean fixlafiles news parallel-fetch parallel-install preserve-libs sandbox strict unknown-features-warn userfetch userpriv usersandbox usersync" EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=8 --load-average 11.2 --with-bdeps y"
Re: [gentoo-user] Re: Confessional: how I generally use emerge.
On 18/03/2016 20:43, »Q« wrote: > On Thu, 17 Mar 2016 20:37:04 -0400 > Alec Ten Harmsel wrote: > >>> emerge --update --newuse --deep --with-bdeps=y system --keep-going >> >> Add "--oneshot", same reasoning as above. > > When the target is a set (in this case @system), does portage ever add > all of it to @world? > > Effectively, yes. That's not what the code does of course (they go into world_sets) but the behaviour is as if the set was in world, and gets added/removed as a complete unit -- Alan McKinnon alan.mckin...@gmail.com
[gentoo-user] Re: Confessional: how I generally use emerge.
On Thu, 17 Mar 2016 20:37:04 -0400 Alec Ten Harmsel wrote: > > emerge --update --newuse --deep --with-bdeps=y system --keep-going > > Add "--oneshot", same reasoning as above. When the target is a set (in this case @system), does portage ever add all of it to @world?
Re: [gentoo-user] Re: Confessional: how I generally use emerge.
On Fri, Mar 18, 2016 at 01:43:53PM -0500, »Q« wrote: > On Thu, 17 Mar 2016 20:37:04 -0400 > Alec Ten Harmsel wrote: > > > > emerge --update --newuse --deep --with-bdeps=y system --keep-going > > > > Add "--oneshot", same reasoning as above. > > When the target is a set (in this case @system), does portage ever add > all of it to @world? > Apparently it does not. I know it does that for individual packages, so I just assumed it did that for sets as well. I stand corrected. Alec