Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-6107

Update python-rpm-macros and add the pathfix.py script [rhel-9]

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.3.0
    • python-rpm-macros
    • None
    • python-rpm-macros-3.9-53.el9
    • None
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_core_services
    • 14
    • 19
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • None

      What were you trying to do that didn't work?

      I was trying to build Python 3.12 in COPR using CentOS Stream 8/9 chroots.

      Please provide the package NVR for which bug is seen: n/a

      How reproducible: always

      Steps to reproduce

      1. Build python3.12 in COPR
      2.  
      3.  

      Expected results

      Build succeeds

      Actual results

      Build failed

      ~~~~

      + ./build/optimized/python /usr/lib/rpm/redhat/pathfix.py -i /usr/bin/python3.12 -pn /builddir/build/BUILDROOT/python3.12-3.12.0~rc2-1.el9.x86_64 /builddir/build/BUILDROOT/python3.12-3.12.0~rc2-1.el9.x86_64/usr/bin/msgfmt3.12.py /builddir/build/BUILDROOT/python3.12-3.12.0~rc2-1.el9.x86_64/usr/bin/pygettext3.12.py /builddir/build/BUILDROOT/python3.12-3.12.0~rc2-1.el9.x86_64/usr/lib/debug//usr/lib64/libpython3.12.so.1.0-3.12.0~rc2-1.el9.x86_64.debug-gdb.py /builddir/build/BUILDROOT/python3.12-3.12.0~rc2-1.el9.x86_64/usr/lib/debug//usr/lib64/libpython3.12d.so.1.0-3.12.0~rc2-1.el9.x86_64.debug-gdb.py ./build/optimized/python: can't open file '/usr/lib/rpm/redhat/pathfix.py': [Errno 2] No such file or directory

      ~~~~

      This is happening because pathfix.py script was removed from Python 3.12. In Fedora we brought it back as a part of python-rpm-macros.

      See: https://src.fedoraproject.org/rpms/python-rpm-macros/c/bb334db9f37bfc05f6b12ec784cd05a686bb4a4d?branch=rawhide

       

              python-maint python-maint
              thrnciar Tomáš Hrnčiar
              Tomáš Hrnčiar Tomáš Hrnčiar
              Lukas Zachar Lukas Zachar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: