View previous topic :: View next topic |
Author |
Message |
midnite Guru


Joined: 09 Apr 2006 Posts: 471 Location: Hong Kong
|
Posted: Fri Jun 06, 2025 8:05 pm Post subject: Emerge with --update --selective=n ? |
|
|
By accident, I discovered this strange behaviour that I cannot explain.
Code: | # qlist -vIRUS sys-kernel/gentoo-kernel
sys-kernel/gentoo-kernel-6.12.28:6.12.28::gentoo debug -experimental -generic-uki -hardened initramfs -modules-compress -modules-sign -savedconfig -secureboot strip -test |
Case 1:
Code: | # EMERGE_DEFAULT_OPTS='' emerge -pv -- sys-kernel/gentoo-kernel
...
[ebuild NS ] sys-kernel/gentoo-kernel-6.12.31:6.12.31::gentoo [6.12.28:6.12.28::gentoo] USE="debug initramfs strip -experimental (-generic-uki) -hardened -modules-compress -modules-sign -savedconfig -secureboot -test" 2,193 KiB
[ebuild U ] virtual/dist-kernel-6.12.31:0/6.12.31::gentoo [6.12.28:0/6.12.28::gentoo] 0 KiB
Total: 2 packages (1 upgrade, 1 in new slot), Size of downloads: 2,193 KiB |
Case 2:
Code: | # EMERGE_DEFAULT_OPTS='' emerge -pv --update -- sys-kernel/gentoo-kernel
...
[ebuild NS ] sys-kernel/gentoo-kernel-6.12.31:6.12.31::gentoo [6.12.28:6.12.28::gentoo] USE="debug initramfs strip -experimental (-generic-uki) -hardened -modules-compress -modules-sign -savedconfig -secureboot -test" 2,193 KiB
[ebuild U ] virtual/dist-kernel-6.12.31:0/6.12.31::gentoo [6.12.28:0/6.12.28::gentoo] 0 KiB
Total: 2 packages (1 upgrade, 1 in new slot), Size of downloads: 2,193 KiB |
Case 3:
Code: | # EMERGE_DEFAULT_OPTS='' emerge -pv --update --selective=n -- sys-kernel/gentoo-kernel
...
emerge: there are no ebuilds to satisfy "sys-kernel/gentoo-kernel". |
Why does using --update together with --selective=n result in the message "there are no ebuilds to satisfy ..."? I suspect it has something to do with slot handling, since most other packages do not have different slots. I expected disabling the selective mode to cause emerge to reinstall all command-line packages, regardless of whether updates are available, making its behaviour consistent with the earlier two cases. _________________ - midnite.
Last edited by midnite on Fri Jun 06, 2025 8:25 pm; edited 1 time in total |
|
Back to top |
|
 |
freke Veteran

Joined: 23 Jan 2003 Posts: 1091 Location: Somewhere in Denmark
|
Posted: Fri Jun 06, 2025 8:20 pm Post subject: |
|
|
As I read it --selective=n might being canceling --update, what does Code: | EMERGE_DEFAULT_OPTS='' emerge -pv -- sys-kernel/gentoo-kernel | yield?
Quote: | --selective [ y | n ]
This is identical to the --noreplace option. Some options, such as --update, imply --selective. Use
--selective=n if you want to forcefully disable --selective, regardless of options like --changed-use,
--newuse, --noreplace, or --update. |
|
|
Back to top |
|
 |
midnite Guru


Joined: 09 Apr 2006 Posts: 471 Location: Hong Kong
|
Posted: Fri Jun 06, 2025 8:28 pm Post subject: |
|
|
freke wrote: | As I read it --selective=n might being canceling --update, what does Code: | EMERGE_DEFAULT_OPTS='' emerge -pv -- sys-kernel/gentoo-kernel | yield? |
Yup. I think so too. That is why I expect Case 3 should be equivalent to Case 1.
Under no circumstances should the output be "there are no ebuilds to satisfy 'sys-kernel/gentoo-kernel'" unless the package is masked somewhere. _________________ - midnite. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|