Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge with --update --selective=n ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 471
Location: Hong Kong

PostPosted: Fri Jun 06, 2025 8:05 pm    Post subject: Emerge with --update --selective=n ? Reply with quote

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
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1091
Location: Somewhere in Denmark

PostPosted: Fri Jun 06, 2025 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 471
Location: Hong Kong

PostPosted: Fri Jun 06, 2025 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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



OSZAR »