Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751901 - sys-kernel/linux-firmware-20201022-r1: ./copy-firmware.sh: No such file or directory
Summary: sys-kernel/linux-firmware-20201022-r1: ./copy-firmware.sh: No such file or di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-30 13:25 UTC by Albert W. Hopkins
Modified: 2020-10-30 16:46 UTC (History)
2 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 Albert W. Hopkins 2020-10-30 13:25:39 UTC
On one system I'm building linux-firmware with USE="-initramfs -redistributable" The 20201022-r1 fails with the following:

```
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/work/linux-firmware-20201022 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/work/linux-firmware-20201022 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/linux-firmware-20201022-r1

>>> Install sys-kernel/linux-firmware-20201022-r1 into /var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/image
/var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/temp/environment: line 773: ./copy-firmware.sh: No such file or directory
 * ERROR: sys-kernel/linux-firmware-20201022-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 773:  Called die
 * The specific snippet of code:
 *       ./copy-firmware.sh -v "${ED}/lib/firmware" || die;
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/linux-firmware-20201022-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/linux-firmware-20201022-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/work/linux-firmware-20201022'
 * S: '/var/tmp/portage/sys-kernel/linux-firmware-20201022-r1/work/linux-firmware-20201022'

 * Messages for package sys-kernel/linux-firmware-20201022-r1:

 * ERROR: sys-kernel/linux-firmware-20201022-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 773:  Called die
 * The specific snippet of code:
 *       ./copy-firmware.sh -v "${ED}/lib/firmware" || die;
 * 
```

If I enable "initramfs" and "redistributable" USE flags then it builds.  I did not experience this issue with the previous release.

```
# emerge --info =sys-kernel/linux-firmware-20201022-r1
Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.1/systemd, gcc-10.2.0, glibc-2.32-r2, 5.9.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.9.1-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_0_@_2.30GHz-with-gentoo-2.7
KiB Mem:    32884764 total,   6869532 free
KiB Swap:   13631480 total,   7351700 free
Timestamp of repository gentoo: Fri, 30 Oct 2020 12:36:59 +0000
Timestamp of repository marduk: Fri, 30 Oct 2020 12:32:13 +0000
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p1) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.18.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.35.1::gentoo
sys-devel/gcc:            10.2.0-r2::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://blackwidow/portage
    priority: -1000
    sync-rsync-verify-metamanifest: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

marduk
    location: /var/db/repos/marduk
    sync-type: rsync
    sync-uri: rsync://blackwidow/local-portage
    masters: gentoo
    priority: 50
    sync-rsync-verify-metamanifest: False
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="     -O2     -march=native     -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="     -O2     -march=native     -pipe "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="     --alphabetical     --autounmask=n     --buildpkg-exclude=sys-kernel/gentoo-sources     --changed-deps=y     --color=n     --jobs=5     --nospinner     --unordered-display     --verbose-conflicts     --with-bdeps=y  --jobs=3 --buildpkg"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg cgroup config-protect-if-modified distlocks fixlafiles ipc-sandbox multilib-strict network-sandbox news noinfo notitles parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms skiprocheck strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS=""
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl aes amd64 asm avx ipv6 libglvnd mmx mmxext nptl pam popcnt seccomp split-usr sse sse2 sse3 sse4_1 sse4_2 ssse3 systemd threads unicode urandom xattr" ABI_X86="64" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" NGINX_MODULES_HTTP="addition auth_basic autoindex fancyindex gzip headers_more proxy rewrite sub upload uwsgi" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-kernel/linux-firmware-20201022-r1::gentoo was built with the following:
USE="initramfs redistributable -savedconfig (-unknown-license)" ABI_X86="(64)"
```
Comment 1 Albert W. Hopkins 2020-10-30 14:13:07 UTC
It seems to be the lack of the `redistributable` USE flag as I have another system with that flag set but `-initramfs` and it builds on the other system.
Comment 2 Larry the Git Cow gentoo-dev 2020-10-30 16:46:03 UTC
The bug has been closed via the following commit(s):

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

commit 5051834606a77afa11c0e9c96bc298872bc11650
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-10-30 16:37:00 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-10-30 16:45:50 +0000

    sys-kernel/linux-firmware: keep misc files
    
    Whitelist misc files like copy-firmware.sh or WHENCE which we will use
    later.
    
    Closes: https://bugs.gentoo.org/751901
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 .../linux-firmware/linux-firmware-99999999.ebuild    | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)