<86>Apr 29 09:24:46 userdel[723603]: delete user 'rooter' <86>Apr 29 09:24:46 userdel[723603]: removed group 'rooter' owned by 'rooter' <86>Apr 29 09:24:46 userdel[723603]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 29 09:24:46 groupadd[723621]: group added to /etc/group: name=rooter, GID=624 <86>Apr 29 09:24:46 groupadd[723621]: group added to /etc/gshadow: name=rooter <86>Apr 29 09:24:46 groupadd[723621]: new group: name=rooter, GID=624 <86>Apr 29 09:24:46 useradd[723633]: new user: name=rooter, UID=624, GID=624, home=/root, shell=/bin/bash <86>Apr 29 09:24:46 userdel[723650]: delete user 'builder' <86>Apr 29 09:24:46 userdel[723650]: removed group 'builder' owned by 'builder' <86>Apr 29 09:24:46 userdel[723650]: removed shadow group 'builder' owned by 'builder' <86>Apr 29 09:24:46 groupadd[723663]: group added to /etc/group: name=builder, GID=625 <86>Apr 29 09:24:46 groupadd[723663]: group added to /etc/gshadow: name=builder <86>Apr 29 09:24:46 groupadd[723663]: new group: name=builder, GID=625 <86>Apr 29 09:24:46 useradd[723673]: new user: name=builder, UID=625, GID=625, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/python3-module-commentjson-0.4-alt2.src.rpm: license not found in '/usr/share/license' directory: Free <13>Apr 29 09:24:50 rpmi: rpm-macros-python3-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed <13>Apr 29 09:24:50 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Apr 29 09:24:50 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Apr 29 09:24:50 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Apr 29 09:24:50 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Apr 29 09:24:50 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 29 09:24:50 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 29 09:24:50 rpmi: ca-certificates-2021.03.24-alt1 sisyphus+268304.300.1.1 1616591829 installed <13>Apr 29 09:24:50 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Apr 29 09:24:50 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Apr 29 09:24:50 rpmi: libcrypto1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed <13>Apr 29 09:24:50 rpmi: libssl1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed <13>Apr 29 09:24:50 rpmi: python3-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 09:24:51 rpmi: python3-base-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 09:24:51 rpmi: libpython3-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 09:24:51 rpmi: tests-for-installed-python3-pkgs-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed <13>Apr 29 09:24:51 rpmi: rpm-build-python3-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed <13>Apr 29 09:24:56 rpmi: libpython-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python2-base-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-encodings-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-compiler-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-email-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-unittest-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-ctypes-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-multiprocessing-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-modules-logging-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 09:24:56 rpmi: python-tools-2to3-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-commentjson-0.4-alt2.nosrc.rpm (w1.gzdio) <13>Apr 29 09:25:00 rpmi: python3-module-pkg_resources-1:56.0.0-alt1 sisyphus+269911.100.2.1 1618475070 installed <13>Apr 29 09:25:00 rpmi: libtinfo-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed <13>Apr 29 09:25:00 rpmi: libncurses-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed <13>Apr 29 09:25:00 rpmi: python3-dev-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 09:25:00 rpmi: python3-module-setuptools-1:56.0.0-alt1 sisyphus+269911.100.2.1 1618475070 installed Installing python3-module-commentjson-0.4-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.74044 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-commentjson-0.4 + echo 'Source #0 (python3-module-commentjson-0.4.tar):' Source #0 (python3-module-commentjson-0.4.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-commentjson-0.4.tar + cd python3-module-commentjson-0.4 + /bin/chmod -c -Rf u+rwX,go-w . + find ./ -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./setup.py RefactoringTool: Refactored ./docs/source/conf.py RefactoringTool: Refactored ./commentjson/tests/test_commentjson.py RefactoringTool: Refactored ./commentjson/commentjson.py RefactoringTool: Refactored ./commentjson/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./docs/source/conf.py RefactoringTool: ./commentjson/tests/test_commentjson.py RefactoringTool: ./commentjson/commentjson.py RefactoringTool: ./commentjson/__init__.py --- ./setup.py (original) +++ ./setup.py (refactored) @@ -1,4 +1,4 @@ -from __future__ import with_statement + import os import sys --- ./docs/source/conf.py (original) +++ ./docs/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'commentjson' -copyright = u'2013, Vaidik Kapoor' +project = 'commentjson' +copyright = '2013, Vaidik Kapoor' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -186,8 +186,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'commentjson.tex', u'commentjson Documentation', - u'Vaidik Kapoor', 'manual'), + ('index', 'commentjson.tex', 'commentjson Documentation', + 'Vaidik Kapoor', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -216,8 +216,8 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'commentjson', u'commentjson Documentation', - [u'Vaidik Kapoor'], 1) + ('index', 'commentjson', 'commentjson Documentation', + ['Vaidik Kapoor'], 1) ] # If true, show URL addresses after external links. @@ -230,8 +230,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'commentjson', u'commentjson Documentation', - u'Vaidik Kapoor', 'commentjson', 'One line description of project.', + ('index', 'commentjson', 'commentjson Documentation', + 'Vaidik Kapoor', 'commentjson', 'One line description of project.', 'Miscellaneous'), ] --- ./commentjson/tests/test_commentjson.py (original) +++ ./commentjson/tests/test_commentjson.py (refactored) @@ -51,7 +51,7 @@ Unserializable) def test_loads(self): - for index, test_json_ in self.test_json.iteritems(): + for index, test_json_ in self.test_json.items(): commented = test_json_['commented'] uncommented = test_json_['uncommented'] assert commentjson.loads(commented) == json.loads(uncommented) --- ./commentjson/commentjson.py (original) +++ ./commentjson/commentjson.py (refactored) @@ -47,7 +47,7 @@ lines = text.split('\n') excluded = [] - for index in xrange(len(lines)): + for index in range(len(lines)): if re.search(regex, lines[index]): if re.search(r'^' + regex, lines[index]): excluded.append(lines[index]) @@ -61,7 +61,7 @@ try: return json.loads('\n'.join(lines), **kwargs) - except Exception, e: + except Exception as e: raise JSONLibraryException(e.message) @@ -78,7 +78,7 @@ try: return json.dumps(obj, **kwargs) - except Exception, e: + except Exception as e: raise JSONLibraryException(e.message) @@ -96,7 +96,7 @@ try: return loads(fp.read(), **kwargs) - except Exception, e: + except Exception as e: raise JSONLibraryException(e.message) @@ -115,5 +115,5 @@ try: json.dump(obj, fp, **kwargs) - except Exception, e: + except Exception as e: raise JSONLibraryException(e.message) --- ./commentjson/__init__.py (original) +++ ./commentjson/__init__.py (refactored) @@ -1,5 +1,5 @@ -from commentjson import dump -from commentjson import dumps -from commentjson import JSONLibraryException -from commentjson import load -from commentjson import loads +from .commentjson import dump +from .commentjson import dumps +from .commentjson import JSONLibraryException +from .commentjson import load +from .commentjson import loads + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.38406 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-commentjson-0.4 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/commentjson copying commentjson/commentjson.py -> build/lib/commentjson copying commentjson/__init__.py -> build/lib/commentjson creating build/lib/commentjson/tests copying commentjson/tests/test_commentjson.py -> build/lib/commentjson/tests copying commentjson/tests/__init__.py -> build/lib/commentjson/tests running egg_info creating commentjson.egg-info writing commentjson.egg-info/PKG-INFO writing dependency_links to commentjson.egg-info/dependency_links.txt writing top-level names to commentjson.egg-info/top_level.txt writing manifest file 'commentjson.egg-info/SOURCES.txt' reading manifest file 'commentjson.egg-info/SOURCES.txt' writing manifest file 'commentjson.egg-info/SOURCES.txt' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.16886 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-commentjson-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-commentjson-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-commentjson-0.4 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-commentjson-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-commentjson-buildroot creating /usr/src/tmp/python3-module-commentjson-buildroot/usr creating /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib creating /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson creating /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson/tests copying build/lib/commentjson/tests/__init__.py -> /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson/tests copying build/lib/commentjson/tests/test_commentjson.py -> /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson/tests copying build/lib/commentjson/__init__.py -> /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson copying build/lib/commentjson/commentjson.py -> /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson byte-compiling /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson/tests/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson/tests/test_commentjson.py to test_commentjson.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson/commentjson.py to commentjson.cpython-39.pyc running install_egg_info running egg_info writing commentjson.egg-info/PKG-INFO writing dependency_links to commentjson.egg-info/dependency_links.txt writing top-level names to commentjson.egg-info/top_level.txt reading manifest file 'commentjson.egg-info/SOURCES.txt' writing manifest file 'commentjson.egg-info/SOURCES.txt' Copying commentjson.egg-info to /usr/src/tmp/python3-module-commentjson-buildroot/usr/lib/python3/site-packages/commentjson-0.4-py3.9.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-commentjson-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-commentjson-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-commentjson-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-commentjson-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-commentjson-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-commentjson-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python3-module-commentjson-buildroot using /usr/bin/python2.7 /usr/bin/python2.7: can't open file '/usr/lib/rpm/python.compileall.py': [Errno 2] No such file or directory error: Bad exit status from /usr/src/tmp/rpm-tmp.16886 (%install) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.16886 (%install) Command exited with non-zero status 1 4.72user 0.53system 0:05.18elapsed 101%CPU (0avgtext+0avgdata 19240maxresident)k 0inputs+0outputs (0major+59998minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-commentjson-0.4-alt2.src.rpm' failed. Command exited with non-zero status 1 17.73user 7.95system 0:24.42elapsed 105%CPU (0avgtext+0avgdata 107192maxresident)k 0inputs+0outputs (0major+487114minor)pagefaults 0swaps