🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.gentoo.user
28 messages
28 total messages Started by Pocket Fri, 13 Nov 2026 01:30
[gentoo-user] Updating portage
#136
Author: Pocket
Date: Fri, 13 Nov 2026 01:30
25 lines
1579 bytes
Got this message

  * An update to Portage is available. It is _highly_ recommended 

  * that you update Portage now, before any other packages are updated. 

  * To update Portage, run 'emerge --oneshot sys-apps/portage' now.

Ok should up portage

Running:
emerge --oneshot sys-apps/portage

Complains about no kernel source and can not find .config and continues.

I don't have the exact message because it scrolled off the screen and I 
didn't get a chance to copy it.

Does it really need the kernel sources?

What happens if they don't exist?

-- 
Hindi madali ang maging ako
Re: [gentoo-user] Updating portage
#137
Author: Eli Schwartz
Date: Fri, 13 Nov 2026 03:40
79 lines
4706 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------0uN8uCFY3mHrvTBmBc0FhpIH
Content-Type: multipart/mixed; boundary="------------rvKOqLmlcT0LGU64oLUv0wza";
 protected-headers="v1"; hp="clear"
Message-ID: <e329670a-26b7-42b3-a821-efed0e2cae5b@gentoo.org>
Date: Thu, 12 Nov 2026 22:31:41 -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>
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: <1c9ec85d-fdf8-46ab-946e-1d2b309e5a0f@oldfart.online>

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

On 11/12/26 8:27 PM, Pocket wrote:

> Running:
> emerge --oneshot sys-apps/portage
>=20
> Complains about no kernel source and can not find .config and continues=
=2E
>=20
> I don't have the exact message because it scrolled off the screen and I=

> didn't get a chance to copy it.
>=20
> Does it really need the kernel sources?
>=20
> What happens if they don't exist?


It is entirely optional, and falls back to checking for the running
kernel's /proc/config.gz

The portage ebuild only "needs" kernel information so that it can do a
config check and report a warning when you are lacking the following
kernel options:

CONFIG_IPC_NS
CONFIG_PID_NS
CONFIG_NET_NS
CONFIG_UTS_NS

(Because portage does namespacing to isolate package builds.)

--=20
Eli Schwartz

--------------rvKOqLmlcT0LGU64oLUv0wza--

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

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

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavaEnQUDAAAAAAAKCRCEp9ErcA0vV/1O
AP9uOJzUEB2Ha7hkTVN+zkHYCwV1YO+Ho1NelwHmgYWZ0wD9HPngiZ6eD0FlT2SwEBYg8yDt9Rj6
ug31ichcqjurRQw=
=Wp07
-----END PGP SIGNATURE-----

--------------0uN8uCFY3mHrvTBmBc0FhpIH--
Re: [gentoo-user] Updating portage
#138
Author: Alexis
Date: Sat, 14 Nov 2026 02:20
13 lines
2309 bytes
Pocket <pocket@oldfart.online> writes:

> Ok should up portage
>
> Running:
> emerge --oneshot sys-apps/portage

`--oneshot` just means "don't add this package to the @world 
set". Why are you using this option in this context, rather than 
the `-u` / `--update` option?


Alexis.
Re: [gentoo-user] Updating portage
#139
Author: Sam James
Date: Sat, 14 Nov 2026 03:20
37 lines
2061 bytes
--=-=-=
Content-Type: text/plain

Alexis <flexibeast@gmail.com> writes:

> Pocket <pocket@oldfart.online> writes:
>
>> Ok should up portage
>>
>> Running:
>> emerge --oneshot sys-apps/portage
>
> `--oneshot` just means "don't add this package to the @world set". Why
> are you using this option in this context, rather than the `-u` /
> `--update` option?

Users don't need to add it into their world file and it's part of the
message Portage emits.

>
>
> Alexis.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

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

iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmr30m0bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx
QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkCOU
AP99jcKiTdHoVMv9OOoiLXAz9hiPxiVeEWsvoUFgmEH9cwEAs4Rv17pIlUK8gfx9
dI0Z+O+6pHHHRI/dbHJLxWf11w8=
=9glw
-----END PGP SIGNATURE-----
--=-=-=--
Re: [gentoo-user] Updating portage
#140
Author: Alexis
Date: Sat, 14 Nov 2026 07:00
15 lines
2492 bytes
Sam James <sam@gentoo.org> writes:

> Users don't need to add it into their world file and it's part 
> of the
> message Portage emits.

i get that it doesn't need to be added to the @world set; i've 
never thought otherwise.

What i don't get is why this is the way to update 
sys-apps/portage, and why `-u` / `--update` shouldn't be used.


Alexis.
Re: [gentoo-user] Updating portage
#141
Author: Pocket
Date: Sat, 14 Nov 2026 13:10
23 lines
1721 bytes

On 11/13/26 21:16, Alexis wrote:
> Pocket <pocket@oldfart.online> writes:
> 
>> Ok should up portage
>>
>> Running:
>> emerge --oneshot sys-apps/portage
> 
> `--oneshot` just means "don't add this package to the @world set". Why 
> are you using this option in this context, rather than the `-u` / `-- 
> update` option?
> 
> 
> Alexis.
> 

because that is what the message told me when upgrading world.


-- 
Hindi madali ang maging ako
Re: [gentoo-user] Updating portage
#142
Author: Pocket
Date: Sat, 14 Nov 2026 13:10
25 lines
1825 bytes

On 11/14/26 01:49, Alexis wrote:
> 
> Sam James <sam@gentoo.org> writes:
> 
>> Users don't need to add it into their world file and it's part of the
>> message Portage emits.
> 
> i get that it doesn't need to be added to the @world set; i've never 
> thought otherwise.
> 
> What i don't get is why this is the way to update sys-apps/portage, and 
> why `-u` / `--update` shouldn't be used.
> 
> 
> Alexis.
> 


I was just following the recommendation


-- 
Hindi madali ang maging ako
Re: [gentoo-user] Updating portage
#143
Author: Darren Kirby
Date: Sun, 15 Nov 2026 00:10
52 lines
3583 bytes
--nextPartWlEkckMfQg6aID5vlpp1GA
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Darren Kirby <darren@dragonbyte.ca>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Updating portage
Date: Sat, 14 Nov 2026 17:05:47 -0700
Message-ID: <OJFt-LFYShiX7p0CVO6pXg@dragonbyte.ca>
In-Reply-To: <87cxs7di1k.fsf@gmail.com>
MIME-Version: 1.0

On Friday, 13 November 2026 23:49:11 MST Alexis wrote:
> Sam James <sam@gentoo.org> writes:
> > Users don't need to add it into their world file and it's part
> > of the
> > message Portage emits.
> 
> i get that it doesn't need to be added to the @world set; i've
> never thought otherwise.
> 
> What i don't get is why this is the way to update
> sys-apps/portage, and why `-u` / `--update` shouldn't be used.
> 
> 
> Alexis.

I suspect it's because they want you to update portage before you do the rest 
of the world update, so the world update uses the new portage...

-D

--nextPartWlEkckMfQg6aID5vlpp1GA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

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

iQHPBAABCAA5FiEE1402jAdqhwYiTHMAIEFTe6YbkTsFAmr491sbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJECBBU3umG5E7a1ML+gNHC9ts5vnDiJEdEmV1
/7rjqug00dNb1hOyGisK39YjZLac4VyF/uQoQow+grIXvkRRPhGZVcwqo8ewAyau
EA5lcs/MP+RV7LbH9nII24kC7gCk/7HkvYFxZsKKiGi+goSnSxk7od2CEeKKrs8S
4vCK+QTqqHw/NQhQPGg1QKc2fAJcU1doT4+WXTCfB3A5kumV/XG3daxXtdGIiqwJ
m7nEk7GQbcFg4VSxubpAAHsMB6Z1iXv/bMrrLY6C4xMBINWpI6aSVfFr33Eg5B16
+Ev804Cz9bemtRze8peufu5I5/BARFBXRlFXeBLKv2wnkS5GDQhX7O7ey2SgOVmn
JQNNKSeZvnaKtnfvjaXXq68NW2Agp0eGe45Uyv7EGQR2DFxjeOwZASTR5BVf5Nuo
YKLPK9dhl/TMuaDirWV3uUtwKWYBrLH5f9k5f48+fGfTuRLqftVV5KlHum7D69VH
cM4F09PdBct7335pCsCNwVE5FnlxjoJs8x91kNFL0Xy7Dg==
=eLkz
-----END PGP SIGNATURE-----

--nextPartWlEkckMfQg6aID5vlpp1GA--
Re: [gentoo-user] Updating portage
#144
Author: Eli Schwartz
Date: Sun, 15 Nov 2026 00:20
80 lines
5139 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------Lj601hoXF3hQIFtzyWKmOXS1
Content-Type: multipart/mixed; boundary="------------s03gHkUrclGHPGLob8FibjNQ";
 protected-headers="v1"; hp="clear"
Message-ID: <d63a44c7-8950-41ff-895e-bb80fbf5e83d@gentoo.org>
Date: Sat, 14 Nov 2026 19:13:08 -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>
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: <87cxs7di1k.fsf@gmail.com>

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

On 11/14/26 1:49 AM, Alexis wrote:
>=20
> Sam James <sam@gentoo.org> writes:
>=20
>> Users don't need to add it into their world file and it's part of the
>> message Portage emits.
>=20
> i get that it doesn't need to be added to the @world set; i've never
> thought otherwise.
>=20
> What i don't get is why this is the way to update sys-apps/portage, and=

> why `-u` / `--update` shouldn't be used.
>=20
>=20
> Alexis.


The message portage emits avoids adding useless options that are
guaranteed to be incorrect.

The message portage emits is only emitted when there already *is* an
update, and therefore -u would achieve nothing other than making the
copy-pasted line to run, be longer, and possibly take more time to run
if you're typing it in manually in an environment where copy-paste does
not exist (booted to a tty?) -- hence it tells you that you should
immediately, without further delay, run the minimum critically relevant
command+options.


--=20
Eli Schwartz

--------------s03gHkUrclGHPGLob8FibjNQ--

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

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

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavj5FAUDAAAAAAAKCRCEp9ErcA0vVxgj
AP9JRHUUXkJIvnUByRnvqerSeT/vBOgupaMCkhF8OSWsoAEAuh08q75R25h+LtFADcWpoVKQGAmR
WRFwprvOz56MdQI=
=8HT6
-----END PGP SIGNATURE-----

--------------Lj601hoXF3hQIFtzyWKmOXS1--
Re: [gentoo-user] Updating portage
#145
Author: Alexis
Date: Sun, 15 Nov 2026 01:10
47 lines
3730 bytes
Darren Kirby <darren@dragonbyte.ca> writes:

> On Friday, 13 November 2026 23:49:11 MST Alexis wrote:
>> Sam James <sam@gentoo.org> writes:
>> > Users don't need to add it into their world file and it's 
>> > part
>> > of the
>> > message Portage emits.
>> 
>> i get that it doesn't need to be added to the @world set; i've
>> never thought otherwise.
>> 
>> What i don't get is why this is the way to update
>> sys-apps/portage, and why `-u` / `--update` shouldn't be used.
>> 
>> 
>> Alexis.
>
> I suspect it's because they want you to update portage before 
> you do the rest 
> of the world update, so the world update uses the new portage...

That's fine. My question is not "Why is sys-apps/portage updated 
independently of other packages?"

My core question, as i keep asking, is why `-u` / `--update` isn't 
to be used in this particular context.

Because that's what i use when i'm updating a single package or a 
number of packages. And i'm wondering if that's wrong, and if so 
_why_ it's wrong, to improve my understanding of how Portage 
works. Some people might be fine with blindly copy-and-pasting 
stuff without actually understanding what it's doing, but i'm not 
one of them, and i like to think that's reflected amongst my 2000+ 
edits to the Gentoo wiki. (As just one example: my edit of the 
"ALSA" page to explain what the `.!` syntax means and does.) 

i'm not sure how i can make my question any clearer. How about 
this: i assume there is some good reason why users shouldn't do:

# emerge -u sys-apps/portage

?


Alexis.
Re: [gentoo-user] Updating portage
#146
Author: Alexis
Date: Sun, 15 Nov 2026 01:30
55 lines
4106 bytes
Eli Schwartz <eschwartz@gentoo.org> writes:

> The message portage emits avoids adding useless options that are
> guaranteed to be incorrect.
>
> The message portage emits is only emitted when there already 
> *is* an
> update, and therefore -u would achieve nothing other than making 
> the
> copy-pasted line to run, be longer, and possibly take more time 
> to run
> if you're typing it in manually in an environment where 
> copy-paste does
> not exist (booted to a tty?) -- hence it tells you that you 
> should
> immediately, without further delay, run the minimum critically 
> relevant
> command+options.

Your message arrived just as i sent my last one.

As my last message shows, my question isn't about adding `-u` to 
`-1` (in my initial question, i asked about the reason for "using 
this option [i.e. `-1`] in this context, _rather than_ the `-u` / 
`--update` option", emphasis added) but why the command isn't 
simply:

# emerge -u sys-apps/portage

Here's what the emerge(1) man page says:

```
--update, -u
              Updates packages to the best version available, 
              which may not
              always be the highest version number due to masking 
              for testing
              and development. Package atoms specified on the 
              command line are
              greedy, meaning that unspecific atoms may match 
              multiple
              versions of slotted packages.  This option also 
              implies the
              --selective option.
```

Given your response, i even less understand what the `-u` option 
actually means and does. Does it download the best version 
available of all the listed packages, such that one doesn't need 
to use it if that's already happened but the downloaded packages 
haven't yet been installed for some reason?


Alexis.
Re: [gentoo-user] Updating portage
#147
Author: Eli Schwartz
Date: Sun, 15 Nov 2026 01:40
104 lines
6891 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------EjjnukZW0ugZT0KMf71w0MHS
Content-Type: multipart/mixed; boundary="------------z4QSXKy3atsBoNHCMqc10y96";
 protected-headers="v1"; hp="clear"
Message-ID: <086e4bc3-6336-4bae-994a-8d852cee677f@gentoo.org>
Date: Sat, 14 Nov 2026 20:29:19 -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>
 <87y0aw5cia.fsf@gentoo.org> <87cxs7di1k.fsf@gmail.com>
 <OJFt-LFYShiX7p0CVO6pXg@dragonbyte.ca> <874ididi4j.fsf@gmail.com>
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: <874ididi4j.fsf@gmail.com>

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

On 11/14/26 7:59 PM, Alexis wrote:

> My core question, as i keep asking, is why `-u` / `--update` isn't to b=
e
> used in this particular context.
>=20
> Because that's what i use when i'm updating a single package or a numbe=
r
> of packages. And i'm wondering if that's wrong, and if so _why_ it's
> wrong, to improve my understanding of how Portage works. Some people
> might be fine with blindly copy-and-pasting stuff without actually
> understanding what it's doing, but i'm not one of them, and i like to
> think that's reflected amongst my 2000+ edits to the Gentoo wiki. (As
> just one example: my edit of the "ALSA" page to explain what the `.!`
> syntax means and does.)
> i'm not sure how i can make my question any clearer. How about this: i
> assume there is some good reason why users shouldn't do:
>=20
> # emerge -u sys-apps/portage
>=20
> ?


There is no reason for or against it. Using -u is not *required*, since
the consequence of not using it, is reinstalling the exact same package
you already have -- a no-op, unless you've e.g. changed your CFLAGS or
package.use flags since the last time you built it. And -u will prevent
rebuilding for changed USE flags, so if you're going to be a stickler
for -u, maybe you should also be a stickler for -U as well? :)

But of course when you *know* that at the current point in time you've
been asked to reinstall a "new version" of a package, there is still no
need to be a stickler about passing flags to save CPU time on no-op
actions, when you know a priori that it is not going to be a no-op.

Personally, I never pass -u (nor -U) when emerging a package when the
point of emerging is *to re-merge that specific package* rather than "to
bring @world or some subset of it up to date". Why should I? I know what
the flag does, I know it is insignificant here, and it's more typing.

If someone wants to take the portage message as advice to update portage
on their own in whatever manner they think best -- all the more power to
them. If they just want to copy-paste the instructions, why should the
instructions be more complex than necessary?

The "An update to Portage is available, we recommend [...]" message is
not here to teach users about the relative merits of flags such as
--update, --changed-use versus --newuse, --ask, --usepkg-exclude
(necessary for older portage if  you have /etc/portage/patches for
portage itself!), --quiet, --verbose, or indeed any flags whatsoever. So
it doesn't. It tells you that you should run "emerge portage", and it
tells you that --oneshot is *important*, right here and right now.


--=20
Eli Schwartz

--------------z4QSXKy3atsBoNHCMqc10y96--

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

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

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavkK7wUDAAAAAAAKCRCEp9ErcA0vVx4Y
AQDWamsqjQyhL6LJZzry1TMOxtjbE56zuIIYYb8Qxdg3cgEA72kwPW8Nc0Sx/nOhMpiNqNmy8SQ+
s56+SiUqVSfRyAw=
=0tIz
-----END PGP SIGNATURE-----

--------------EjjnukZW0ugZT0KMf71w0MHS--
Re: [gentoo-user] Updating portage
#148
Author: Eli Schwartz
Date: Sun, 15 Nov 2026 01:50
126 lines
7582 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------wJP700HDrKL6T8UG7OoT04Ah
Content-Type: multipart/mixed; boundary="------------skrWJTVaSNdQoOlO9YfnjlrA";
 protected-headers="v1"; hp="clear"
Message-ID: <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>
Date: Sat, 14 Nov 2026 20:40:27 -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>
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: <87v75yc2jf.fsf@gmail.com>

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

On 11/14/26 8:21 PM, Alexis wrote:

> Your message arrived just as i sent my last one.
>=20
> As my last message shows, my question isn't about adding `-u` to `-1`
> (in my initial question, i asked about the reason for "using this optio=
n
> [i.e. `-1`] in this context, _rather than_ the `-u` / `--update`
> option", emphasis added) but why the command isn't simply:
>=20
> # emerge -u sys-apps/portage
>=20
> Here's what the emerge(1) man page says:
>=20
> ```
> --update, -u
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 Updates packages to the best version available,
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 which may not
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 always be the highest version number due to masking
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 for testing
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 and development. Package atoms specified on the
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 command line are
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 greedy, meaning that unspecific atoms may match
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 multiple
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 versions of slotted packages.=C2=A0 This option also
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 implies the
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 --selective option.
> ```
>=20
> Given your response, i even less understand what the `-u` option
> actually means and does. Does it download the best version available of=

> all the listed packages, such that one doesn't need to use it if that's=

> already happened but the downloaded packages haven't yet been installed=

> for some reason?


--update does not imply --oneshot, and --oneshot is independently
necessary to prevent recording in the world file.

--update says to install any updated versions ("downloading" does not
make sense, since all ebuilds are already downloaded and fetching
SRC_URI without installing would be controlled by --fetchonly instead).
Of course, the default is to reinstall the package at its "best version"
regardless, so, the critical point is not that --update installs the
"best version", but rather that --update **implies --selective**.

--selective does not reinstall the package if it is already installed.
So what is the purpose of --update then, if --selective stops it from
doing anything? Answer: --update does nothing other than *disable* the
--selective, if and only if the package status was "upgrade/downgrade"
rather than "reinstall"

--selective has several different filter/modifier options that exist
solely to limit the effects of --selective. Not just --update, but also
--newuse, --changed-use, --changed-deps...

One might ask, why the manpage doesn't do more to highlight the fact
that the option is actually a filter for --selective. Answer: I don't
know. :)


--=20
Eli Schwartz

--------------skrWJTVaSNdQoOlO9YfnjlrA--

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

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

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavkNiwUDAAAAAAAKCRCEp9ErcA0vV5sp
AQCE7nd2e0M0OW38mnG4VGQDTKc4tddFx5CTNfsvK2Vo7gEA2/fJ/p+1ZKWyp1J+mqn8CP/UTk9k
SUSiPlkm6fE7KgI=
=zG7Y
-----END PGP SIGNATURE-----

--------------wJP700HDrKL6T8UG7OoT04Ah--
Re: [gentoo-user] Updating portage
#149
Author: Alexis
Date: Sun, 15 Nov 2026 02:00
48 lines
3933 bytes
Eli Schwartz <eschwartz@gentoo.org> writes:

> --update does not imply --oneshot, and --oneshot is 
> independently
> necessary to prevent recording in the world file.
>
> --update says to install any updated versions ("downloading" 
> does not
> make sense, since all ebuilds are already downloaded and 
> fetching
> SRC_URI without installing would be controlled by --fetchonly 
> instead).
> Of course, the default is to reinstall the package at its "best 
> version"
> regardless, so, the critical point is not that --update installs 
> the
> "best version", but rather that --update **implies 
> --selective**.
>
> --selective does not reinstall the package if it is already 
> installed.
> So what is the purpose of --update then, if --selective stops it 
> from
> doing anything? Answer: --update does nothing other than 
> *disable* the
> --selective, if and only if the package status was 
> "upgrade/downgrade"
> rather than "reinstall"
>
> --selective has several different filter/modifier options that 
> exist
> solely to limit the effects of --selective. Not just --update, 
> but also
> --newuse, --changed-use, --changed-deps...
>
> One might ask, why the manpage doesn't do more to highlight the 
> fact
> that the option is actually a filter for --selective. Answer: I 
> don't
> know. :)

Thanks Eli: at a first skim, i think this might help me 'get 
it'. i'll take some time to read it carefully, and come back if i 
have any clarifying questions.


Alexis.
Re: [gentoo-user] Updating portage
#150
Author: Darren Kirby
Date: Sun, 15 Nov 2026 02:10
92 lines
5316 bytes
--nextPartUuBzVeRtS3an79tuf92bTA
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Darren Kirby <darren@dragonbyte.ca>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Updating portage
Date: Sat, 14 Nov 2026 18:59:02 -0700
Message-ID: <PbsXOPMpQfqPFVj2dx_diA@dragonbyte.ca>
In-Reply-To: <874ididi4j.fsf@gmail.com>
MIME-Version: 1.0

On Saturday, 14 November 2026 17:59:40 MST Alexis wrote:
> Darren Kirby <darren@dragonbyte.ca> writes:
> > On Friday, 13 November 2026 23:49:11 MST Alexis wrote:
> >> Sam James <sam@gentoo.org> writes:
> >> > Users don't need to add it into their world file and it's
> >> > part
> >> > of the
> >> > message Portage emits.
> >> 
> >> i get that it doesn't need to be added to the @world set; i've
> >> never thought otherwise.
> >> 
> >> What i don't get is why this is the way to update
> >> sys-apps/portage, and why `-u` / `--update` shouldn't be used.
> >> 
> >> 
> >> Alexis.
> > 
> > I suspect it's because they want you to update portage before
> > you do the rest
> > of the world update, so the world update uses the new portage...
> 
> That's fine. My question is not "Why is sys-apps/portage updated
> independently of other packages?"
> 
> My core question, as i keep asking, is why `-u` / `--update` isn't
> to be used in this particular context.

We've established that sys-apps/portage does not want to be in world. portage 
will add any package explicitly named on the CLI to the world file in the 
absence of the --oneshot flag. So if you just use -u, sys-apps/portage will be 
placed in @world, and already exists in @system. It's not fatal, and certainly 
it's reversible, but it is duplicated, and breaks the semantic separation 
between the two package sets. 

> Because that's what i use when i'm updating a single package or a
> number of packages. And i'm wondering if that's wrong, and if so
> _why_ it's wrong, to improve my understanding of how Portage
> works. 

Updating portage is the special case here. That's it. This does not apply to 
other packages (presuming you are fine with them in @world).  

> Some people might be fine with blindly copy-and-pasting
> stuff without actually understanding what it's doing, but i'm not
> one of them, and i like to think that's reflected amongst my 2000+
> edits to the Gentoo wiki. (As just one example: my edit of the
> "ALSA" page to explain what the `.!` syntax means and does.)
> 
> i'm not sure how i can make my question any clearer. How about
> this: i assume there is some good reason why users shouldn't do:
> 
> # emerge -u sys-apps/portage
> 
> ?
> 
> 
> Alexis.


--nextPartUuBzVeRtS3an79tuf92bTA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

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

iQHPBAABCAA5FiEE1402jAdqhwYiTHMAIEFTe6YbkTsFAmr5EeYbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJECBBU3umG5E7cfoL/0Uqo0JykxQIkc9oJ4xV
MjuCqk3sLyKIHySW4gRpweXrfrJLGsM7/phS0ZVhzAMrJZSlku/8ldeJoAAk/GBS
74eB3+yQgU6Hp66EQptbxgXaXvFM8FxoV0xJXN/HC/M8PIgdMNCZ5JODEZY4ScYj
k1wVri5BXchwzx2LqdG1x4SvsbWqExvuCurxMaSl22KZ+IKJX17FY9ghG2NRi3tc
L1fyfIYfWHrMgrrCpVKY8z/i20AvAozgZcTEWR2roZ7GEGm8d9UEINa/8WmJICDM
fnw+y84NvvugWdJNcAjPzDWECcgwRLiJ+4ouJuRbQoizZdqN3kW0JbmmEPxqxnrl
QBausWHjvFp8/JGQfooA6WBd47dduPANM1HOFUgXPS+P9uNhFm3xe4/HA3IcS8ji
HndpXL4k0MMrirgmn4bvIJNEH3hLMXQcskCpHyYo2arygbqLs1ty6qVefwSUXY/6
2e7mC7siz7wx0x9wLNXoQS59xfRgY/NC8Qt1pzeUwwozLQ==
=KK9Z
-----END PGP SIGNATURE-----

--nextPartUuBzVeRtS3an79tuf92bTA--
Re: [gentoo-user] Updating portage
#151
Author: Michael Orlitzky
Date: Sun, 15 Nov 2026 02:10
6 lines
1617 bytes
On 2026-11-14 20:40:27, Eli Schwartz wrote:
> 
> --update does not imply --oneshot, and --oneshot is independently
> necessary to prevent recording in the world file.

https://bugs.gentoo.org/397313
Re: [gentoo-user] Updating portage
#152
Author: Dale
Date: Sun, 15 Nov 2026 04:00
83 lines
7539 bytes
On 11/14/26 7:59 PM, Michael Orlitzky wrote:
> On 2026-11-14 20:40:27, Eli Schwartz wrote:
>> --update does not imply --oneshot, and --oneshot is independently
>> necessary to prevent recording in the world file.
> https://bugs.gentoo.org/397313


I'd like to add something that I have posted before.  When I do a fresh 
install, I'm real careful to only emerge packages that I want in the 
world file.  Be that Firefox, chrony, file system packages, KDE meta 
packages or whatever it is that I need directly.  I let emerge handle 
whatever those packages need to work.  Once I get the install done and 
most all the packages I want/need is installed, I then add --oneshot to 
EMERGE_DEFAULT_OPTS in make.conf.  That way if I'm trying to work around 
a block or some other conflict later on, I don't add packages to the 
world file by accident.  The default is, don't put it in the world file.

If I later need to add a package to the world file, I just use --select 
y in the emerge command.  Since the command line overrides the options 
in make.conf, it ignores the oneshot option and adds that package to the 
world file.  Doing it this way takes care of me forgetting to add -1 and 
figuring out at what times I must use it. It is the default setting and 
the only time it matters, is when I need to add something to the world 
file that I directly use. Actually, that isn't very often for me.

Way back in 2003 when I started using Gentoo, and my memory was a LOT 
better, I would still forget to add the -1 option.  At some point, after 
emerging packages sometimes with version numbers, I started running into 
blocks and could not figure out why I couldn't work around them.  I seem 
to recall posting on this list or the forum and being told to check the 
world file.  Let's just say that my world file was a absolute mess.  It 
was a disaster.  It had the packages I needed directly which is fine, 
including version numbers at times which is not fine, but it also had 
dependencies of those packages that I emerged when trying to work around 
conflicts and such which was just plain bad.  The emerge program wasn't 
near as good as it is today so working around conflicts was a lot more 
common back then.  It took me a long while, hours at least, to clean up 
the world file.  I started out by removing packages with versions, if it 
was a package I knew I used directly, I just removed the version part.  
Then I removed packages that I'd never heard of and didn't use 
directly.  Once that was cleaned up, I wanted to know how to prevent 
that from happening again and that is when I learned about the 
EMERGE_DEFAULT_OPTS setting in make.conf.  I've done it this way ever 
since.  Even on this new rig I built a year or so ago, I did my install, 
using -1 when needed, but once I had installed everything I knew I 
wanted installed, I added --oneshot to make.conf.  For the few packages, 
like tools for my m.2 stick, that I found out I needed later, I just 
emerged those with --select y so that it would add it to the world file.

I'd like to point out.  I think mentioning doing it this way in the 
install guide, close to the end, would be a good idea.  Maybe it is 
nowadays but I don't recall ever seeing it.  Mention the pros and cons 
if needed.  I learned the hard way that knowing when to use -1 and when 
not to isn't always clear.  For me at least, it is a lot easier to 
complete a install and then add that option in make.conf which prevents 
making a mess in the world file.  It's bad enough to have dependencies 
in there but when you add a package with a version number specified, 
that really messes things up.  It can cause a lot of other updates to be 
skipped because of incompatibility.  I'm not saying that everyone should 
use this method.  Maybe it isn't a good idea for some.  I suspect tho, 
for most Gentoo users, it is a good idea.  I'm also not saying it should 
be the default.  Actually, it shouldn't be the default.  One only really 
wants to do this once most or all the packages that are directly needed 
are installed, then set this in make.conf.

When I see a update to portage, I just do a 'emerge portage'. That's 
it.  The emerge options it needs are already set in make.conf and I 
don't have to worry about the world file getting entries it shouldn't have.

Now, if some dev or other people think mentioning this in the install 
guide, somewhere close to the end and not the beginning, then feel free 
to take the stick and run with it.  I know doing it this way has 
prevented a lot of problems over the years for me.  I suspect some 
others have seen me mention this in the past and grabbed this idea as 
well.  I will say, once the install is done, unless you install and 
remove packages a lot, there really isn't much of a downside to this 
method.

I'm out of steam.  o_-  Age and health is creeping up on me.

Dale

:-)  :-)
Re: [gentoo-user] Updating portage
#153
Author: 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--
Re: [gentoo-user] Updating portage
#154
Author: Alexis
Date: Sun, 15 Nov 2026 05:30
32 lines
3532 bytes
Darren Kirby <darren@dragonbyte.ca> writes:

> We've established that sys-apps/portage does not want to be in 
> world. portage 
> will add any package explicitly named on the CLI to the world 
> file in the 
> absence of the --oneshot flag.

Thanks, that's part of what i was missing; i wouldn't have 
necessarily expected that to happen in the presence of `-u`.

(And just to be clear, i don't have any significant problem with 
the fact that it _does_ happen. As someone who's spent so much 
time working on Gentoo documentation, if i'm asking about a 
particular thing, it's usually not to _challenge_ it, but to 
_grok_ it - not only for myself, but also so that i can find the 
best way of explaining it to others, typically via updating the 
wiki, without losing core information. Subjectively, it's felt to 
me that the number of PipeWire-/WirePlumber-related questions on 
the forums has decreased since my work on those and related 
pages.)

But more generally, Eli's post - message ID 
54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org, in reply to my 
post in which i mention what the emerge(1) man page says - seems 
to be getting at the underlying mechanics i was seeking 
information about. And as i wrote, i'll come back to that if 
there's anything i'd still like clarification on.


Alexis.
Re: [gentoo-user] Updating portage
#155
Author: Michael Orlitzky
Date: Sun, 15 Nov 2026 11:50
48 lines
3786 bytes
On 2026-11-14 23:02:40, Eli Schwartz wrote:
> That ticket's arguments are less than perfectly compelling. :)

I've come to terms with the fact that there are two valid opinions on
this, even if one of them is clearly wrong and the people who hold it
are lunatics :P


> > 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.

It's not about the historical behavior of portage, but a different
take on the orthogonal options thing. Update should only update.
Update doing add-to-world AND update is the surprise. A plain "emerge"
will also do an update, and adds things to the world file, so all you
ever need is,

  * emerge <flags>
  * emerge -u1 <flags>

Given that, why do I have to add -1 every time? As Zac (and now Dale)
have pointed out, you can fix this in your EMERGE_DEFAULT_OPTS, but
you shouldn't have to.


> 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".

Back in 2012, this could still be considered a regression from when it
was fixed the first time. Given the choice between the two ways it can
bite you, I think ending up with mystery packages in @world is the
worse of the two failure modes.

I admitted defeat long ago however. I now run a custom profile in an
overlay: every package, and every user/group, on every machine, is
accounted for. Pretty much anything in @world means I forgot the -1 at
some point.
Re: [gentoo-user] Updating portage
#156
Author: Ben Knoble
Date: Sun, 15 Nov 2026 13:40
70 lines
5301 bytes
> Le 14 nov. 2026 à 20:40, Eli Schwartz <eschwartz@gentoo.org> a écrit :
> 
> On 11/14/26 8:21 PM, Alexis wrote:
> 
>> Your message arrived just as i sent my last one.
>> 
>> As my last message shows, my question isn't about adding `-u` to `-1`
>> (in my initial question, i asked about the reason for "using this option
>> [i.e. `-1`] in this context, _rather than_ the `-u` / `--update`
>> option", emphasis added) but why the command isn't simply:
>> 
>> # emerge -u sys-apps/portage
>> 
>> Here's what the emerge(1) man page says:
>> 
>> ```
>> --update, -u
>>              Updates packages to the best version available,
>>              which may not
>>              always be the highest version number due to masking
>>              for testing
>>              and development. Package atoms specified on the
>>              command line are
>>              greedy, meaning that unspecific atoms may match
>>              multiple
>>              versions of slotted packages.  This option also
>>              implies the
>>              --selective option.
>> ```
>> 
>> Given your response, i even less understand what the `-u` option
>> actually means and does. Does it download the best version available of
>> all the listed packages, such that one doesn't need to use it if that's
>> already happened but the downloaded packages haven't yet been installed
>> for some reason?
> 
> 
> --update does not imply --oneshot, and --oneshot is independently
> necessary to prevent recording in the world file.
> 
> --update says to install any updated versions ("downloading" does not
> make sense, since all ebuilds are already downloaded and fetching
> SRC_URI without installing would be controlled by --fetchonly instead).
> Of course, the default is to reinstall the package at its "best version"
> regardless, so, the critical point is not that --update installs the
> "best version", but rather that --update **implies --selective**.

Let me see if I follow.

* the default emerge behavior, given the portage atom,
is to reinstall, updating if available, and record in world.

> --selective does not reinstall the package if it is already installed.
> So what is the purpose of --update then, if --selective stops it from
> doing anything? Answer: --update does nothing other than *disable* the
> --selective, if and only if the package status was "upgrade/downgrade"
> rather than "reinstall"

* By adding the update flag, we instruct emerge to carry out 
said behavior only if an upgrade is actually available. In this case, 
we know one is, so we don’t need emerge to spend time filtering.

(And of course we don’t usually want to record portage in world.)

If I’ve got all that right, then I understand why the emerge manual
advises -u on portage when an emerge breaks on newer, not yet available
features: we want to update iff one is available. But it seems we
are missing -1 there!
Re: [gentoo-user] Updating portage
#159
Author: Andre de Lima Schwarz
Date: Sun, 15 Nov 2026 16:10
225 lines
13127 bytes
--000000000000577a7d066052cb5f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Just my two cents here. I think that prompt makes it easier to copy and
paste a command to address the issue. It is perfect for newcomers and lazy
users (like me).

It would be cool if Portage upgraded itself before parsing the other
packages instead, unless the user added the "--exclude 'sys-apps/portage'"
parameter to the emerge command. However, this and other added
functionalities could risk bloating up the package manager, with drawbacks
outweighing benefits.

And I'm pretty sure devs added other parameters to that copy-and-paste
command we would be discussing why those had been added instead of other
ones, like those who are the objects of litigation here.

Regards,
Andr=C3=A9

Em dom., 15 de nov. de 2026 =C3=A0s 13:29, Ben Knoble <ben.knoble@gmail.com=
>
escreveu:

>
> > Le 14 nov. 2026 =C3=A0 20:40, Eli Schwartz <eschwartz@gentoo.org> a =C3=
=A9crit :
> >
> > =EF=BB=BFOn 11/14/26 8:21 PM, Alexis wrote:
> >
> >> Your message arrived just as i sent my last one.
> >>
> >> As my last message shows, my question isn't about adding `-u` to `-1`
> >> (in my initial question, i asked about the reason for "using this opti=
on
> >> [i.e. `-1`] in this context, _rather than_ the `-u` / `--update`
> >> option", emphasis added) but why the command isn't simply:
> >>
> >> # emerge -u sys-apps/portage
> >>
> >> Here's what the emerge(1) man page says:
> >>
> >> ```
> >> --update, -u
> >>              Updates packages to the best version available,
> >>              which may not
> >>              always be the highest version number due to masking
> >>              for testing
> >>              and development. Package atoms specified on the
> >>              command line are
> >>              greedy, meaning that unspecific atoms may match
> >>              multiple
> >>              versions of slotted packages.  This option also
> >>              implies the
> >>              --selective option.
> >> ```
> >>
> >> Given your response, i even less understand what the `-u` option
> >> actually means and does. Does it download the best version available o=
f
> >> all the listed packages, such that one doesn't need to use it if that'=
s
> >> already happened but the downloaded packages haven't yet been installe=
d
> >> for some reason?
> >
> >
> > --update does not imply --oneshot, and --oneshot is independently
> > necessary to prevent recording in the world file.
> >
> > --update says to install any updated versions ("downloading" does not
> > make sense, since all ebuilds are already downloaded and fetching
> > SRC_URI without installing would be controlled by --fetchonly instead).
> > Of course, the default is to reinstall the package at its "best version=
"
> > regardless, so, the critical point is not that --update installs the
> > "best version", but rather that --update **implies --selective**.
>
> Let me see if I follow.
>
> * the default emerge behavior, given the portage atom,
> is to reinstall, updating if available, and record in world.
>
> > --selective does not reinstall the package if it is already installed.
> > So what is the purpose of --update then, if --selective stops it from
> > doing anything? Answer: --update does nothing other than *disable* the
> > --selective, if and only if the package status was "upgrade/downgrade"
> > rather than "reinstall"
>
> * By adding the update flag, we instruct emerge to carry out
> said behavior only if an upgrade is actually available. In this case,
> we know one is, so we don=E2=80=99t need emerge to spend time filtering.
>
> (And of course we don=E2=80=99t usually want to record portage in world.)
>
> If I=E2=80=99ve got all that right, then I understand why the emerge manu=
al
> advises -u on portage when an emerge breaks on newer, not yet available
> features: we want to update iff one is available. But it seems we
> are missing -1 there!
>
>

--000000000000577a7d066052cb5f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div>Just my two cents here. I think that p=
rompt makes it easier to copy and paste a command to address the issue. It =
is perfect for newcomers and lazy users (like me).<br><br></div>It would be=
 cool if Portage upgraded=C2=A0itself before parsing the other packages ins=
tead, unless the user added the &quot;--exclude &#39;sys-apps/portage&#39;&=
quot; parameter to the emerge command. However, this and other added functi=
onalities could risk bloating up the package manager, with drawbacks outwei=
ghing=C2=A0benefits.<br><br></div>And I&#39;m pretty sure devs added other =
parameters to that copy-and-paste command we would be discussing why those =
had been added instead of other ones, like those who are the objects of lit=
igation here.<br><br></div>Regards,<br></div>Andr=C3=A9</div><br><div class=
=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr=
">Em dom., 15 de nov. de 2026 =C3=A0s 13:29, Ben Knoble &lt;<a href=3D"mail=
to:ben.knoble@gmail.com">ben.knoble@gmail.com</a>&gt; escreveu:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex"><br>
&gt; Le 14 nov. 2026 =C3=A0 20:40, Eli Schwartz &lt;<a href=3D"mailto:eschw=
artz@gentoo.org" target=3D"_blank">eschwartz@gentoo.org</a>&gt; a =C3=A9cri=
t :<br>
&gt; <br>
&gt; =EF=BB=BFOn 11/14/26 8:21 PM, Alexis wrote:<br>
&gt; <br>
&gt;&gt; Your message arrived just as i sent my last one.<br>
&gt;&gt; <br>
&gt;&gt; As my last message shows, my question isn&#39;t about adding `-u` =
to `-1`<br>
&gt;&gt; (in my initial question, i asked about the reason for &quot;using =
this option<br>
&gt;&gt; [i.e. `-1`] in this context, _rather than_ the `-u` / `--update`<b=
r>
&gt;&gt; option&quot;, emphasis added) but why the command isn&#39;t simply=
:<br>
&gt;&gt; <br>
&gt;&gt; # emerge -u sys-apps/portage<br>
&gt;&gt; <br>
&gt;&gt; Here&#39;s what the emerge(1) man page says:<br>
&gt;&gt; <br>
&gt;&gt; ```<br>
&gt;&gt; --update, -u<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Updates packages t=
o the best version available,<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 which may not<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 always be the high=
est version number due to masking<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for testing<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 and development. P=
ackage atoms specified on the<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 command line are<b=
r>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 greedy, meaning th=
at unspecific atoms may match<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 multiple<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 versions of slotte=
d packages.=C2=A0 This option also<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 implies the<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --selective option=
.<br>
&gt;&gt; ```<br>
&gt;&gt; <br>
&gt;&gt; Given your response, i even less understand what the `-u` option<b=
r>
&gt;&gt; actually means and does. Does it download the best version availab=
le of<br>
&gt;&gt; all the listed packages, such that one doesn&#39;t need to use it =
if that&#39;s<br>
&gt;&gt; already happened but the downloaded packages haven&#39;t yet been =
installed<br>
&gt;&gt; for some reason?<br>
&gt; <br>
&gt; <br>
&gt; --update does not imply --oneshot, and --oneshot is independently<br>
&gt; necessary to prevent recording in the world file.<br>
&gt; <br>
&gt; --update says to install any updated versions (&quot;downloading&quot;=
 does not<br>
&gt; make sense, since all ebuilds are already downloaded and fetching<br>
&gt; SRC_URI without installing would be controlled by --fetchonly instead)=
.<br>
&gt; Of course, the default is to reinstall the package at its &quot;best v=
ersion&quot;<br>
&gt; regardless, so, the critical point is not that --update installs the<b=
r>
&gt; &quot;best version&quot;, but rather that --update **implies --selecti=
ve**.<br>
<br>
Let me see if I follow.<br>
<br>
* the default emerge behavior, given the portage atom,<br>
is to reinstall, updating if available, and record in world.<br>
<br>
&gt; --selective does not reinstall the package if it is already installed.=
<br>
&gt; So what is the purpose of --update then, if --selective stops it from<=
br>
&gt; doing anything? Answer: --update does nothing other than *disable* the=
<br>
&gt; --selective, if and only if the package status was &quot;upgrade/downg=
rade&quot;<br>
&gt; rather than &quot;reinstall&quot;<br>
<br>
* By adding the update flag, we instruct emerge to carry out <br>
said behavior only if an upgrade is actually available. In this case, <br>
we know one is, so we don=E2=80=99t need emerge to spend time filtering.<br=
>
<br>
(And of course we don=E2=80=99t usually want to record portage in world.)<b=
r>
<br>
If I=E2=80=99ve got all that right, then I understand why the emerge manual=
<br>
advises -u on portage when an emerge breaks on newer, not yet available<br>
features: we want to update iff one is available. But it seems we<br>
are missing -1 there!<br>
<br>
</blockquote></div>

--000000000000577a7d066052cb5f--
Re: [gentoo-user] Updating portage
#162
Author: Eli Schwartz
Date: Sun, 15 Nov 2026 17:20
95 lines
5643 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------JuHuLgtGprn7RnGMx0NnyaWW
Content-Type: multipart/mixed; boundary="------------1msxdlWD1NY6POihLBeovqOK";
 protected-headers="v1"; hp="clear"
Message-ID: <91a47cd3-fbf2-42de-8246-2ec42cb38ad0@gentoo.org>
Date: Sun, 15 Nov 2026 12:11:13 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [gentoo-user] Updating portage
To: gentoo-user@lists.gentoo.org
References: <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>
 <3DD0E94B-F372-4747-BD54-4E12F3130590@gmail.com>
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: <3DD0E94B-F372-4747-BD54-4E12F3130590@gmail.com>

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

On 11/15/26 8:29 AM, Ben Knoble wrote:

> Let me see if I follow.
>=20
> * the default emerge behavior, given the portage atom,
> is to reinstall, updating if available, and record in world.
>=20
>> --selective does not reinstall the package if it is already installed.=

>> So what is the purpose of --update then, if --selective stops it from
>> doing anything? Answer: --update does nothing other than *disable* the=

>> --selective, if and only if the package status was "upgrade/downgrade"=

>> rather than "reinstall"
>=20
> * By adding the update flag, we instruct emerge to carry out=20
> said behavior only if an upgrade is actually available. In this case,=20
> we know one is, so we don=E2=80=99t need emerge to spend time filtering=
=2E


The act of filtering the depgraph probably doesn't take the time here,
it is the time spent compiling what's already installed. :P


> (And of course we don=E2=80=99t usually want to record portage in world=
=2E)
>=20
> If I=E2=80=99ve got all that right, then I understand why the emerge ma=
nual
> advises -u on portage when an emerge breaks on newer, not yet available=

> features: we want to update iff one is available. But it seems we
> are missing -1 there!


I don't understand the question(s). Can we back up for a second?

You want to know more and better understand why the emerge manual
advises -u on portage, and why it is missing -1. Can you please start
off by pointing to where in the manual it does in fact say any such
thing? We can proceed from there once we are all on the same page about
what we are discussing.


--=20
Eli Schwartz

--------------1msxdlWD1NY6POihLBeovqOK--

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

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

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavnnsQUDAAAAAAAKCRCEp9ErcA0vV6Bu
AQDzP+RNdoyYddcEiR2D/Hh95Kt1OxBChqUz6NXj9fWpLAD/fCr1zzcdf5+l1CAjYZYL8Cf98kV3
AsU79sVvWGXINAA=
=qNT+
-----END PGP SIGNATURE-----

--------------JuHuLgtGprn7RnGMx0NnyaWW--
Re: [gentoo-user] Updating portage
#176
Author: D. Ben Knoble
Date: Tue, 17 Nov 2026 14:00
61 lines
5811 bytes
Hi Eli,

On Sun, Nov 15, 2026 at 12:11 PM Eli Schwartz <eschwartz@gentoo.org> wrote:
>
> On 11/15/26 8:29 AM, Ben Knoble wrote:
>
> > Let me see if I follow.
> >
> > * the default emerge behavior, given the portage atom,
> > is to reinstall, updating if available, and record in world.

> > * By adding the update flag, we instruct emerge to carry out
> > said behavior only if an upgrade is actually available. In this case,
> > we know one is, so we don’t need emerge to spend time filtering.
>
> The act of filtering the depgraph probably doesn't take the time here,
> it is the time spent compiling what's already installed. :P

Ah, thanks for correcting my imprecision :)

> > (And of course we don’t usually want to record portage in world.)
> >
> > If I’ve got all that right, then I understand why the emerge manual
> > advises -u on portage when an emerge breaks on newer, not yet available
> > features: we want to update iff one is available. But it seems we
> > are missing -1 there!
>
> I don't understand the question(s). Can we back up for a second?
>
> You want to know more and better understand why the emerge manual
> advises -u on portage, and why it is missing -1. Can you please start
> off by pointing to where in the manual it does in fact say any such
> thing? We can proceed from there once we are all on the same page about
> what we are discussing.

Here's emerge(1) from "NOTES" (although the formatting looks a little
wonky to me, with "NOTES" indented under "OUTPUT" and it's first
paragraph indented further, but continuation paragraphs at the same
level as "NOTES"?):

     If  emerge  --update @system or emerge --update @world fails with an error
     message, it may be that an ebuild uses some newer feature not  present  in
     this  version  of emerge.  You can use emerge --update sys-apps/portage to
     upgrade to the latest version, which should support any necessary new fea‐
     tures.

I think I understand why "-u" on portage is suggested here: we *don't*
know if there's an update in this case. But, following the logic from
the prior discussion, shouldn't we also have "-1" ?

Thanks
-- 
D. Ben Knoble
[gentoo-user] [PATCH] man: advise -1 when advising to update portage itself on failure
#177
Author: Eli Schwartz
Date: Tue, 17 Nov 2026 14:30
41 lines
3566 bytes
The current advice is:

> it may be that an ebuild uses some newer feature not  present  in this
> version of emerge. You can use emerge --update sys-apps/portage to
> upgrade to the latest version, which should support any necessary new
> features.

It's an okay idea, it *might* help, though generally not since it is far
more likely that the ebuild itself has a bug or the source code is
incompatible with updated deps/compiler/etc. But that advice is
inconsistent with the message we print to the console on `emerge --sync`,
telling you to make sure that it is reinstalled with --oneshot. That is
important because we don't want to unnecessarily add portage to the
world file when it belongs in the system set instead.

Reported-by: D. Ben Knoble <ben.knoble@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
---

Seems easily fixed, thanks for pointing this out.

 man/emerge.1 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/emerge.1 b/man/emerge.1
index c280bd94d..825d0c318 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -1389,8 +1389,8 @@ permanent, you can put them in /etc/portage/package.use instead.
 If \fBemerge \-\-update @system\fR or \fBemerge \-\-update @world\fR
 fails with an error message, it may be that an ebuild uses some
 newer feature not present in this version of \fBemerge\fR.  You
-can use \fBemerge \-\-update sys-apps/portage\fR to upgrade to the latest
-version, which should support any necessary new features.
+can use \fBemerge \-\-oneshot \-\-update sys-apps/portage\fR to upgrade
+to the latest version, which should support any necessary new features.
 .SH "MASKED PACKAGES"
 \fINOTE: Please use caution when using development packages.  Problems
 and bugs resulting from misusing masked packages drains Gentoo
-- 
2.56.1
[gentoo-user] Re: [PATCH] man: advise -1 when advising to update portage itself on failure
#178
Author: D. Ben Knoble
Date: Tue, 17 Nov 2026 14:50
58 lines
5887 bytes
Hi Eli,

On Tue, Nov 17, 2026 at 9:28 AM Eli Schwartz <eschwartz@gentoo.org> wrote:
>
> The current advice is:
>
> > it may be that an ebuild uses some newer feature not  present  in this
> > version of emerge. You can use emerge --update sys-apps/portage to
> > upgrade to the latest version, which should support any necessary new
> > features.
>
> It's an okay idea, it *might* help, though generally not since it is far
> more likely that the ebuild itself has a bug or the source code is
> incompatible with updated deps/compiler/etc. But that advice is
> inconsistent with the message we print to the console on `emerge --sync`,
> telling you to make sure that it is reinstalled with --oneshot. That is
> important because we don't want to unnecessarily add portage to the
> world file when it belongs in the system set instead.
>
> Reported-by: D. Ben Knoble <ben.knoble@gmail.com>
> Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
> ---
>
> Seems easily fixed, thanks for pointing this out.
>
>  man/emerge.1 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/man/emerge.1 b/man/emerge.1
> index c280bd94d..825d0c318 100644
> --- a/man/emerge.1
> +++ b/man/emerge.1
> @@ -1389,8 +1389,8 @@ permanent, you can put them in /etc/portage/package.use instead.
>  If \fBemerge \-\-update @system\fR or \fBemerge \-\-update @world\fR
>  fails with an error message, it may be that an ebuild uses some
>  newer feature not present in this version of \fBemerge\fR.  You
> -can use \fBemerge \-\-update sys-apps/portage\fR to upgrade to the latest
> -version, which should support any necessary new features.
> +can use \fBemerge \-\-oneshot \-\-update sys-apps/portage\fR to upgrade
> +to the latest version, which should support any necessary new features.
>  .SH "MASKED PACKAGES"
>  \fINOTE: Please use caution when using development packages.  Problems
>  and bugs resulting from misusing masked packages drains Gentoo
> --
> 2.56.1

Looks good to me, thanks for the patch.

While I'm at it, I wonder if the ".TP" line prior to the NOTES header
is responsible for the formatting anomalies?
https://gitweb.gentoo.org/proj/portage.git/tree/man/emerge.1#n1436

Best,
-- 
D. Ben Knoble
[gentoo-user] [PATCH] man: fix wonky indent style for notes
#179
Author: Eli Schwartz
Date: Tue, 17 Nov 2026 15:10
34 lines
2828 bytes
This indentation macro does not appear to have been anything other than
a total mistake. The NOTES section is a global section.

Removing it, makes it a global section.

Keeping it in makes just a single paragraph, "You should almost always
precede any package install [...] been particularly active", end up as
an indented "NOTES" child of the "OUTPUT" section, and then "You also
want to typically use --update, [...]" and following output is just
continuation paragraphs of "OUTPUT".

Reported-by: D. Ben Knoble <ben.knoble@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
---

Tested and confirmed that this makes a drastic improvement.

 man/emerge.1 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/man/emerge.1 b/man/emerge.1
index 825d0c318..25099f246 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -1357,7 +1357,6 @@ Symbol	Mask Type
 \fBNOTE:\fR The unstable keyword symbol (\[ti]) will not be shown in cases
 in which the corresponding unstable keywords have been accepted
 globally via \fBACCEPT_KEYWORDS\fR.
-.TP
 
 
 .SH "NOTES"
-- 
2.56.1
[gentoo-user] Re: [PATCH] man: fix wonky indent style for notes
#180
Author: Ben Knoble
Date: Tue, 17 Nov 2026 16:20
42 lines
3557 bytes
> Le 17 nov. 2026 à 10:08, Eli Schwartz <eschwartz@gentoo.org> a écrit :
> 
> This indentation macro does not appear to have been anything other than
> a total mistake. The NOTES section is a global section.
> 
> Removing it, makes it a global section.
> 
> Keeping it in makes just a single paragraph, "You should almost always
> precede any package install [...] been particularly active", end up as
> an indented "NOTES" child of the "OUTPUT" section, and then "You also
> want to typically use --update, [...]" and following output is just
> continuation paragraphs of "OUTPUT".
> 
> Reported-by: D. Ben Knoble <ben.knoble@gmail.com>
> Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
> ---
> 
> Tested and confirmed that this makes a drastic improvement.
> 
> man/emerge.1 | 1 -
> 1 file changed, 1 deletion(-)
> 
> diff --git a/man/emerge.1 b/man/emerge.1
> index 825d0c318..25099f246 100644
> --- a/man/emerge.1
> +++ b/man/emerge.1
> @@ -1357,7 +1357,6 @@ Symbol    Mask Type
> \fBNOTE:\fR The unstable keyword symbol (\[ti]) will not be shown in cases
> in which the corresponding unstable keywords have been accepted
> globally via \fBACCEPT_KEYWORDS\fR.
> -.TP
> 
> 
> .SH "NOTES"
> --
> 2.56.1

Much appreciated. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads