Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947920 - sys-kernel/linux-firmware-20250109-r1: "./copy-firmware.sh: line 136: : No such file or directory" in src_install
Summary: sys-kernel/linux-firmware-20250109-r1: "./copy-firmware.sh: line 136: : No su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-01-11 18:39 UTC by Ulrich Müller
Modified: 2025-04-11 16:19 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,8.54 KB, text/plain)
2025-01-11 18:40 UTC, Ulrich Müller
Details
sys-kernel/linux-firmware: Work around error in copy-firmware.sh (0001-sys-kernel-linux-firmware-Work-around-error-in-copy-.patch,1.56 KB, patch)
2025-01-11 19:55 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2025-01-11 18:39:26 UTC
>>> Install sys-kernel/linux-firmware-20250109-r1 into /tmp/portage/sys-kernel/linux-firmware-20250109-r1/image
copying/compressing file amdgpu/green_sardine_asd.bin
copying/compressing file amdgpu/green_sardine_ce.bin
[...]
copying/compressing file mediatek/WIFI_RAM_CODE_MT7922_1.bin
copying/compressing file mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin
./copy-firmware.sh: line 136: : No such file or directory


Line 136 of copy-firmware.sh is:
echo > "$parallel_args_file"

Apparently that variable is empty (it would be assigned with the -j option).
Also, the script should check for errors, I suppose?


This is a new issue, linux-firmware-20241210-r1 didn't output the error message.
Comment 1 Ulrich Müller gentoo-dev 2025-01-11 18:40:33 UTC
Created attachment 916341 [details]
build.log
Comment 2 Ulrich Müller gentoo-dev 2025-01-11 19:55:23 UTC
Created attachment 916351 [details, diff]
sys-kernel/linux-firmware: Work around error in copy-firmware.sh

This patch fixes the problem for me.

One could also go for parallel compression, but it would require an additional dependency, plus some jumping through hoops, in order to silence the noisy "academic citation" output of GNU parallel.
Comment 3 Conrad Kostecki gentoo-dev 2025-01-11 23:18:34 UTC
(In reply to Ulrich Müller from comment #0)
> This is a new issue, linux-firmware-20241210-r1 didn't output the error
> message.

Uh sure? I do also get this with older releases?
Comment 4 Ulrich Müller gentoo-dev 2025-01-12 06:58:49 UTC
(In reply to Conrad Kostecki from comment #3)
> (In reply to Ulrich Müller from comment #0)
> > This is a new issue, linux-firmware-20241210-r1 didn't output the error
> > message.
> 
> Uh sure? I do also get this with older releases?

Must be a different problem then. 20241210 didn't have any parallel processing in copy-firmware.sh.
Comment 5 Larry the Git Cow gentoo-dev 2025-01-12 22:35:48 UTC
The bug has been closed via the following commit(s):

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

commit bfa4585c206e5188c67199a23c14a23d6d1ae4c7
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2025-01-12 22:35:21 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2025-01-12 22:35:21 +0000

    sys-kernel/linux-firmware:  Work arounnd error in copy-firmware.sh
    
    Thanks to Ulrich Müller
    
    Closes: https://bugs.gentoo.org/947920
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/linux-firmware/linux-firmware-99999999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)