Gentoo Archives: gentoo-portage-dev

From: "Marijn Schouten (hkBst)" <hkBst@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: Conflicting RDEPENDS
Date: Wed, 03 Jun 2009 11:07:15
Message-Id: 4A2658F0.2080201@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Re: Conflicting RDEPENDS by Alec Warner
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Alec Warner wrote:
5 > On Sun, May 31, 2009 at 4:21 AM, Marijn Schouten (hkBst)
6 > <hkBst@g.o> wrote:
7 > Duncan wrote:
8 >>>> Patrick Börjesson <psychotical@×××××××.com> posted
9 >>>> 20090529201741.GB11660@×××××.nexus, excerpted below, on Fri, 29 May 2009
10 >>>> 22:17:41 +0200:
11 >>>>
12 >>>>> Why exactly would you want to use --oneshot for a "leaf package" that is
13 >>>>> not depended on by any other package in the world set? If spam IS
14 >>>>> depended on by any other package (recursively) in the world set, it will
15 >>>>> be pulled in by --complete-graph, but that's not the case here if i
16 >>>>> understand it correctly, thus it's a package that you explicitly wanted
17 >>>>> installed, thus it belongs in the world set, and you should thus not use
18 >>>>> --oneshot for it.
19 >>>> I use -1 by default, here (via scriptlet), mainly so I don't have to
20 >>>> worry about cluttering up my world file while emerging individual
21 >>>> packages, just as I always use -NuD with my @system and @world runs.
22 >>>>
23 >>>> But for leaf packages, it serves as a sort of test install as well.
24 >>>> Since I always do revdep-rebuild -p and emerge --depclean -p after every
25 >>>> update (typically 2-3 times a week), then rebuild and clean as I need to,
26 >>>> keeping the "trial merges" on the depclean list for a few days keeps me
27 >>>> aware of them. If I know it's something I want to keep, I run a
28 >>>> different scriptlet without the -1, but that's not often once a system is
29 >>>> up and running with the normal working set merged. Meanwhile, I
30 >>>> ultimately either emerge -C (or let depclean handle it) the "trialware",
31 >>>> or emerge --noreplace, thus adding it to world.
32 >>>>
33 >>>> But experimental installs and their deps typically sit in the --depclean
34 >>>> list for anything from a few minutes to a few days, until I decide
35 >>>> whether I want to keep or remove them.
36 >>>>
37 >>>> If he was testing how the switches under discussion here worked and has a
38 >>>> similar policy, I could easily see him using -1 by habit, even if he
39 >>>> didn't explicitly reason that it was a test and therefore something he
40 >>>> didn't want in @world.
41 > I think this is an interesting use-case. It would be very simple to handle it by
42 > introducing an additional file that the package manager would use to record the
43 > packages that are installed on trial-basis. This would make it possible to
44 > include these packages in dep-calculations, while still distinguishing them from
45 > packages that are in @world. Of course you can also fake it by creating a local
46 > virtual/trialware package (or possibly a @trialware group) of which you edit the
47 > deps, but this would be less convenient. For my personal workflow using -1 for
48 > trials is working well enough, atm.
49 >
50 >> Why is a custom set less convenient?
51
52 Well, instead of "emerge --trialware package" you would first have to edit your
53 @trialware set and then "emerge @trialware". The same goes for when you want to
54 remove some trialware.
55 Perhaps some generalization of --trialware along the lines of
56 - --add-to-set=trialware could be fleshed out as a useful extension of portage.
57
58 Marijn
59
60 - --
61 If you cannot read my mind, then listen to what I say.
62
63 Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
64 <http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
65 -----BEGIN PGP SIGNATURE-----
66 Version: GnuPG v2.0.11 (GNU/Linux)
67 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
68
69 iEYEARECAAYFAkomWO8ACgkQp/VmCx0OL2wGHACfdlOdzvfLM3aUafiuOVQTlRnz
70 vvMAoMMeLUxnM2i8fpJhClxbsIqwMf3Z
71 =HSIG
72 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-portage-dev] Re: Conflicting RDEPENDS "René 'Necoro' Neumann" <lists@××××××.eu>
Re: [gentoo-portage-dev] Re: Conflicting RDEPENDS Alec Warner <antarus@g.o>