🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #153

Re: [gentoo-user] Updating portage

#153
From: Eli Schwartz
Date: Sun, 15 Nov 2026 04:10
193 lines
10626 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------7cm00ItsxHVo5w0l2Jnz06pO
Content-Type: multipart/mixed; boundary="------------1a0HDFDXqP04XHVW6FVedEhh";
 protected-headers="v1"; hp="clear"
Message-ID: <85efae59-4228-4855-b158-d96f81398bf5@gentoo.org>
Date: Sat, 14 Nov 2026 23:02:40 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [gentoo-user] Updating portage
To: gentoo-user@lists.gentoo.org
References: <1c9ec85d-fdf8-46ab-946e-1d2b309e5a0f@oldfart.online>
 <87ld6wcg45.fsf@gmail.com> <87y0aw5cia.fsf@gentoo.org>
 <87cxs7di1k.fsf@gmail.com> <d63a44c7-8950-41ff-895e-bb80fbf5e83d@gentoo.org>
 <87v75yc2jf.fsf@gmail.com> <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>
 <avkSAphjmqQZ5BVe@mertle>
Content-Language: en-US
From: Eli Schwartz <eschwartz@gentoo.org>
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
In-Reply-To: <avkSAphjmqQZ5BVe@mertle>

--------------1a0HDFDXqP04XHVW6FVedEhh
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 11/14/26 8:59 PM, Michael Orlitzky wrote:
> On 2026-11-14 20:40:27, Eli Schwartz wrote:
>>=20
>> --update does not imply --oneshot, and --oneshot is independently=20
>> necessary to prevent recording in the world file.
>=20
> https://bugs.gentoo.org/397313


That ticket's arguments are less than perfectly compelling. :)


> There are people who defend the current behavior, but the only reason=20
> (seriously) I've heard is that "Zac must have had a good reason to do=20
> it."

> There seems to be no better argument for the new behavior than "I
> think that's how it should be."


Consider: a user wants to use a package and have it explicitly installed
so it doesn't get depcleaned. The user can either do:

```
# now I can use this wonderful package
emerge --noreplace foobar && emerge -u foobar

# the package is definitely installed but maybe the wrong version
emerge -1u foobar

# should this be like 1 or 2?
emerge -u foobar
```

Now tomorrow, "baz" drops its dependency on foobar, and baz gets emerged
(with -1u of course). A depclean would remove foobar if -u didn't record
it in world, and really spoil the day of the user who wanted it
installed. Requiring users to utilize option 1 gives very "workaround
for bad behavior" vibes IMO. I also don't think that "always use -1u by
default" is hard to understand, and I find it hard to evaluate

> The problem is that many users are essentially /born/ thinking that --
> update should not add packages to world


without a good idea of why people should ever think that in the first
place -- assuming the only documentation they've read never said that it
implies -1, and they've only used portage since 2008 or later, or so,
and never saw any other behavior. Additionally Zac's argument about
"pure" options, is easy to fit into people's heads -- it was my
assumption before I read the manpage.

Now for some comparative distro digging:

- Debian:
  apt install foobar, records in "world"
  apt upgrade foobar, records in world and upgrades both world+foobar
  apt install --only-upgrade foobar, does not record in world
  apt install alreadyinstalled, verbosely records in world
  apt install outofdate, updates and silently records in world

- Fedora:
  dnf install foobar, records in world
  dnf install outofdate, says "nothing to do"
  dnf update outofdate, updates, does not change world
  dnf install alreadyinstalled, says nothing to do
  dnf install dependency, does not add to world

- Arch Linux:
  pacman -Su, update world
  pacman -S --asdeps foobar, installs, does not record in world
  pacman -S foobar, installs and adds to world
  pacman -S alreadyinstalled, reinstalls, does not modify world
  pacman -S --needed alreadyinstalled, no-op, does not modify world
  pacman -S outofdate, updates, does not modify world
  pacman -S --needed outofdate, updates, does not modify world
  pacman -S --asexplicit alreadyinstalled outofdate, installs both,
        modifies both in world

- Alpine:
  apk add foobar, adds foobar to /etc/apk/world, then installs it
  apk fix foobar, says "ok" after checking CONTENTS for all packages
        (foobar will not be installed)
  apk fix alreadyinstalled, reinstalls alreadyinstalled, does not modify
        world, says "OK" to world CONTENTS
  apk fix outofdate, says "skipping outofdate", "OK" to world CONTENTS
  apk add alreadyinstalled, adds alreadyinstalled to world, says "OK" to
        world CONTENTS
  apk del alreadyinstalled, removes alreadyinstalled from world, then
        uninstalls it



I can understand the dnf behavior, since "install" can never do anything
other than install a package you do not have at all, and then it records
in world. For installed packages, regardless of status, you use
"update", which does not modify world (and the behavior of this is very
obvious due to being an unrelated major mode). "dnf mark
{dependency|user} foobar" is available if needed.

I can understand debian, it *consistently* adds everything to world,
despite having *separate commands for installing and upgrading*, and if
you ever pass a package name you must pass the equivalent of --oneshot,
which is kind of like gentoo except that it has two commands for
virtually no reason, plus some arbitrary metrics for when to TELL you
what it's doing. Which is insane, but it's not the kind of insane that
matters here.

I can understand Arch Linux, since like Fedora it never modifies world
unless you go out of your way to ask for it. It also has only one
command for both installing and upgrading, like Gentoo, which some
people might call a mistake.

I can understand Alpine, since the basic principle is "screw you, use
the world file" and you cannot have packages installed if they aren't in
world (removing a package from world will automatically depclean it),
which is a very "elegant" way of not having to worry about the behavior
of --oneshot in combination with upgrade.


Where is the prior art for emerge to record packages in the world file,
even if they are already installed, but not when explicitly saying not
to, and *also* not when upgrading an old version?

=2E..

I would say that as a general rule of thumb, the worst case scenario
isn't even "behavior that some people disagree with", but rather
"behavior that changes, and the change surprises and upsets some
people". If some people don't like behavior that has always existed,
then that's just a documentation or teaching issue, but behavior that
has changed is a workflow-violating regression.

Workflow-violating regressions require a rather high bar to be
implemented. You ideally have to argue that the previous behavior was SO
bad that the benefits of changing it outweigh the drawbacks to a
significant enough extent that people who are bothered by the change
will be effectively swayed / rendered impotent by "we unfortunately had
no choice and you are wrong to have the feelings that you have".


--=20
Eli Schwartz

--------------1a0HDFDXqP04XHVW6FVedEhh--

--------------7cm00ItsxHVo5w0l2Jnz06pO
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavku4AUDAAAAAAAKCRCEp9ErcA0vVxY0
AP97PNntUL899Y63RpCfG8YTjX5JqtHivUzCNk+JwoJR0gEAz5rIxLIVAV+SOoX3CuhtW14T+enq
129AW1uDgpGx1wg=
=6m4M
-----END PGP SIGNATURE-----

--------------7cm00ItsxHVo5w0l2Jnz06pO--
Technical Details
Message-ID: <NZzIZ-bY5C-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NYOh3-bx6D-3@gated-at.bofh.it> <NZbwZ-bKu6-3@gated-at.bofh.it> <NZct3-bL4N-1@gated-at.bofh.it> <NZfTX-bMW9-1@gated-at.bofh.it> <NZw8p-bW3A-1@gated-at.bofh.it> <NZxe9-bWAQ-3@gated-at.bofh.it> <NZxxv-bWHW-1@gated-at.bofh.it> <NZxQR-bWXS-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Eli Schwartz <eschwartz@gentoo.org>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Updating portage
Date: Sun, 15 Nov 2026 05:10:01 +0100
Message-ID: <NZzIZ-bY5C-1@gated-at.bofh.it>
References: <NYOh3-bx6D-3@gated-at.bofh.it> <NZbwZ-bKu6-3@gated-at.bofh.it> <NZct3-bL4N-1@gated-at.bofh.it> <NZfTX-bMW9-1@gated-at.bofh.it> <NZw8p-bW3A-1@gated-at.bofh.it> <NZxe9-bWAQ-3@gated-at.bofh.it> <NZxxv-bWHW-1@gated-at.bofh.it> <NZxQR-bWXS-5@gated-at.bofh.it>
X-Original-To: gentoo-user@lists.gentoo.org
List-ID: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="------------7cm00ItsxHVo5w0l2Jnz06pO"
Approved: robomod@news.nic.it
Lines: 193
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 14 Nov 2026 23:02:40 -0500
X-Original-Message-ID: <85efae59-4228-4855-b158-d96f81398bf5@gentoo.org>
X-Original-References: <1c9ec85d-fdf8-46ab-946e-1d2b309e5a0f@oldfart.online>
 <87ld6wcg45.fsf@gmail.com> <87y0aw5cia.fsf@gentoo.org>
 <87cxs7di1k.fsf@gmail.com> <d63a44c7-8950-41ff-895e-bb80fbf5e83d@gentoo.org>
 <87v75yc2jf.fsf@gmail.com> <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>
 <avkSAphjmqQZ5BVe@mertle>