Mock Version: 1.2.14 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/python-ply.spec'], timeout=0env={'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'SHELL': '/bin/bash'}gid=135user='mockbuild'shell=FalsechrootPath='/var/lib/mock/fedora-20-armhfp-pidora-root-9995/root'uid=1000printOutput=Falselogger=) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/python-ply.spec'] with env {'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'SHELL': '/bin/bash'} and shell False sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory warning: Could not canonicalize hostname: armbuilder Building target platforms: armv6hl Building for target armv6hl Wrote: /builddir/build/SRPMS/python-ply-3.6-2bs01fc23.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/python-ply.spec '], timeout=0env={'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'SHELL': '/bin/bash'}private_network=Trueuser='mockbuild'shell=Falseuid=1000gid=135chrootPath='/var/lib/mock/fedora-20-armhfp-pidora-root-9995/root'printOutput=Falselogger=) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv6hl --nodeps /builddir/build/SPECS/python-ply.spec '] with env {'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002', 'SHELL': '/bin/bash'} and shell False Building target platforms: armv6hl Building for target armv6hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Z5a2jq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ply-3.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/ply-3.6.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ply-3.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Fixed-issue-63.patch):' Patch #1 (0001-Fixed-issue-63.patch): + /usr/bin/patch -p1 --fuzz=0 patching file CHANGES patching file ply/lex.py patching file ply/yacc.py + echo 'Patch #2 (0002-Minor-fix-to-account-for-bad-None-arguments-for-tabm.patch):' Patch #2 (0002-Minor-fix-to-account-for-bad-None-arguments-for-tabm.patch): + /usr/bin/patch -p1 --fuzz=0 patching file ply/lex.py patching file ply/yacc.py + sed -i 's|/usr/local/bin/python|/usr/bin/python|g' example/yply/yply.py + chmod -x example/yply/yply.py example/newclasscalc/calc.py example/classcalc/calc.py example/cleanup.sh + rm -rf /builddir/build/BUILD/python3-python-ply-3.6-2bs01fc23 + cp -a . /builddir/build/BUILD/python3-python-ply-3.6-2bs01fc23 + find /builddir/build/BUILD/python3-python-ply-3.6-2bs01fc23 -name '*.py' + xargs sed -i '1s|^#!/usr/bin/python|#!/usr/bin/python3|' + pushd /builddir/build/BUILD/python3-python-ply-3.6-2bs01fc23 ~/build/BUILD/python3-python-ply-3.6-2bs01fc23 ~/build/BUILD/ply-3.6 + 2to3 --write --nobackups ply/cpp.py RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: Refactored ply/cpp.py RefactoringTool: Files that were modified: RefactoringTool: ply/cpp.py --- ply/cpp.py (original) +++ ply/cpp.py (refactored) @@ -7,7 +7,7 @@ # # This module implements an ANSI-C style lexical preprocessor for PLY. # ----------------------------------------------------------------------------- -from __future__ import generators + # ----------------------------------------------------------------------------- # Default preprocessor lexer definitions. These tokens are enough to get @@ -185,7 +185,7 @@ # ---------------------------------------------------------------------- def error(self,file,line,msg): - print("%s:%d %s" % (file,line,msg)) + print(("%s:%d %s" % (file,line,msg))) # ---------------------------------------------------------------------- # lexprobe() @@ -248,7 +248,7 @@ self.lexer.input(c) tok = self.lexer.token() if not tok or tok.value != c: - print("Unable to lex '%s' required for preprocessor" % c) + print(("Unable to lex '%s' required for preprocessor" % c)) # ---------------------------------------------------------------------- # add_path() @@ -271,7 +271,7 @@ def group_lines(self,input): lex = self.lexer.clone() lines = [x.rstrip() for x in input.splitlines()] - for i in xrange(len(lines)): + for i in range(len(lines)): j = i+1 while lines[i].endswith('\\') and (j < len(lines)): lines[i] = lines[i][:-1]+lines[j] @@ -590,7 +590,7 @@ expr = expr.replace("!"," not ") try: result = eval(expr) - except StandardError: + except Exception: self.error(self.source,tokens[0].lineno,"Couldn't evaluate expression") result = 0 return result @@ -772,7 +772,7 @@ except IOError: pass else: - print("Couldn't find '%s'" % filename) + print(("Couldn't find '%s'" % filename)) # ---------------------------------------------------------------------- # define() @@ -781,7 +781,7 @@ # ---------------------------------------------------------------------- def define(self,tokens): - if isinstance(tokens,(str,unicode)): + if isinstance(tokens,str): tokens = self.tokenize(tokens) linetok = tokens @@ -894,7 +894,7 @@ while True: tok = p.token() if not tok: break - print(p.source, tok) + print((p.source, tok)) + popd ~/build/BUILD/ply-3.6 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6tS0Kf + umask 022 + cd /builddir/build/BUILD + cd ply-3.6 + /usr/bin/python setup.py build running build running build_py creating build creating build/lib creating build/lib/ply copying ply/lex.py -> build/lib/ply copying ply/__init__.py -> build/lib/ply copying ply/ctokens.py -> build/lib/ply copying ply/cpp.py -> build/lib/ply copying ply/yacc.py -> build/lib/ply copying ply/ygen.py -> build/lib/ply + pushd /builddir/build/BUILD/python3-python-ply-3.6-2bs01fc23 ~/build/BUILD/python3-python-ply-3.6-2bs01fc23 ~/build/BUILD/ply-3.6 + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/ply copying ply/lex.py -> build/lib/ply copying ply/__init__.py -> build/lib/ply copying ply/ctokens.py -> build/lib/ply copying ply/cpp.py -> build/lib/ply copying ply/yacc.py -> build/lib/ply copying ply/ygen.py -> build/lib/ply + popd ~/build/BUILD/ply-3.6 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QqrJlS + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm ++ dirname /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm + cd ply-3.6 + rm -rf /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm + /usr/bin/python setup.py install --skip-build --root /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm running install running install_lib creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply copying build/lib/ply/lex.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply copying build/lib/ply/__init__.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply copying build/lib/ply/ctokens.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply copying build/lib/ply/cpp.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply copying build/lib/ply/yacc.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply copying build/lib/ply/ygen.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply/lex.py to lex.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply/ctokens.py to ctokens.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply/cpp.py to cpp.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply/yacc.py to yacc.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply/ygen.py to ygen.pyc running install_egg_info running egg_info writing ply.egg-info/PKG-INFO writing top-level names to ply.egg-info/top_level.txt writing dependency_links to ply.egg-info/dependency_links.txt reading manifest file 'ply.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'ply.egg-info/SOURCES.txt' Copying ply.egg-info to /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7/site-packages/ply-3.6-py2.7.egg-info running install_scripts + pushd /builddir/build/BUILD/python3-python-ply-3.6-2bs01fc23 ~/build/BUILD/python3-python-ply-3.6-2bs01fc23 ~/build/BUILD/ply-3.6 + /usr/bin/python3 setup.py install --skip-build --root /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm running install running install_lib creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4 creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages creating /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply copying build/lib/ply/lex.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply copying build/lib/ply/__init__.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply copying build/lib/ply/ctokens.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply copying build/lib/ply/cpp.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply copying build/lib/ply/yacc.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply copying build/lib/ply/ygen.py -> /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply/lex.py to lex.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply/__init__.py to __init__.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply/ctokens.py to ctokens.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply/cpp.py to cpp.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply/yacc.py to yacc.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply/ygen.py to ygen.cpython-34.pyc running install_egg_info running egg_info writing dependency_links to ply.egg-info/dependency_links.txt writing ply.egg-info/PKG-INFO writing top-level names to ply.egg-info/top_level.txt reading manifest file 'ply.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'ply.egg-info/SOURCES.txt' Copying ply.egg-info to /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python3.4/site-packages/ply-3.6-py3.4.egg-info running install_scripts + popd ~/build/BUILD/ply-3.6 + /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/ply-3.6 /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/redhat/brp-compress + /usr/lib/rpm/redhat/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-ply-3.6-2bs01fc23.arm/usr/lib/python3.4 using /usr/bin/python3.4 Bytecompiling .py files below /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: python-ply-3.6-2bs01fc23.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.lPX8P5 + umask 022 + cd /builddir/build/BUILD + cd ply-3.6 + DOCDIR=/builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python-ply + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python-ply + cp -pr CHANGES /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python-ply + cp -pr example/ /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python-ply + exit 0 Provides: python-ply = 3.6-2bs01fc23 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 Processing files: python3-ply-3.6-2bs01fc23.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.EEh3b9 + umask 022 + cd /builddir/build/BUILD + cd ply-3.6 + DOCDIR=/builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python3-ply + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python3-ply + cp -pr CHANGES /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python3-ply + cp -pr example/ /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm/usr/share/doc/python3-ply + exit 0 Provides: python3-ply = 3.6-2bs01fc23 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.4 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm warning: Could not canonicalize hostname: armbuilder Wrote: /builddir/build/RPMS/python-ply-3.6-2bs01fc23.noarch.rpm Wrote: /builddir/build/RPMS/python3-ply-3.6-2bs01fc23.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.tNbves + umask 022 + cd /builddir/build/BUILD + cd ply-3.6 + rm -rf /builddir/build/BUILDROOT/python-ply-3.6-2bs01fc23.arm + exit 0 Child return code was: 0 LEAVE do -->