What were you trying to do that didn't work?
Build rpm without libarchive support:
rpmbuild -bb --without libarchive ~/rpmbuild/SPECS/rpm.spec
What is the impact of this issue to you?
Please provide the package NVR for which the bug is seen:
rpm-4.19.1.1-9.el10
How reproducible is this bug?:
always
Steps to reproduce
- Build rpm without libarchive support by running: rpmbuild -bb --without libarchive ~/rpmbuild/SPECS/rpm.spec
Expected results
Builds successfully:
Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.5uMPPe
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf /root/rpmbuild/BUILD/rpm-4.19.1.1-SPECPARTS
+ rm -rf rpm-4.19.1.1 rpm-4.19.1.1.gemspec
+ RPM_EC=0
++ jobs -p
+ exit 0
spec file contains conditionals like in RHEL-9 spec:
%if %{with libarchive} %{_bindir}/rpm2archive %endif ... ... %if %{with libarchive} %{_mandir}/man8/rpm2archive.8* %endif
Actual results
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.5dnHVR
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd rpm-4.19.1.1
+ LICENSEDIR=/root/rpmbuild/BUILDROOT/rpm-4.19.1.1-9.el10.x86_64/usr/share/licenses/rpm
+ export LC_ALL=
+ LC_ALL=
+ export LICENSEDIR
+ /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/rpm-4.19.1.1-9.el10.x86_64/usr/share/licenses/rpm
+ cp -pr /root/rpmbuild/BUILD/rpm-4.19.1.1/COPYING /root/rpmbuild/BUILDROOT/rpm-4.19.1.1-9.el10.x86_64/usr/share/licenses/rpm
+ RPM_EC=0
++ jobs -p
+ exit 0RPM build errors:
File not found: /root/rpmbuild/BUILDROOT/rpm-4.19.1.1-9.el10.x86_64/usr/bin/rpm2archive
File not found: /root/rpmbuild/BUILDROOT/rpm-4.19.1.1-9.el10.x86_64/usr/share/man/man8/rpm2archive.8*