Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-concurrentloghandler.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1632134551.960509/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=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.nwf2eo3r:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.nwf2eo3r:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '87b33f5e83a24cf6890a871cb2ab4960', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1632134551.960509/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.nwf2eo3r:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-concurrentloghandler.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1627776000 Wrote: /builddir/build/SRPMS/python-concurrentloghandler-0.9.1-20.fc36.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-concurrentloghandler.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1632134551.960509/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=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.nwf2eo3r:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.nwf2eo3r:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c2daf1f2c1e749e2bf774e5361e98ade', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1632134551.960509/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.nwf2eo3r:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-concurrentloghandler.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1627776000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4mW6T0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ConcurrentLogHandler-0.9.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/ConcurrentLogHandler-0.9.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ConcurrentLogHandler-0.9.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (ConcurrentLogHandler-0.8.6-testpath.patch): + echo 'Patch #0 (ConcurrentLogHandler-0.8.6-testpath.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file setup.py Hunk #1 succeeded at 262 (offset 15 lines). Patch #1 (ConcurrentLogHandler-0.9.1-dont-override-_open.patch): + echo 'Patch #1 (ConcurrentLogHandler-0.9.1-dont-override-_open.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/cloghandler.py + rm -rf src/portalocker.py + rm -rf src/ConcurrentLogHandler.egg-info + 2to3 --write --nobackups . RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./ez_setup.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./stresstest.py RefactoringTool: No changes to ./src/cloghandler.py RefactoringTool: Files that were modified: RefactoringTool: ./ez_setup.py RefactoringTool: ./setup.py RefactoringTool: ./stresstest.py RefactoringTool: ./src/cloghandler.py --- ./ez_setup.py (original) +++ ./ez_setup.py (refactored) @@ -151,7 +151,7 @@ try: from urllib.request import urlopen except ImportError: - from urllib2 import urlopen + from urllib.request import urlopen tgz_name = "setuptools-%s.tar.gz" % version url = download_base + tgz_name saveto = os.path.join(to_dir, tgz_name) --- ./stresstest.py (original) +++ ./stresstest.py (refactored) @@ -93,7 +93,7 @@ if self.random_sleep_mode and c % 1000 == 0: # Sleep from 0-15 seconds s = randint(1,15) - print("PID %d sleeping for %d seconds" % (os.getpid(), s)) + print(("PID %d sleeping for %d seconds" % (os.getpid(), s))) sleep(s) # break self.log.info("Done witting random log messages.") @@ -154,7 +154,7 @@ tester.debug = options.debug tester.writeLoops = options.log_calls tester.start() - print("We are done pid=%d" % os.getpid()) + print(("We are done pid=%d" % os.getpid())) @@ -165,7 +165,7 @@ def __init__(self, **kwargs): self.update(**kwargs) def update(self, **kwargs): - for key, val in kwargs.items(): + for key, val in list(kwargs.items()): setattr(self, key, val) def __init__(self): @@ -188,7 +188,7 @@ waiting.append(cp.popen.pid) if not waiting: break - print("Waiting on %r " % waiting) + print(("Waiting on %r " % waiting)) print("All children have stopped.") def checkExitCodes(self): + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.azhpkn + umask 022 + cd /builddir/build/BUILD + cd ConcurrentLogHandler-0.9.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py file src/portalocker.py (for module portalocker) not found creating build creating build/lib copying src/cloghandler.py -> build/lib /usr/lib/python3.10/site-packages/setuptools/lib2to3_ex.py:36: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process. warnings.warn( Fixing build/lib/cloghandler.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma Fixing build/lib/cloghandler.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma file src/portalocker.py (for module portalocker) not found + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.LgRVzx + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64 ++ dirname /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64 + cd ConcurrentLogHandler-0.9.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib/python3.10 creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib/python3.10/site-packages copying build/lib/cloghandler.py -> /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib/python3.10/site-packages byte-compiling /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib/python3.10/site-packages/cloghandler.py to cloghandler.cpython-310.pyc writing byte-compilation script '/tmp/tmpa7snksed.py' /usr/bin/python3 -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmpa7snksed.py removing /tmp/tmpa7snksed.py running install_egg_info running egg_info creating src/ConcurrentLogHandler.egg-info writing src/ConcurrentLogHandler.egg-info/PKG-INFO writing dependency_links to src/ConcurrentLogHandler.egg-info/dependency_links.txt writing top-level names to src/ConcurrentLogHandler.egg-info/top_level.txt writing manifest file 'src/ConcurrentLogHandler.egg-info/SOURCES.txt' file src/portalocker.py (for module portalocker) not found reading manifest file 'src/ConcurrentLogHandler.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/ConcurrentLogHandler.egg-info/SOURCES.txt' Copying src/ConcurrentLogHandler.egg-info to /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib/python3.10/site-packages/ConcurrentLogHandler-0.9.1-py3.10.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 0.9.1-20.fc36 --unique-debug-suffix -0.9.1-20.fc36.x86_64 --unique-debug-src-base python-concurrentloghandler-0.9.1-20.fc36.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/ConcurrentLogHandler-0.9.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib/python3.10 using python3.10 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.0rCmJ2 + umask 022 + cd /builddir/build/BUILD + cd ConcurrentLogHandler-0.9.1 + PYTHONPATH=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/lib/python3.10/site-packages + /usr/bin/python3 stresstest.py /builddir/build/BUILD/ConcurrentLogHandler-0.9.1/stresstest.py:91: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logfunc(msg, randint(0,99999999)) /builddir/build/BUILD/ConcurrentLogHandler-0.9.1/stresstest.py:91: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logfunc(msg, randint(0,99999999)) We are done pid=151 /builddir/build/BUILD/ConcurrentLogHandler-0.9.1/stresstest.py:91: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logfunc(msg, randint(0,99999999)) We are done pid=152 We are done pid=153 Waiting while children are out running and playing! All children have stopped. Writing out combined client logs... done. Writing out combined shared logs... done. Running internal diff: (If the next line is 'end of diff', then the stress test passed!) --- end of diff ---- + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-concurrentloghandler-0.9.1-20.fc36.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.zI7sHy + umask 022 + cd /builddir/build/BUILD + cd ConcurrentLogHandler-0.9.1 + DOCDIR=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/share/doc/python3-concurrentloghandler + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/share/doc/python3-concurrentloghandler + cp -pr README /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/share/doc/python3-concurrentloghandler + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.F74T52 + umask 022 + cd /builddir/build/BUILD + cd ConcurrentLogHandler-0.9.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/share/licenses/python3-concurrentloghandler + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/share/licenses/python3-concurrentloghandler + cp -pr LICENSE /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64/usr/share/licenses/python3-concurrentloghandler + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-ConcurrentLogHandler = 0.9.1-20.fc36 python-concurrent-log-handler = 0.9.1-20.fc36 python-concurrentloghandler = 0.9.1-20.fc36 python3-concurrentloghandler = 0.9.1-20.fc36 python3.10-ConcurrentLogHandler = 0.9.1-20.fc36 python3.10-concurrent-log-handler = 0.9.1-20.fc36 python3.10-concurrentloghandler = 0.9.1-20.fc36 python3.10dist(concurrentloghandler) = 0.9.1 python3dist(concurrentloghandler) = 0.9.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.10 Obsoletes: python-ConcurrentLogHandler < 0.9.1-20.fc36 python-concurrent-log-handler < 0.9.1-20.fc36 python-concurrentloghandler < 0.9.1-20.fc36 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64 Wrote: /builddir/build/RPMS/python3-concurrentloghandler-0.9.1-20.fc36.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.REThsH + umask 022 + cd /builddir/build/BUILD + cd ConcurrentLogHandler-0.9.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-20.fc36.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0