systemd-nspawn is a new one on me, but I get the general idea. I'd look in 2 places in particular: the systemd journal and in /var/lib/mock/centos-stream+epel-9-x86_64/result Being as how nspawn is a chroot/container environment, the actual path of the result file may be somewhere else, but more context would be needed to dereference all the mapping being done there. It does look like the spec file is giving rpmbuild heartburn - a not uncommon thing - so personally, I would probably see if I could spin up a VM and run the build in a simpler environment. On 11/16/26 3:08 PM, Sinan Polat wrote:
Hi Andreas,
I haven't rebuilt 19.2.7 myself, so I might be wrong.
The "extra tokens at the end of %else" and "unversioned Obsoletes" lines are only rpm spec warnings. I don't think they are what breaks the build. The actual failure is probably somewhere else in the log.
Could you check build.log for the first real error:
grep -n -E 'error:|Error [0-9]|Killed|fatal' /var/lib/mock/centos-stream+epel-9-x86_64/result/build.log
Sinan
Op ma 16 nov 2026 om 12:31 schreef Andreas Haupt<ceph-users@ceph.io>:
Dear all,
did anyone succeed in rebuilding the 19.2.7 SRPM using mock? I tried with different EL9-based distributions (AlmaLinux, RockyLinux - even CS9) - all fail:
[buildhost] ~ % mock --rebuild -r centos-stream+epel-9-x86_64 https://download.ceph.com/rpm-squid/el9/SRPMS/ceph-19.2.7-0.el9.src.rpm [...] cd /builddir/build/BUILD/ceph-19.2.7/src/boost && /usr/bin/cmake -E touch /builddir/build/BUILD/ceph-19.2.7/redhat-linux-build/boost/src/Boost-stamp/Boost-install make[2]: Leaving directory '/builddir/build/BUILD/ceph-19.2.7/redhat-linux-build' make[2]: Entering directory '/builddir/build/BUILD/ceph-19.2.7/redhat-linux-build' [ 5%] Completed 'Boost' /usr/bin/cmake -E make_directory /builddir/build/BUILD/ceph-19.2.7/redhat-linux-build/CMakeFiles /usr/bin/cmake -E touch /builddir/build/BUILD/ceph-19.2.7/redhat-linux-build/CMakeFiles/Boost-complete /usr/bin/cmake -E touch /builddir/build/BUILD/ceph-19.2.7/redhat-linux-build/boost/src/Boost-stamp/Boost-done make[2]: Leaving directory '/builddir/build/BUILD/ceph-19.2.7/redhat-linux-build' make[1]: Entering directory '/builddir/build/BUILD/ceph-19.2.7/redhat-linux-build' [ 5%] Built target Boost make[1]: Leaving directory '/builddir/build/BUILD/ceph-19.2.7/redhat-linux-build' make: *** [Makefile:146: all] Error 2
RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.JIt0TM (%build) extra tokens at the end of %else directive in line 118: %else # not fedora/rhel
extra tokens at the end of %else directive in line 121: %else # not x86_64
line 1136: It's not recommended to have unversioned Obsoletes: Obsoletes: ceph-libcephfs Bad exit status from /var/tmp/rpm-tmp.JIt0TM (%build) Finish: rpmbuild ceph-19.2.7-0.el9.src.rpm Finish: build phase for ceph-19.2.7-0.el9.src.rpm ERROR: Exception(/tmp/tmpurocq07i/ceph-19.2.7-0.el9.src.rpm) Config(centos-stream+epel-9-x86_64) 3 minutes 14 seconds INFO: Results and/or logs in: /var/lib/mock/centos-stream+epel-9-x86_64/result ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M 878153184ee642df8e47b0b17372d913 -D /var/lib/mock/centos-stream+epel-9-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --resolv-conf=off --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8 bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ceph.spec'
We usually rebuild the packages as the provided ones have been build against CentOS Stream - which is actually not "EL" and ends up with non-resolvable dependencies in "real" EL distributions like Alma and/or Rocky.
Thanks & Cheers, Andreas -- | Andreas Haupt | E-Mail:andreas.haupt@desy.de | DESY, Zeuthen | WWW:http://www.zeuthen.desy.de/~ahaupt | Platanenallee 6 | Phone: +49/33762/7-7359 | D-15738 Zeuthen |
_______________________________________________ ceph-users mailing list --ceph-users@ceph.io To unsubscribe send an email toceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list --ceph-users@ceph.io To unsubscribe send an email toceph-users-leave@ceph.io