Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python3.11.spec'], chrootPath='/var/lib/mock/dist-an23-build-356353-71085/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python3.11.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 warning: extra tokens at the end of %endif directive in line 431: %endif # with main_python warning: extra tokens at the end of %endif directive in line 601: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 750: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 787: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 822: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 855: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1104: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1107: %endif # with tests warning: extra tokens at the end of %endif directive in line 1586: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1696291200 Wrote: /builddir/build/SRPMS/python3.11-3.11.6-1.an23.src.rpm RPM build warnings: extra tokens at the end of %endif directive in line 431: %endif # with main_python extra tokens at the end of %endif directive in line 601: %endif # with debug_build extra tokens at the end of %endif directive in line 750: %endif # with debug_build extra tokens at the end of %endif directive in line 787: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 822: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 855: %endif # with debug_build extra tokens at the end of %endif directive in line 1104: %endif # with debug_build extra tokens at the end of %endif directive in line 1107: %endif # with tests extra tokens at the end of %endif directive in line 1586: %endif # with debug_build Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python3.11.spec'], chrootPath='/var/lib/mock/dist-an23-build-356353-71085/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python3.11.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 warning: extra tokens at the end of %endif directive in line 431: %endif # with main_python warning: extra tokens at the end of %endif directive in line 601: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 750: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 787: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 822: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 855: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1104: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1107: %endif # with tests warning: extra tokens at the end of %endif directive in line 1586: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1696291200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0g6z6F + umask 022 + cd /builddir/build/BUILD + /usr/lib/rpm/anolis/gpgverify --keyring=/builddir/build/SOURCES/pgp_keys.asc --signature=/builddir/build/SOURCES/Python-3.11.6.tar.xz.asc --data=/builddir/build/SOURCES/Python-3.11.6.tar.xz gpgv: Signature made Mon Oct 2 21:46:32 2023 CST gpgv: using RSA key CFDCA245B1043CF2A5F97865FFE87404168BD847 gpgv: Good signature from "Pablo Galindo Salgado " + cd /builddir/build/BUILD + rm -rf Python-3.11.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Python-3.11.6.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.11.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'python3.11-3.11.6 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00001-rpath.patch + /usr/bin/git am --reject -q Checking patch Lib/distutils/unixccompiler.py... Applied patch Lib/distutils/unixccompiler.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00251-change-user-install-location.patch + /usr/bin/git am --reject -q Checking patch Lib/distutils/command/install.py... Checking patch Lib/site.py... Checking patch Lib/sysconfig.py... Checking patch Lib/test/test_sysconfig.py... Applied patch Lib/distutils/command/install.py cleanly. Applied patch Lib/site.py cleanly. Applied patch Lib/sysconfig.py cleanly. Applied patch Lib/test/test_sysconfig.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00371-revert-bpo-1596321-fix-threading-_shutdown-for-the-main-thread-gh-28549-gh-28589.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_threading.py... Hunk #1 succeeded at 972 (offset 16 lines). Checking patch Lib/threading.py... Hunk #1 succeeded at 1553 (offset 7 lines). Applied patch Lib/test/test_threading.py cleanly. Applied patch Lib/threading.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-add-loongarch64-support-for-python-3.11.6.patch + /usr/bin/git am --reject -q Checking patch configure.ac... Applied patch configure.ac cleanly. fatal: empty ident name (for <>) not allowed error: Bad exit status from /var/tmp/rpm-tmp.0g6z6F (%prep) RPM build warnings: RPM build errors: extra tokens at the end of %endif directive in line 431: %endif # with main_python extra tokens at the end of %endif directive in line 601: %endif # with debug_build extra tokens at the end of %endif directive in line 750: %endif # with debug_build extra tokens at the end of %endif directive in line 787: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 822: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 855: %endif # with debug_build extra tokens at the end of %endif directive in line 1104: %endif # with debug_build extra tokens at the end of %endif directive in line 1107: %endif # with tests extra tokens at the end of %endif directive in line 1586: %endif # with debug_build Bad exit status from /var/tmp/rpm-tmp.0g6z6F (%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/python3.11.spec