• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-10.1
    • rhel-10.0
    • rpm
    • Yes
    • Moderate
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 8
    • 20
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      The original bug's test case passes: /CoreOS/rpm/Regression/bz1902887-Missing-conditionals-for-without-libarchive

      Show
      The original bug's test case passes: /CoreOS/rpm/Regression/bz1902887-Missing-conditionals-for-without-libarchive
    • None
    • None
    • None

      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

      1. 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* 

       

              mdomonko@redhat.com Michal Domonkos
              mbanas@redhat.com Martin Banas
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: