Gentoo Archives: gentoo-portage-dev

From: Marius Mauch <genone@g.o>
To: gentoo-portage-dev@g.o
Subject: Re: [gentoo-portage-dev] if (world file) then {no add to world when update pkg}
Date: Thu, 11 Dec 2003 14:04:58
Message-Id: 20031211203726.455748db.genone@gentoo.org
In Reply to: [gentoo-portage-dev] if (world file) then {no add to world when update pkg} by "Patrick Börjesson"
1 On 12/11/03 Patrick Börjesson wrote:
2
3 > I just thought that if portage-ng is to rely on a world file just as
4 > current portage, then one idea would be to not add the packages you
5 > update manually with 'emerge -u <package name>' to it.
6 > There was a thread in gentoo-user today which took up this matter when
7 > someone asked for a way to update all the packages currently installed
8 > on his machine. One method is to run 'emerge -Du `qpkg -I -nc`', but
9 > as someone pointed out, this would add every single package you have
10 > on your system to your world file (which I guess nobody wants) if you
11 > didn't supply the --oneshot flag to emerge. I propose that the default
12 > behaviour for portage-ng would be to check whether the package you're
13 > trying to update is already installed on the system, else do nothing.
14 > And if it's installed it shouldn't add the package to world after the
15 > merging is completed (which it currently does).
16 > Would there be some negative sides of doing it this way? And if not,
17 > why is this not default behaviour in current portage?
18 > Feedback (in all its forms) appreciated.
19
20 Maybe it's just me, but I find this logic weird: you basically say that
21 you care about the versions of all packages, but not their existence.
22 The qpkg hack is nowhere mentioned in the docs, so it's up to the people
23 to add the --oneshot parameter if they don't want the packages in their
24 world file. Also I'd really discourage people from using -u with other
25 targets than world or system, as in 90% of all cases it's doing more
26 then they want (updating dependencies even if it's not strictly
27 necessary).
28 What I want to say is that the world file lists the packages you care
29 about and I don't really see the reason why people are interested in
30 updating packages they don't care about (except for security bugs, but
31 that is another issue with a different solution).
32
33 Marius
34
35 --
36 Public Key at http://www.genone.de/info/gpg-key.pub
37
38 In the beginning, there was nothing. And God said, 'Let there be
39 Light.' And there was still nothing, but you could see a bit better.