Mock Version: 6.2 Mock Version: 6.2 Mock Version: 6.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec'], chrootPath='/var/lib/mock/dist-an23-build-551749-88923/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.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 483: %endif # with main_python warning: extra tokens at the end of %endif directive in line 667: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 825: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 862: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 930: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1175: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1178: %endif # with tests warning: extra tokens at the end of %endif directive in line 1641: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1784419200 Wrote: /builddir/build/SRPMS/python3.10-3.10.15-12.an23.src.rpm RPM build warnings: extra tokens at the end of %endif directive in line 483: %endif # with main_python extra tokens at the end of %endif directive in line 667: %endif # with debug_build extra tokens at the end of %endif directive in line 825: %endif # with debug_build extra tokens at the end of %endif directive in line 862: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 930: %endif # with debug_build extra tokens at the end of %endif directive in line 1175: %endif # with debug_build extra tokens at the end of %endif directive in line 1178: %endif # with tests extra tokens at the end of %endif directive in line 1641: %endif # with debug_build Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec'], chrootPath='/var/lib/mock/dist-an23-build-551749-88923/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.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 483: %endif # with main_python warning: extra tokens at the end of %endif directive in line 667: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 825: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 862: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 930: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1175: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 1178: %endif # with tests warning: extra tokens at the end of %endif directive in line 1641: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1784419200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.a0CB2t + umask 022 + cd /builddir/build/BUILD + /usr/lib/rpm/anolis/gpgverify --keyring=/builddir/build/SOURCES/pgp_keys_combined.asc --signature=/builddir/build/SOURCES/Python-3.10.15.tar.xz.asc --data=/builddir/build/SOURCES/Python-3.10.15.tar.xz gpgv: Signature made Sat Sep 7 08:41:19 2024 CST gpgv: using RSA key CFDCA245B1043CF2A5F97865FFE87404168BD847 gpgv: Good signature from "Pablo Galindo Salgado " + cd /builddir/build/BUILD + rm -rf Python-3.10.15 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Python-3.10.15.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.10.15 + /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.10-3.10.15 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... Checking patch Lib/threading.py... Applied patch Lib/test/test_threading.py cleanly. Applied patch Lib/threading.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-add-loongarch64-support-for-python-3.10.12.patch + /usr/bin/git am --reject -q Checking patch configure.ac... Applied patch configure.ac cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/1001-Skip-tests-with-system-expat-2.5.0.patch + /usr/bin/git am --reject -q .git/rebase-apply/patch:30: trailing whitespace. .git/rebase-apply/patch:62: trailing whitespace. Checking patch Lib/test/test_pyexpat.py... Checking patch Lib/test/test_sax.py... Checking patch Lib/test/test_xml_etree.py... Applied patch Lib/test/test_pyexpat.py cleanly. Applied patch Lib/test/test_sax.py cleanly. Applied patch Lib/test/test_xml_etree.py cleanly. warning: 2 lines add whitespace errors. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-add-patch-to-fix-CVE-2025-6075.patch + /usr/bin/git am --reject -q Checking patch Lib/ntpath.py... Checking patch Lib/posixpath.py... Checking patch Lib/test/test_genericpath.py... Checking patch Lib/test/test_ntpath.py... Checking patch Misc/NEWS.d/next/Security/2025-05-30-22-33-27.gh-issue-136065.bu337o.rst... Applied patch Lib/ntpath.py cleanly. Applied patch Lib/posixpath.py cleanly. Applied patch Lib/test/test_genericpath.py cleanly. Applied patch Lib/test/test_ntpath.py cleanly. Applied patch Misc/NEWS.d/next/Security/2025-05-30-22-33-27.gh-issue-136065.bu337o.rst cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-bugfix-for-CVE-2024-9287.patch + /usr/bin/git am --reject -q Checking patch Lib/venv/__init__.py... Checking patch Lib/venv/scripts/common/activate... Checking patch Lib/venv/scripts/posix/activate.csh... Checking patch Lib/venv/scripts/posix/activate.fish... Applied patch Lib/venv/__init__.py cleanly. Applied patch Lib/venv/scripts/common/activate cleanly. Applied patch Lib/venv/scripts/posix/activate.csh cleanly. Applied patch Lib/venv/scripts/posix/activate.fish cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001002-bugfix-for-CVE-2025-13837.patch + /usr/bin/git am --reject -q Checking patch Lib/plistlib.py... Checking patch Lib/test/test_plistlib.py... Checking patch Misc/NEWS.d/next/Security/2024-05-21-22-11-31.gh-issue-119342.BTFj4Z.rst... Applied patch Lib/plistlib.py cleanly. Applied patch Lib/test/test_plistlib.py cleanly. Applied patch Misc/NEWS.d/next/Security/2024-05-21-22-11-31.gh-issue-119342.BTFj4Z.rst cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001003-bugfix-for-CVE-2026-4519.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_webbrowser.py... Checking patch Lib/webbrowser.py... Checking patch Misc/NEWS.d/next/Security/2026-01-16-12-04-49.gh-issue-143930.zYC5x3.rst... Applied patch Lib/test/test_webbrowser.py cleanly. Applied patch Lib/webbrowser.py cleanly. Applied patch Misc/NEWS.d/next/Security/2026-01-16-12-04-49.gh-issue-143930.zYC5x3.rst cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001004-bugfix-for-CVE-2026-8328.patch + /usr/bin/git am --reject -q Checking patch Lib/ftplib.py... Checking patch Lib/test/test_ftplib.py... Checking patch Misc/NEWS.d/next/Security/2026-05-10-18-05-32.gh-issue-87451.XkKB6M.rst... Applied patch Lib/ftplib.py cleanly. Applied patch Lib/test/test_ftplib.py cleanly. Applied patch Misc/NEWS.d/next/Security/2026-05-10-18-05-32.gh-issue-87451.XkKB6M.rst cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001005-bugfix-for-CVE-2026-3276.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_unicodedata.py... Checking patch Misc/NEWS.d/next/Security/2026-04-27-16-36-11.gh-issue-149079.vKl-LM.rst... Checking patch Modules/unicodedata.c... Applied patch Lib/test/test_unicodedata.py cleanly. Applied patch Misc/NEWS.d/next/Security/2026-04-27-16-36-11.gh-issue-149079.vKl-LM.rst cleanly. Applied patch Modules/unicodedata.c cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001006-bugfix-for-CVE-2026-3644.patch + /usr/bin/git am --reject -q Checking patch Doc/library/http.cookies.rst... Checking patch Lib/http/cookies.py... Checking patch Lib/test/test_http_cookies.py... Applied patch Doc/library/http.cookies.rst cleanly. Applied patch Lib/http/cookies.py cleanly. Applied patch Lib/test/test_http_cookies.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001007-bugfix-for-CVE-2026-3644.patch + /usr/bin/git am --reject -q Checking patch Lib/test/support/__init__.py... Hunk #1 succeeded at 2122 (offset -35 lines). Checking patch Lib/test/test_wsgiref.py... Checking patch Lib/wsgiref/headers.py... Applied patch Lib/test/support/__init__.py cleanly. Applied patch Lib/test/test_wsgiref.py cleanly. Applied patch Lib/wsgiref/headers.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001008-bugfix-for-CVE-2026-3644.patch + /usr/bin/git am --reject -q Checking patch Lib/http/cookies.py... Checking patch Lib/test/test_http_cookies.py... Applied patch Lib/http/cookies.py cleanly. Applied patch Lib/test/test_http_cookies.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001009-bugfix-for-CVE-2026-4224.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_pyexpat.py... Checking patch Modules/pyexpat.c... Applied patch Lib/test/test_pyexpat.py cleanly. Applied patch Modules/pyexpat.c cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001010-bugfix-for-CVE-2026-7210.patch + /usr/bin/git am --reject -q Checking patch Include/pyexpat.h... Checking patch Include/pyhash.h... Checking patch Modules/_elementtree.c... Checking patch Modules/pyexpat.c... Hunk #1 succeeded at 1213 (offset 6 lines). Hunk #2 succeeded at 2013 (offset 6 lines). Applied patch Include/pyexpat.h cleanly. Applied patch Include/pyhash.h cleanly. Applied patch Modules/_elementtree.c cleanly. Applied patch Modules/pyexpat.c cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001011-bugfix-for-CVE-2025-12084.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_minidom.py... Checking patch Lib/xml/dom/minidom.py... Checking patch Misc/NEWS.d/next/Security/2025-12-01-09-36-45.gh-issue-142145.tcAUhg.rst... Applied patch Lib/test/test_minidom.py cleanly. Applied patch Lib/xml/dom/minidom.py cleanly. Applied patch Misc/NEWS.d/next/Security/2025-12-01-09-36-45.gh-issue-142145.tcAUhg.rst cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/CVE-2026-3276-CVE-2026-3276-unicodedata-normalize-can.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_unicodedata.py... error: while searching for: b = 'C\u0338' * 20 + '\xC7' self.assertEqual(self.db.normalize('NFC', a), b) def test_issue29456(self): # Fix #29456 u1176_str_a = '\u1100\u1176\u11a8' error: patch failed: Lib/test/test_unicodedata.py:580 Applying patch Lib/test/test_unicodedata.py with 1 reject... Rejected hunk #1. Patch failed at 0001 CVE-2026-3276: unicodedata.normalize() can take excessive CPU time when processing hint: Use 'git am --show-current-patch=diff' to see the failed patch hint: When you have resolved this problem, run "git am --continue". hint: If you prefer to skip this patch, run "git am --skip" instead. hint: To restore the original branch and stop patching, run "git am --abort". hint: Disable this message with "git config advice.mergeConflict false" error: Bad exit status from /var/tmp/rpm-tmp.a0CB2t (%prep) RPM build warnings: RPM build errors: extra tokens at the end of %endif directive in line 483: %endif # with main_python extra tokens at the end of %endif directive in line 667: %endif # with debug_build extra tokens at the end of %endif directive in line 825: %endif # with debug_build extra tokens at the end of %endif directive in line 862: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 930: %endif # with debug_build extra tokens at the end of %endif directive in line 1175: %endif # with debug_build extra tokens at the end of %endif directive in line 1178: %endif # with tests extra tokens at the end of %endif directive in line 1641: %endif # with debug_build Bad exit status from /var/tmp/rpm-tmp.a0CB2t (%prep) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec'\n", 1)] 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 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec'