Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950486 - sys-kernel/linux-firmware-20241210 - 20250211: savedconfig use flag appears twice
Summary: sys-kernel/linux-firmware-20241210 - 20250211: savedconfig use flag appears t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Chí-Thanh Christopher Nguyễn
URL: https://github.com/gentoo/gentoo/blob...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-03 03:12 UTC by Mervin
Modified: 2025-03-11 20:05 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mervin 2025-03-03 03:12:15 UTC
When emerging linux-firmware in verbose mode, the savedconfig flag appears twice (usually with one deactivated). This likely does not have any technical effect but is visually confusing.

Reproducible: Always

Steps to Reproduce:
1. emerge --ask --verbose linux-firmware
2. see the USE flags for linux-firmware
3. savedconfig should appear twice
Actual Results:  
The savedconfig USE flag appeared twice. One of them deactivated.

Expected Results:  
The savedconfig USE flag should appear once. If savedconfig is active, the USE flag should be activated.

The bug likely stems from the ebuild inheriting from savedconfig-eclass (line 5) while also defining savedconfig (line 32). Only one of these should exist, whichever is more important (probably eclass).
Comment 1 Mike Pagano gentoo-dev 2025-03-06 14:38:07 UTC
emerge --ask --verbose linux-firmware

Calculating dependencies... done!
Dependency resolution took 2.47 s (backtrack: 0/20).

[ebuild   R   ~] sys-kernel/linux-firmware-20250211-r1::gentoo  USE="initramfs redistributable savedconfig -bindist -compress-xz -compress-zstd -deduplicate -dist-kernel (-unknown-license)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

Not able to reproduce, it might be me, can you tell me your portage version ?
Comment 2 Mervin 2025-03-11 08:38:15 UTC
My current version is 3.0.66.1-r1 . On this version, I've attempted to reproduce and no longer get the error.

Recently (a little over two weeks ago) an emerge-sync occurred but portage itself was not updated. This may be relevant.

As a sanity check, I tried to reproduce with portageq and portage-utils-0.97 - which successfully reproduced:

With portageq:

portageq metadata / ebuild sys-kernel/linux-firmware-20250211 IUSE

bindist compress-xz compress-zstd deduplicate dist-kernel +initramfs +redistributable savedconfig unknown-license savedconfig

With qlist:

qlist -Uev linux-firmware

sys-kernel/linux-firmware-20250211 -bindist compress-xz -compress-zstd -deduplicate dist-kernel initramfs redistributable savedconfig -savedconfig -unknown-license

With quse:

quse -p linux-firmware

sys-kernel/linux-firmware: bindist compress-xz compress-zstd deduplicate dist-kernel +initramfs +redistributable savedconfig unknown-license savedconfig
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-11 08:42:26 UTC
We can drop the 'savedconfig' from USE in the ebuild itself as the eclass definitely adds it but it's curious how you don't see it anymore.
Comment 4 Mervin 2025-03-11 08:57:16 UTC
Yeah, it's interesting. I remember seeing it when I updated world after a sync, maybe this is relevant?

emerge --newrepo --newuse --resume --update --ask --exclude=gentoo-kernel-bin linux-headers --jobs=1 --load-average=3.0 --quiet-fail=y --regex-search-auto=y --getbinpkg --usepkg --verbose

This was the exact command (from emerge.log). Not really sure what's happened since.

It also could be that I mixed it up. I jotted the bugs in my notes and said it was from portage (with the command), but maybe I confused it with qlist output?

If I ever see the error again for another package, I will make sure to save my exact system stat
Comment 5 Larry the Git Cow gentoo-dev 2025-03-11 20:05:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9f7453f0d96af5a45482634fdfce822dd344f11

commit a9f7453f0d96af5a45482634fdfce822dd344f11
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2025-03-11 20:04:59 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2025-03-11 20:05:40 +0000

    sys-kernel/linux-firmware: add 20250311, remove redundant use flag
    
    Closes: https://bugs.gentoo.org/950486
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/linux-firmware/Manifest                 |   1 +
 .../linux-firmware/linux-firmware-20250311.ebuild  | 402 +++++++++++++++++++++
 2 files changed, 403 insertions(+)