Mock Version: 1.2.17 Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-concurrentloghandler.spec'], gid=425timeout=172800env={'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"'}uid=1000printOutput=Falseuser='mockbuild'chrootPath='/var/lib/mock/f24-build-5871688-613056/root'shell=Falselogger=) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-concurrentloghandler.spec'] with env {'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"'} and shell False warning: Could not canonicalize hostname: buildhw-02.phx2.fedoraproject.org Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-concurrentloghandler-0.9.1-1.fc24.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-concurrentloghandler.spec'], gid=425timeout=172800env={'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"'}uid=1000printOutput=Falseuser='mockbuild'chrootPath='/var/lib/mock/f24-build-5871688-613056/root'shell=Falseprivate_network=Truelogger=) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-concurrentloghandler.spec'] with env {'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ASIRvW + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf python-concurrentloghandler-0.9.1 + /usr/bin/mkdir -p python-concurrentloghandler-0.9.1 + cd python-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 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv ConcurrentLogHandler-0.9.1 python2 + pushd python2 ~/build/BUILD/python-concurrentloghandler-0.9.1/python2 ~/build/BUILD/python-concurrentloghandler-0.9.1 Patch #0 (ConcurrentLogHandler-0.8.6-testpath.patch): + echo 'Patch #0 (ConcurrentLogHandler-0.8.6-testpath.patch):' + /usr/bin/patch -p1 --fuzz=0 patching file setup.py Hunk #1 succeeded at 262 (offset 15 lines). + rm -rf src/portalocker.py + rm -rf src/ConcurrentLogHandler.egg-info ~/build/BUILD/python-concurrentloghandler-0.9.1 + popd + cp -a python2 python3 + 2to3 --write --nobackups python3 RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored python3/ez_setup.py RefactoringTool: No changes to python3/setup.py RefactoringTool: Refactored python3/stresstest.py RefactoringTool: No changes to python3/src/cloghandler.py RefactoringTool: Files that were modified: RefactoringTool: python3/ez_setup.py RefactoringTool: python3/setup.py RefactoringTool: python3/stresstest.py RefactoringTool: python3/src/cloghandler.py --- python3/ez_setup.py (original) +++ python3/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) --- python3/stresstest.py (original) +++ python3/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): + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Bp1U1Q + umask 022 + cd /builddir/build/BUILD + cd python-concurrentloghandler-0.9.1 + pushd python2 ~/build/BUILD/python-concurrentloghandler-0.9.1/python2 ~/build/BUILD/python-concurrentloghandler-0.9.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -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 file src/portalocker.py (for module portalocker) not found ~/build/BUILD/python-concurrentloghandler-0.9.1 ~/build/BUILD/python-concurrentloghandler-0.9.1/python3 ~/build/BUILD/python-concurrentloghandler-0.9.1 + popd + pushd python3 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /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 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 ~/build/BUILD/python-concurrentloghandler-0.9.1 + popd + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.zewgJO + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch ++ dirname /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch + cd python-concurrentloghandler-0.9.1 + pushd python2 ~/build/BUILD/python-concurrentloghandler-0.9.1/python2 ~/build/BUILD/python-concurrentloghandler-0.9.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python2.7/site-packages copying build/lib/cloghandler.py -> /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python2.7/site-packages byte-compiling /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python2.7/site-packages/cloghandler.py to cloghandler.pyc writing byte-compilation script '/tmp/tmpZ_AW5S.py' /usr/bin/python2 -O /tmp/tmpZ_AW5S.py removing /tmp/tmpZ_AW5S.py running install_egg_info running egg_info creating src/ConcurrentLogHandler.egg-info writing src/ConcurrentLogHandler.egg-info/PKG-INFO writing top-level names to src/ConcurrentLogHandler.egg-info/top_level.txt writing dependency_links to src/ConcurrentLogHandler.egg-info/dependency_links.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' writing manifest file 'src/ConcurrentLogHandler.egg-info/SOURCES.txt' Copying src/ConcurrentLogHandler.egg-info to /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python2.7/site-packages/ConcurrentLogHandler-0.9.1-py2.7.egg-info running install_scripts ~/build/BUILD/python-concurrentloghandler-0.9.1 ~/build/BUILD/python-concurrentloghandler-0.9.1/python3 ~/build/BUILD/python-concurrentloghandler-0.9.1 + popd + pushd python3 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python3.5 creating /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python3.5/site-packages copying build/lib/cloghandler.py -> /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python3.5/site-packages byte-compiling /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python3.5/site-packages/cloghandler.py to cloghandler.cpython-35.pyc writing byte-compilation script '/tmp/tmpsjhxloaq.py' /usr/bin/python3 -O /tmp/tmpsjhxloaq.py removing /tmp/tmpsjhxloaq.py running install_egg_info running egg_info creating src/ConcurrentLogHandler.egg-info writing src/ConcurrentLogHandler.egg-info/PKG-INFO writing top-level names to src/ConcurrentLogHandler.egg-info/top_level.txt writing dependency_links to src/ConcurrentLogHandler.egg-info/dependency_links.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' writing manifest file 'src/ConcurrentLogHandler.egg-info/SOURCES.txt' Copying src/ConcurrentLogHandler.egg-info to /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python3.5/site-packages/ConcurrentLogHandler-0.9.1-py3.5.egg-info running install_scripts ~/build/BUILD/python-concurrentloghandler-0.9.1 + popd + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/python-concurrentloghandler-0.9.1 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python3.5 using /usr/bin/python3.5 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YV3wdP + umask 022 + cd /builddir/build/BUILD + cd python-concurrentloghandler-0.9.1 + pushd python2 ~/build/BUILD/python-concurrentloghandler-0.9.1/python2 ~/build/BUILD/python-concurrentloghandler-0.9.1 + PYTHONPATH=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python2.7/site-packages + /usr/bin/python2 stresstest.py We are done pid=25065 We are done pid=25066 We are done pid=25067 Waiting while children are out running and playing! Waiting on [25065, 25066, 25067] Waiting on [25066, 25067] Waiting on [25067] 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 ---- ~/build/BUILD/python-concurrentloghandler-0.9.1 ~/build/BUILD/python-concurrentloghandler-0.9.1/python3 ~/build/BUILD/python-concurrentloghandler-0.9.1 + popd + pushd python3 + PYTHONPATH=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/lib/python3.5/site-packages + /usr/bin/python3 stresstest.py We are done pid=25069 We are done pid=25070 We are done pid=25071 Waiting while children are out running and playing! Waiting on [25069, 25070, 25071] Waiting on [25069, 25070, 25071] Waiting on [25070, 25071] 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 ---- ~/build/BUILD/python-concurrentloghandler-0.9.1 + popd + exit 0 Processing files: python2-concurrentloghandler-0.9.1-1.fc24.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.eovRXF + umask 022 + cd /builddir/build/BUILD + cd python-concurrentloghandler-0.9.1 + DOCDIR=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/doc/python2-concurrentloghandler + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/doc/python2-concurrentloghandler + cp -pr python2/README /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/doc/python2-concurrentloghandler + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.C20nJw + umask 022 + cd /builddir/build/BUILD + cd python-concurrentloghandler-0.9.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/licenses/python2-concurrentloghandler + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/licenses/python2-concurrentloghandler + cp -pr python2/LICENSE /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/licenses/python2-concurrentloghandler + exit 0 Provides: python-ConcurrentLogHandler = 0.9.1-1.fc24 python-concurrent-log-handler = 0.9.1-1.fc24 python-concurrentloghandler = 0.9.1-1.fc24 python2-concurrentloghandler = 0.9.1-1.fc24 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) = 2.7 Obsoletes: python-ConcurrentLogHandler < 0.9.1-1.fc24 python-concurrent-log-handler < 0.9.1-1.fc24 python-concurrentloghandler < 0.9.1-1.fc24 Processing files: python3-concurrentloghandler-0.9.1-1.fc24.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.PdbiGn + umask 022 + cd /builddir/build/BUILD + cd python-concurrentloghandler-0.9.1 + DOCDIR=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/doc/python3-concurrentloghandler + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/doc/python3-concurrentloghandler + cp -pr python3/README /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/doc/python3-concurrentloghandler + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.ECahEe + umask 022 + cd /builddir/build/BUILD + cd python-concurrentloghandler-0.9.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/licenses/python3-concurrentloghandler + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/licenses/python3-concurrentloghandler + cp -pr python3/LICENSE /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch/usr/share/licenses/python3-concurrentloghandler + exit 0 Provides: python3-concurrentloghandler = 0.9.1-1.fc24 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.5 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch warning: Could not canonicalize hostname: buildhw-02.phx2.fedoraproject.org Wrote: /builddir/build/RPMS/python2-concurrentloghandler-0.9.1-1.fc24.noarch.rpm Wrote: /builddir/build/RPMS/python3-concurrentloghandler-0.9.1-1.fc24.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.2knoX5 + umask 022 + cd /builddir/build/BUILD + cd python-concurrentloghandler-0.9.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-concurrentloghandler-0.9.1-1.fc24.noarch + exit 0 Child return code was: 0