Created attachment 921075 [details] build.log From commit https://web.git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=588505068c48fe07b1cfa32c5f3acd4395ec9482 it fails src_install due to unknown command line options
Created attachment 921076 [details] emerge --info emerge --info
Created attachment 921077 [details] emerge -pqv emerge -pqv
Created attachment 921078 [details] environment environment
Created attachment 921079 [details] saved_config_file saved_config_file
This error does not make sense a the r8 patch applies that command line option to copyfirmware.sh Full build log please --- a/copy-firmware.sh +++ b/copy-firmware.sh @@ -66,6 +66,16 @@ shift ;; + --firmware-list) + if [ -n "$2" ]; then + FIRMWARE_LIST=$2 + shift 2 + else + echo "ERROR: '--firmware-list' requires a non-empty option argument of firmware files to install" + exit 1 + fi + ;; + *) if test -n "$destdir"; then err "unknown command-line options: $*" <SNIP>
Hi, sorry for long response and yeah it's strange Looking at "/var/tmp/portage/sys-kernel/linux-firmware-99999999/work/linux-firmware-99999999/copy-firmware.sh" and I can clearly see r8 is applied... After what you said, I looked at my output again ( attached build.log in first post and this is before attempting to apply that patch ) There is this one line WARNING: ignoring option --firmware-list and in the r8 patch, the following code is applied before --firmware-list option -*) # Ignore anything else that begins with - because that confuses # the "test" command below warn "ignoring option $1" shift ;; so I did the following ( not sure how to do it better, just woke up and I'm being simple minded at the moment ) ################ cd /var/db/repos/gentoo/sys-kernel/linux-firmware ebuild linux-firmware-99999999.ebuild clean prepare configure compile cd /var/tmp/portage/sys-kernel/linux-firmware-99999999/work/linux-firmware-99999999 # inside this file I changed the order so that --firmware-list is both above options "*)" and "-*)" vim copy-firmware.sh cd /var/db/repos/gentoo/sys-kernel/linux-firmware ebuild linux-firmware-99999999.ebuild install ################ and it works so my guess is bash is processing that before it get's to the --firmware-list option ( option order matters )?
Created attachment 921219 [details, diff] Patch file that moves option "--firmware-list" above option "-*)" This is a "git diff" patch from linux-firmware repository after apply r8. It's the same as r8 except it simply moves the option "--firmware-list" above option "-*)" and src_install works. was sleep earlier, patch should be easier to work with
I forgot to add, the reason why it's failing is because of linux-firmware repository commit https://web.git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=142c0a71434fa86d41d36f4b6e4cbba43c29b631 The r8 patch is adding "--firmware-list" after the addition of "-*)", hence the removal of the "--firmware-list" option, in turn the next option would be a path to one of the firmware files which is caught by "*)", hence, unknown option
Thanks for the details
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8b8a0b6dec519691238ff1e48880feda410bb01 commit d8b8a0b6dec519691238ff1e48880feda410bb01 Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2025-03-19 17:18:37 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2025-03-19 17:18:37 +0000 sys-kernel/linux-firmware: copy-firmware patch fix, thanks to Jerome C Closes: https://bugs.gentoo.org/951538 Signed-off-by: Mike Pagano <mpagano@gentoo.org> .../files/linux-firmware-copy-firmware-r9.patch | 57 ++++++++++++++++++++++ .../linux-firmware/linux-firmware-99999999.ebuild | 2 +- 2 files changed, 58 insertions(+), 1 deletion(-)