Skip to content

Instantly share code, notes, and snippets.

@osalbahr
Last active November 3, 2023 17:51
Show Gist options
  • Save osalbahr/806997dd726b1e639a2b2f08c3868a5a to your computer and use it in GitHub Desktop.
Save osalbahr/806997dd726b1e639a2b2f08c3868a5a to your computer and use it in GitHub Desktop.
rpmbuild: cp: preserving permissions for [...]: No data available

The following uses files from https://src.fedoraproject.org/fork/osalbahr/rpms/neofetch:

[nebula-toolbox@44544e1114fd ~]$ tree ~/rpmbuild/
/home/nebula-toolbox/rpmbuild/
├── SOURCES
│   ├── fedora_logo.patch
│   └── neofetch-7.1.0.tar.gz
└── SPECS
    └── neofetch.spec

3 directories, 3 files
[nebula-toolbox@44544e1114fd ~]$ rpmbuild -bb ~/rpmbuild/SPECS/neofetch.spec
setting SOURCE_DATE_EPOCH=1689811200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.uU4UsT
+ umask 022
+ cd /home/nebula-toolbox/rpmbuild/BUILD
+ cd /home/nebula-toolbox/rpmbuild/BUILD
+ rm -rf neofetch-7.1.0
+ /usr/lib/rpm/rpmuncompress -x /home/nebula-toolbox/rpmbuild/SOURCES/neofetch-7.1.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd neofetch-7.1.0
+ rm -rf /home/nebula-toolbox/rpmbuild/BUILD/neofetch-7.1.0-SPECPARTS
+ /usr/bin/mkdir -p /home/nebula-toolbox/rpmbuild/BUILD/neofetch-7.1.0-SPECPARTS
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/lib/rpm/rpmuncompress /home/nebula-toolbox/rpmbuild/SOURCES/fedora_logo.patch
+ /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f
+ sed 's,/usr/bin/env bash,/usr/bin/bash,g' -i neofetch
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6bIpGF
+ umask 022
+ cd /home/nebula-toolbox/rpmbuild/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --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 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd neofetch-7.1.0
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Wnw6JM
+ umask 022
+ cd /home/nebula-toolbox/rpmbuild/BUILD
+ '[' /home/nebula-toolbox/rpmbuild/BUILDROOT/neofetch-7.1.0-10.fc40.x86_64 '!=' / ']'
+ rm -rf /home/nebula-toolbox/rpmbuild/BUILDROOT/neofetch-7.1.0-10.fc40.x86_64
++ dirname /home/nebula-toolbox/rpmbuild/BUILDROOT/neofetch-7.1.0-10.fc40.x86_64
+ mkdir -p /home/nebula-toolbox/rpmbuild/BUILDROOT
+ mkdir /home/nebula-toolbox/rpmbuild/BUILDROOT/neofetch-7.1.0-10.fc40.x86_64
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --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 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd neofetch-7.1.0
+ /usr/bin/make install DESTDIR=/home/nebula-toolbox/rpmbuild/BUILDROOT/neofetch-7.1.0-10.fc40.x86_64 'INSTALL=/usr/bin/install -p'
cp: preserving permissions for ‘/home/nebula-toolbox/rpmbuild/BUILDROOT/neofetch-7.1.0-10.fc40.x86_64/usr/bin/neofetch’: No data available
make: *** [Makefile:10: install] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.Wnw6JM (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Wnw6JM (%install)
[nebula-toolbox@44544e1114fd ~]$ tree ~/rpmbuild/
/home/nebula-toolbox/rpmbuild/
├── BUILD
│   ├── neofetch-7.1.0
│   │   ├── CONTRIBUTING.md
│   │   ├── LICENSE.md
│   │   ├── Makefile
│   │   ├── README.md
│   │   ├── neofetch
│   │   └── neofetch.1
│   └── neofetch-7.1.0-SPECPARTS
├── BUILDROOT
│   └── neofetch-7.1.0-10.fc40.x86_64
│       └── usr
│           ├── bin
│           │   └── neofetch
│           └── share
│               └── man
│                   └── man1
├── RPMS
├── SOURCES
│   ├── fedora_logo.patch
│   └── neofetch-7.1.0.tar.gz
├── SPECS
│   └── neofetch.spec
└── SRPMS

15 directories, 10 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment