<86>Apr 21 00:37:31 userdel[29563]: delete user 'rooter' <86>Apr 21 00:37:31 userdel[29563]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 21 00:37:31 groupadd[29576]: group added to /etc/group: name=rooter, GID=537 <86>Apr 21 00:37:31 groupadd[29576]: group added to /etc/gshadow: name=rooter <86>Apr 21 00:37:31 groupadd[29576]: new group: name=rooter, GID=537 <86>Apr 21 00:37:31 useradd[29581]: new user: name=rooter, UID=537, GID=537, home=/root, shell=/bin/bash <86>Apr 21 00:37:31 userdel[29587]: delete user 'builder' <86>Apr 21 00:37:31 userdel[29587]: removed group 'builder' owned by 'builder' <86>Apr 21 00:37:31 userdel[29587]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 00:37:31 groupadd[29595]: group added to /etc/group: name=builder, GID=538 <86>Apr 21 00:37:31 groupadd[29595]: group added to /etc/gshadow: name=builder <86>Apr 21 00:37:31 groupadd[29595]: new group: name=builder, GID=538 <86>Apr 21 00:37:31 useradd[29605]: new user: name=builder, UID=538, GID=538, home=/usr/src, shell=/bin/bash <13>Apr 21 00:37:35 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 00:37:35 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 00:37:35 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:37:35 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:37:35 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:35 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 00:37:35 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 00:37:35 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 00:37:35 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 00:37:35 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 00:37:35 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 00:37:35 groupadd[5861]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 00:37:35 groupadd[5861]: group added to /etc/gshadow: name=_keytab <86>Apr 21 00:37:35 groupadd[5861]: new group: name=_keytab, GID=499 <13>Apr 21 00:37:35 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 00:37:36 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:37:36 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:36 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:37:36 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:36 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:37:36 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 00:37:36 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:36 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:37:36 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:37:37 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:37:37 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:37:37 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:37:37 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-json_patch-0.1-alt1.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.98003 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-json_patch-0.1 + echo 'Source #0 (python-module-json_patch-0.1.tar):' Source #0 (python-module-json_patch-0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-json_patch-0.1.tar + cd python-module-json_patch-0.1 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -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: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/json_patch/test.py RefactoringTool: Refactored ../python3/json_patch/patch.py RefactoringTool: Refactored ../python3/json_patch/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/json_patch/test.py RefactoringTool: ../python3/json_patch/patch.py RefactoringTool: ../python3/json_patch/__init__.py --- ../python3/json_patch/test.py (original) +++ ../python3/json_patch/test.py (refactored) @@ -7,7 +7,7 @@ class JSONPatchTestcase(object): def _test(self, test): - print test + print(test) patch = Patch(test['patch']) if 'error' in test: --- ../python3/json_patch/patch.py (original) +++ ../python3/json_patch/patch.py (refactored) @@ -67,7 +67,7 @@ try: pointer = Pointer(operation['path']) data = func(data, pointer, operation) - except PointerError, e: + except PointerError as e: raise PatchError('Could not apply patch: %s' % e) return data --- ../python3/json_patch/__init__.py (original) +++ ../python3/json_patch/__init__.py (refactored) @@ -1,4 +1,4 @@ -from patch import Patch, PatchError +from .patch import Patch, PatchError __all__ = ['Patch', 'PatchError'] + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.16518 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-json_patch-0.1 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/json_patch copying json_patch/test.py -> build/lib/json_patch copying json_patch/patch.py -> build/lib/json_patch copying json_patch/__init__.py -> build/lib/json_patch + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-json_patch-0.1 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/json_patch copying json_patch/test.py -> build/lib/json_patch copying json_patch/patch.py -> build/lib/json_patch copying json_patch/__init__.py -> build/lib/json_patch + popd ~/RPM/BUILD/python-module-json_patch-0.1 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.97323 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-json_patch-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-json_patch-buildroot + cd python-module-json_patch-0.1 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-json_patch-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-json_patch-buildroot creating /usr/src/tmp/python-module-json_patch-buildroot/usr creating /usr/src/tmp/python-module-json_patch-buildroot/usr/lib creating /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch copying build/lib/json_patch/__init__.py -> /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch copying build/lib/json_patch/patch.py -> /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch copying build/lib/json_patch/test.py -> /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch byte-compiling /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/patch.py to patch.pyc byte-compiling /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/test.py to test.pyc running install_egg_info running egg_info writing requirements to json_patch.egg-info/requires.txt writing json_patch.egg-info/PKG-INFO writing top-level names to json_patch.egg-info/top_level.txt writing dependency_links to json_patch.egg-info/dependency_links.txt reading manifest file 'json_patch.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'json_patch.egg-info/SOURCES.txt' Copying json_patch.egg-info to /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch-0.1-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-json_patch-0.1 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-json_patch-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch copying build/lib/json_patch/__init__.py -> /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch copying build/lib/json_patch/patch.py -> /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch copying build/lib/json_patch/test.py -> /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch byte-compiling /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/patch.py to patch.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/test.py to test.cpython-35.pyc running install_egg_info running egg_info writing requirements to json_patch.egg-info/requires.txt writing top-level names to json_patch.egg-info/top_level.txt writing json_patch.egg-info/PKG-INFO writing dependency_links to json_patch.egg-info/dependency_links.txt reading manifest file 'json_patch.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'json_patch.egg-info/SOURCES.txt' Copying json_patch.egg-info to /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch-0.1-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-json_patch-0.1 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-json_patch-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-json_patch-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-json_patch-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-json_patch-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-json_patch-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-json_patch-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/__init__.pyc unlink /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/patch.pyc unlink /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/test.pyc compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/__init__.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/patch.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/test.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-json_patch-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/__init__.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/patch.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python2.7/site-packages/json_patch/test.py Bytecompiling python3 modules in /usr/src/tmp/python-module-json_patch-buildroot using python3 unlink /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/__pycache__/patch.cpython-35.pyc unlink /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/__pycache__/test.cpython-35.pyc compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/__init__.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/patch.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/test.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-json_patch-buildroot using python3 -O compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/__init__.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/patch.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/test.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-json_patch-buildroot using python3 -OO compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/__init__.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/patch.py compile /usr/src/tmp/python-module-json_patch-buildroot/usr/lib/python3/site-packages/json_patch/test.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/json_patch/__pycache__/test.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/json_patch/__pycache__/test.cpython-35.pyc' './usr/lib/python3/site-packages/json_patch/__pycache__/test.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/json_patch/__pycache__/test.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/json_patch/__pycache__/patch.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/json_patch/__pycache__/patch.cpython-35.pyc' './usr/lib/python3/site-packages/json_patch/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/json_patch/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/json_patch/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/json_patch/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/json_patch/test.pyo' => './usr/lib/python2.7/site-packages/json_patch/test.pyc' './usr/lib/python2.7/site-packages/json_patch/patch.pyo' => './usr/lib/python2.7/site-packages/json_patch/patch.pyc' './usr/lib/python2.7/site-packages/json_patch/__init__.pyo' => './usr/lib/python2.7/site-packages/json_patch/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.98856 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-json_patch-0.1 + python setup.py test running test running egg_info deleting json_patch.egg-info/requires.txt writing json_patch.egg-info/PKG-INFO writing top-level names to json_patch.egg-info/top_level.txt writing dependency_links to json_patch.egg-info/dependency_links.txt reading manifest file 'json_patch.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'json_patch.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-json_patch-0.1 + python3 setup.py test running test running egg_info writing dependency_links to json_patch.egg-info/dependency_links.txt writing json_patch.egg-info/PKG-INFO deleting json_patch.egg-info/requires.txt writing top-level names to json_patch.egg-info/top_level.txt reading manifest file 'json_patch.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'json_patch.egg-info/SOURCES.txt' running build_ext json_patch (unittest.loader._FailedTest) ... ERROR ====================================================================== ERROR: json_patch (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: json_patch Traceback (most recent call last): File "/usr/lib64/python3.5/unittest/loader.py", line 462, in _find_test_path package = self._get_module_from_name(name) File "/usr/lib64/python3.5/unittest/loader.py", line 369, in _get_module_from_name __import__(name) File "/usr/src/RPM/BUILD/python3/json_patch/__init__.py", line 1, in from .patch import Patch, PatchError File "/usr/src/RPM/BUILD/python3/json_patch/patch.py", line 7, in from json_pointer import Pointer, PointerError ImportError: No module named 'json_pointer' ---------------------------------------------------------------------- Ran 1 test in 0.000s FAILED (errors=1) error: Bad exit status from /usr/src/tmp/rpm-tmp.98856 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.98856 (%check) Command exited with non-zero status 1 3.42user 0.70system 0:04.26elapsed 96%CPU (0avgtext+0avgdata 24964maxresident)k 0inputs+0outputs (0major+111775minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-json_patch-0.1-alt1.1.1.src.rpm' failed. Command exited with non-zero status 1 9.99user 4.69system 0:14.54elapsed 101%CPU (0avgtext+0avgdata 121980maxresident)k 0inputs+0outputs (0major+297475minor)pagefaults 0swaps