Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python38.spec'], chrootPath='/var/lib/mock/module-python38-3.8-8070020221114141758-bd194b04-build-86859-33717/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python38.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python38-3.8.13-1.module+el8.7.0+572+7a60ef2f.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python38.spec'], chrootPath='/var/lib/mock/module-python38-3.8-8070020221114141758-bd194b04-build-86859-33717/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python38.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1VcEgF + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Python-3.8.13 + /usr/bin/xz -dc /builddir/build/SOURCES/Python-3.8.13-noexe.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.8.13 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find -name '*.exe' -print -delete + rm -r Modules/expat + echo 'Patch #1 (00001-rpath.patch):' Patch #1 (00001-rpath.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/distutils/unixccompiler.py Patch #102 (00102-lib64.patch): + echo 'Patch #102 (00102-lib64.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/distutils/command/install.py patching file Lib/distutils/sysconfig.py patching file Lib/distutils/tests/test_install.py patching file Lib/site.py patching file Lib/sysconfig.py Hunk #1 succeeded at 25 (offset 5 lines). Hunk #2 succeeded at 67 (offset 5 lines). patching file Lib/test/test_site.py Hunk #1 succeeded at 268 (offset 1 line). patching file Makefile.pre.in patching file Modules/getpath.c Hunk #2 succeeded at 1063 (offset -4 lines). Hunk #3 succeeded at 1193 (offset -4 lines). patching file configure Hunk #1 succeeded at 15264 (offset 50 lines). patching file configure.ac Hunk #1 succeeded at 4722 (offset 33 lines). patching file setup.py Hunk #1 succeeded at 634 (offset -15 lines). Hunk #2 succeeded at 938 (offset -15 lines). Patch #111 (00111-no-static-lib.patch): + echo 'Patch #111 (00111-no-static-lib.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.pre.in Hunk #1 succeeded at 565 (offset 3 lines). Hunk #2 succeeded at 613 (offset 3 lines). Hunk #3 succeeded at 690 (offset 3 lines). Hunk #4 succeeded at 1573 (offset 22 lines). Patch #189 (00189-use-rpm-wheels.patch): + echo 'Patch #189 (00189-use-rpm-wheels.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/ensurepip/__init__.py + rm Lib/ensurepip/_bundled/pip-22.0.4-py3-none-any.whl Lib/ensurepip/_bundled/setuptools-56.0.0-py3-none-any.whl Patch #251 (00251-change-user-install-location.patch): + echo 'Patch #251 (00251-change-user-install-location.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/distutils/command/install.py patching file Lib/site.py Patch #328 (00328-pyc-timestamp-invalidation-mode.patch): + echo 'Patch #328 (00328-pyc-timestamp-invalidation-mode.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/py_compile.py patching file Lib/test/test_py_compile.py Hunk #1 succeeded at 19 (offset 2 lines). Hunk #2 succeeded at 30 (offset 2 lines). Patch #329 (00329-fips.patch): + echo 'Patch #329 (00329-fips.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/hashlib.py patching file Modules/_hashopenssl.c patching file Modules/clinic/_hashopenssl.c.h patching file Lib/hashlib.py patching file Lib/test/test_hashlib.py patching file Include/_hashopenssl.h patching file Modules/_blake2/blake2b_impl.c patching file Modules/_blake2/blake2module.c patching file Modules/_blake2/blake2s_impl.c patching file Modules/_hashopenssl.c patching file Modules/_sha3/sha3module.c patching file setup.py Hunk #1 succeeded at 1677 (offset 4 lines). Hunk #2 succeeded at 2164 (offset 4 lines). Hunk #3 succeeded at 2185 (offset 4 lines). Hunk #4 succeeded at 2193 (offset 4 lines). Hunk #5 succeeded at 2203 (offset 4 lines). Hunk #6 succeeded at 2233 (offset 4 lines). Hunk #7 succeeded at 2248 (offset 4 lines). Hunk #8 succeeded at 2256 (offset 4 lines). patching file Modules/_hashopenssl.c patching file Modules/clinic/_hashopenssl.c.h patching file Lib/test/test_hashlib.py patching file Include/_hashopenssl.h patching file Modules/_blake2/blake2b_impl.c patching file Modules/_blake2/blake2module.c patching file Modules/_blake2/blake2s_impl.c patching file Modules/_sha3/sha3module.c patching file Lib/hashlib.py patching file Lib/hmac.py patching file Modules/_hmacopenssl.c patching file Modules/clinic/_hmacopenssl.c.h patching file setup.py Hunk #1 succeeded at 2235 (offset 4 lines). patching file Lib/hmac.py patching file Modules/_hmacopenssl.c patching file Lib/hmac.py patching file Modules/_hmacopenssl.c patching file Lib/test/test_fips.py patching file Modules/_hmacopenssl.c patching file Lib/multiprocessing/connection.py patching file Modules/_hmacopenssl.c patching file Lib/hmac.py patching file Lib/hmac.py patching file Lib/test/test_fips.py patching file Modules/_hmacopenssl.c patching file Modules/clinic/_hmacopenssl.c.h patching file Modules/_hmacopenssl.c patching file Lib/distutils/command/upload.py patching file Lib/distutils/tests/test_upload.py patching file Lib/hmac.py patching file Lib/test/test_hmac.py patching file Lib/test/test_tools/test_md5sum.py patching file Lib/test/test_hashlib.py patching file Lib/distutils/command/upload.py patching file Lib/distutils/tests/test_upload.py patching file Doc/library/hashlib.rst patching file Lib/test/test_hashlib.py patching file Lib/uuid.py patching file Misc/NEWS.d/next/Library/2019-09-12-14-54-45.bpo-9216.W7QMpC.rst patching file Modules/_blake2/blake2b_impl.c patching file Modules/_blake2/blake2s_impl.c patching file Modules/_blake2/clinic/blake2b_impl.c.h patching file Modules/_blake2/clinic/blake2s_impl.c.h patching file Modules/_hashopenssl.c patching file Modules/_sha3/clinic/sha3module.c.h patching file Modules/_sha3/sha3module.c patching file Modules/clinic/_hashopenssl.c.h patching file Modules/clinic/md5module.c.h patching file Modules/clinic/sha1module.c.h patching file Modules/clinic/sha256module.c.h patching file Modules/clinic/sha512module.c.h patching file Modules/md5module.c patching file Modules/sha1module.c patching file Modules/sha256module.c patching file Modules/sha512module.c patching file Lib/test/test_hashlib.py patching file Modules/_hashopenssl.c patching file Include/_hashopenssl.h patching file Lib/hmac.py patching file Lib/test/test_hmac.py patching file Lib/distutils/command/upload.py patching file Lib/distutils/tests/test_upload.py patching file Lib/hashlib.py patching file Lib/hmac.py patching file Lib/test/test_fips.py patching file Lib/test/test_hashlib.py patching file Lib/test/test_hmac.py patching file Lib/test/test_smtplib.py Hunk #2 succeeded at 1116 (offset 55 lines). patching file Lib/test/test_tools/test_md5sum.py patching file Lib/test/test_urllib2_localnet.py patching file Lib/test/test_os.py patching file Makefile.pre.in patching file Modules/posixmodule.c patching file Python/bootstrap_hash.c patching file Lib/test/test_os.py patching file Python/bootstrap_hash.c patching file Lib/hmac.py patching file Modules/_hmacopenssl.c patching file Modules/clinic/_hmacopenssl.c.h patching file Lib/hashlib.py patching file Lib/test/test_hashlib.py patching file Lib/test/test_hmac.py patching file Modules/_hmacopenssl.c Patch #353 (00353-architecture-names-upstream-downstream.patch): + echo 'Patch #353 (00353-architecture-names-upstream-downstream.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/importlib/_bootstrap_external.py Hunk #1 succeeded at 1629 (offset 70 lines). Hunk #2 succeeded at 1693 (offset 70 lines). Hunk #3 succeeded at 1706 (offset 70 lines). Patch #359 (00359-CVE-2021-23336.patch): + echo 'Patch #359 (00359-CVE-2021-23336.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Doc/library/cgi.rst patching file Doc/library/urllib.parse.rst patching file Lib/cgi.py patching file Lib/test/test_cgi.py patching file Lib/test/test_urlparse.py patching file Lib/urllib/parse.py Patch #378 (00378-support-expat-2-4-5.patch): + echo 'Patch #378 (00378-support-expat-2-4-5.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/test/test_minidom.py Patch #382 (00382-cve-2015-20107.patch): + echo 'Patch #382 (00382-cve-2015-20107.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Doc/library/mailcap.rst patching file Lib/mailcap.py patching file Lib/test/test_mailcap.py patching file Misc/NEWS.d/next/Security/2022-04-27-18-25-30.gh-issue-68966.gjS8zs.rst + rm configure pyconfig.h.in + sed -i configure.ac -e 's/\baarch64-linux-gnu\b/aarch64-linux-gnu/' Patch #383 (0001-skip-test-case.patch): + echo 'Patch #383 (0001-skip-test-case.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Lib/test/test_minidom.py Hunk #1 succeeded at 1133 (offset 2 lines). Hunk #2 FAILED at 1592. 1 out of 2 hunks FAILED -- saving rejects to file Lib/test/test_minidom.py.rej patching file Lib/test/test_xml_etree.py Hunk #1 FAILED at 1967. 1 out of 1 hunk FAILED -- saving rejects to file Lib/test/test_xml_etree.py.rej error: Bad exit status from /var/tmp/rpm-tmp.1VcEgF (%prep) Bad exit status from /var/tmp/rpm-tmp.1VcEgF (%prep) RPM build errors: 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 598, 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 aarch64 --nodeps /builddir/build/SPECS/python38.spec