CheariX / silverblue-akmods-keys

Fedora Silverblue with SecureBoot enabled and working akmods such as akmod-nvidia or akmod-VirtualBox.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Path "/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT" is outside of RPM_BUILD_ROOT="/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT"

not-a-dev-stein opened this issue · comments

Hi! I used to use this tool for my Silverblue installs, and recently needed to use it again to build the akmods-keys package and got this error instead while building it (some of the logs are in portuguese due to my locale, but I believe it can be understood):

Construindo plataformas de destino: noarch
Construindo para o destino noarch
configurando SOURCE_DATE_EPOCH=1656374400
Executando (%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.lOtGxj
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ test -d /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/rm -rf /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executando (%prep): /bin/sh -e /var/tmp/rpm-tmp.7BbcLx
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ rm -rf akmods-keys-0.0.2
+ /usr/bin/mkdir -p akmods-keys-0.0.2
+ cd akmods-keys-0.0.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executando (%build): /bin/sh -e /var/tmp/rpm-tmp.Q20Fpk
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed   -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1  '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd akmods-keys-0.0.2
+ RPM_EC=0
++ jobs -p
+ exit 0
Executando (%install): /bin/sh -e /var/tmp/rpm-tmp.cqdznm
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ '[' /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT '!=' / ']'
+ rm -rf /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
++ dirname /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
+ mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ mkdir /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed   -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1  '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd akmods-keys-0.0.2
+ mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/certs /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/private /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/rpm/
+ install -pm 0640 /root/rpmbuild/SOURCES/public_key.der /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/certs/
+ install -pm 0640 /root/rpmbuild/SOURCES/private_key.priv /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/private/
+ install -pm 0640 /root/rpmbuild/SOURCES/macros.kmodtool /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/rpm/
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ /usr/lib/rpm/brp-remove-la-files
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/bin/add-determinism --brp -j8 /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
Error: Path "/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT" is outside of RPM_BUILD_ROOT="/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT"
erro: Status de saída de /var/tmp/rpm-tmp.cqdznm inválido (%install)

RPM build errors:
    Status de saída de /var/tmp/rpm-tmp.cqdznm inválido (%install)

Since I'm not familiar with RPM package building, I decided to open this issue to better understand if something might have broke or if this is an issue on my end (specially since I've been testing with Rawhide).

My current setup:

● fedora:fedora/rawhide/x86_64/silverblue
                  Version: Rawhide.20240714.n.0 (2024-07-14T06:10:01Z)
               BaseCommit: 8ab20fc788d5f70132e941edb8246093a563cfa3ae8082565cb5ce89268a1bae
          LayeredPackages: xorg-x11-drv-nvidia-cuda

Thank you for the report. I haven't run the build process for a while.

I've checked the 41 ChangeSet. There are two rpm related things. Maybe it has something to do with your issue?
Would be good to know if it also fails on 40.

Yeah, testing it on F40, things work fine and I was able to carry the package forward to Rawhide, things are working now. It would be nice if you eventually could look at it to ensure it keeps working in the future, but no need to make it top priority