Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-pip.spec'], chrootPath='/var/lib/mock/rocky-9-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1003gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-pip.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1651017600 Wrote: /builddir/build/SRPMS/python-pip-21.2.3-6.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-pip.spec'], chrootPath='/var/lib/mock/rocky-9-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1003gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-pip.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1651017600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BBQjeJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pip-21.2.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/pip-21.2.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pip-21.2.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/remove-existing-dist-only-if-path-conflicts.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/dummy-certifi.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/nowarn-pip._internal.main.patch + /usr/bin/cat /builddir/build/SOURCES/no-version-warning.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/5000-add-rocky.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + rm src/pip/_vendor/certifi/cacert.pem + sed -i '/html_theme = "furo"/d' docs/html/conf.py + sed -i '/"sphinxcontrib.towncrier",/d' docs/html/conf.py + ln -s /usr/share/python3-wheels tests/data/common_wheels + grep -lr '^#\!/usr/bin/env python' src/pip/_vendor/chardet/ + xargs sed -i 1d + rm -v src/pip/_vendor/distlib/t32.exe src/pip/_vendor/distlib/t64.exe src/pip/_vendor/distlib/w32.exe src/pip/_vendor/distlib/w64.exe removed 'src/pip/_vendor/distlib/t32.exe' removed 'src/pip/_vendor/distlib/t64.exe' removed 'src/pip/_vendor/distlib/w32.exe' removed 'src/pip/_vendor/distlib/w64.exe' + sed -i '/\.exe/d' setup.py Patch #7 (5000-add-rocky.patch): + echo 'Patch #7 (5000-add-rocky.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/pip/_vendor/distro.py Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file src/pip/_vendor/distro.py.rej RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.BBQjeJ (%prep) Bad exit status from /var/tmp/rpm-tmp.BBQjeJ (%prep) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-pip.spec