<86>Jun 16 00:35:14 userdel[2157354]: delete user 'rooter' <86>Jun 16 00:35:14 userdel[2157354]: removed group 'rooter' owned by 'rooter' <86>Jun 16 00:35:14 userdel[2157354]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 16 00:35:14 groupadd[2157379]: group added to /etc/group: name=rooter, GID=1853 <86>Jun 16 00:35:14 groupadd[2157379]: group added to /etc/gshadow: name=rooter <86>Jun 16 00:35:14 groupadd[2157379]: new group: name=rooter, GID=1853 <86>Jun 16 00:35:14 useradd[2157398]: new user: name=rooter, UID=1853, GID=1853, home=/root, shell=/bin/bash <86>Jun 16 00:35:14 userdel[2157440]: delete user 'builder' <86>Jun 16 00:35:14 userdel[2157440]: removed group 'builder' owned by 'builder' <86>Jun 16 00:35:14 userdel[2157440]: removed shadow group 'builder' owned by 'builder' <86>Jun 16 00:35:14 groupadd[2157466]: group added to /etc/group: name=builder, GID=1854 <86>Jun 16 00:35:14 groupadd[2157466]: group added to /etc/gshadow: name=builder <86>Jun 16 00:35:14 groupadd[2157466]: new group: name=builder, GID=1854 <86>Jun 16 00:35:14 useradd[2157485]: new user: name=builder, UID=1854, GID=1854, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/python3-module-mozcrash-1.0-alt2.src.rpm: The use of such a license name is ambiguous: MPL <13>Jun 16 00:35:18 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Jun 16 00:35:18 rpmi: libexpat-2.5.0-alt1 p10+324220.100.1.1 1688465137 installed <13>Jun 16 00:35:18 rpmi: libp11-kit-0.24.1-alt1 p10+305061.100.3.1 1660573397 installed <13>Jun 16 00:35:18 rpmi: libtasn1-4.19.0-alt1 p10+309071.100.2.1 1668522760 installed <13>Jun 16 00:35:18 rpmi: rpm-macros-alternatives-0.5.2-alt1 p10+309129.100.2.1 1668066636 installed <13>Jun 16 00:35:18 rpmi: alternatives-0.5.2-alt1 p10+309129.100.2.1 1668066636 installed <13>Jun 16 00:35:18 rpmi: ca-certificates-2022.09.15-alt1 p10+308004.100.2.1 1665748370 installed <13>Jun 16 00:35:18 rpmi: ca-trust-0.1.6-alt1 p10+344774.100.1.1 1712685728 installed <13>Jun 16 00:35:18 rpmi: p11-kit-trust-0.24.1-alt1 p10+305061.100.3.1 1660573397 installed <13>Jun 16 00:35:18 rpmi: libcrypto1.1-1.1.1w-alt0.p10.1 p10+330586.100.4.1 1697560982 installed <13>Jun 16 00:35:18 rpmi: libssl1.1-1.1.1w-alt0.p10.1 p10+330586.100.4.1 1697560982 installed <13>Jun 16 00:35:18 rpmi: python3-3.9.18-alt1 p10+340781.400.5.1 1709555259 installed <13>Jun 16 00:35:18 rpmi: python3-base-3.9.18-alt1 p10+340781.400.5.1 1709555259 installed <13>Jun 16 00:35:18 rpmi: tests-for-installed-python3-pkgs-0.1.22-alt1 p10+325520.200.7.1 1691156214 installed <13>Jun 16 00:35:18 rpmi: rpm-build-python3-0.1.22-alt1 p10+325520.200.7.1 1691156214 installed WARNING: %python3_build_debug is deprecated and will be removed in future, please use %pyproject_build instead WARNING: %python3_install is deprecated and will be removed in future, please use %pyproject_install instead <13>Jun 16 00:35:20 rpmi: python3-module-pkg_resources-1:57.4.0-alt1 p10+281549.200.4.1 1628026198 installed <13>Jun 16 00:35:20 rpmi: python3-module-six-1.16.0-alt1.p10 p10+340092.560.10.1 1707922977 installed <13>Jun 16 00:35:20 rpmi: libpython-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python2-base-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-encodings-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-compiler-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-email-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-unittest-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-ctypes-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-multiprocessing-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:20 rpmi: python-modules-logging-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:21 rpmi: python-tools-2to3-2.7.18-alt10 p10+309289.100.3.1 1668015444 installed <13>Jun 16 00:35:21 rpmi: python3-module-mozfile-3.0.0-alt1 p10+342418.540.8.1 1710866951 installed <13>Jun 16 00:35:21 rpmi: python3-module-mozinfo-1.2.1-alt2 sisyphus+247903.200.1.1 1584353252 installed <13>Jun 16 00:35:21 rpmi: python3-module-mozlog-3.3-alt2 sisyphus+244612.100.2.1 1579617899 installed WARNING: %python3_build_debug is deprecated and will be removed in future, please use %pyproject_build instead WARNING: %python3_install is deprecated and will be removed in future, please use %pyproject_install instead Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-mozcrash-1.0-alt2.nosrc.rpm (w1.gzdio) <13>Jun 16 00:35:22 rpmi: libpython3-3.9.18-alt1 p10+340781.400.5.1 1709555259 installed <13>Jun 16 00:35:22 rpmi: libncurses-6.3.20220618-alt1 p10+319472.100.4.1 1685092691 installed <13>Jun 16 00:35:22 rpmi: libtinfo-devel-6.3.20220618-alt1 p10+319472.100.4.1 1685092691 installed <13>Jun 16 00:35:22 rpmi: libncurses-devel-6.3.20220618-alt1 p10+319472.100.4.1 1685092691 installed <13>Jun 16 00:35:23 rpmi: python3-dev-3.9.18-alt1 p10+340781.400.5.1 1709555259 installed <13>Jun 16 00:35:23 rpmi: python3-module-setuptools-1:57.4.0-alt1 p10+281549.200.4.1 1628026198 installed WARNING: %python3_build_debug is deprecated and will be removed in future, please use %pyproject_build instead WARNING: %python3_install is deprecated and will be removed in future, please use %pyproject_install instead Installing python3-module-mozcrash-1.0-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.20803 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf mozcrash-1.0 + echo 'Source #0 (mozcrash-1.0.tar.gz):' Source #0 (mozcrash-1.0.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/mozcrash-1.0.tar.gz + /bin/tar -xf - + cd mozcrash-1.0 + /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: No changes to ./setup.py RefactoringTool: Refactored ./mozcrash/mozcrash.py RefactoringTool: Refactored ./mozcrash/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./mozcrash/mozcrash.py RefactoringTool: ./mozcrash/__init__.py --- ./mozcrash/mozcrash.py (original) +++ ./mozcrash/mozcrash.py (refactored) @@ -10,7 +10,7 @@ import subprocess import sys import tempfile -import urllib2 +import urllib.request, urllib.error, urllib.parse import zipfile from collections import namedtuple @@ -105,10 +105,10 @@ stackwalk_output.append("minidump_stackwalk exited with return code %d" % info.stackwalk_retcode) signature = info.signature if info.signature else "unknown top frame" - print "PROCESS-CRASH | %s | application crashed [%s]" % (test_name, - signature) - print '\n'.join(stackwalk_output) - print '\n'.join(info.stackwalk_errors) + print("PROCESS-CRASH | %s | application crashed [%s]" % (test_name, + signature)) + print('\n'.join(stackwalk_output)) + print('\n'.join(info.stackwalk_errors)) return crash_count @@ -177,7 +177,7 @@ self.remove_symbols = True self.logger.info("Downloading symbols from: %s" % self.symbols_path) # Get the symbols and write them to a temporary zipfile - data = urllib2.urlopen(self.symbols_path) + data = urllib.request.urlopen(self.symbols_path) with tempfile.TemporaryFile() as symbols_file: symbols_file.write(data.read()) # extract symbols to a temporary directory (which we'll delete after @@ -371,12 +371,12 @@ if m and m.group(1): exception_location = m.group(1) if not quiet: - print "PROCESS-CRASH | %s | java-exception %s %s" % (test_name, + print("PROCESS-CRASH | %s | java-exception %s %s" % (test_name, exception_type, - exception_location) + exception_location)) else: - print "Automation Error: java exception in logcat at line " \ - "%d of %d: %s" % (i, len(logcat), line) + print("Automation Error: java exception in logcat at line " \ + "%d of %d: %s" % (i, len(logcat), line)) break return found_exception @@ -422,7 +422,7 @@ log.error("minidumpwriter not found in %s" % utility_path) return - if isinstance(file_name, unicode): + if isinstance(file_name, str): # Convert to a byte string before sending to the shell. file_name = file_name.encode(sys.getfilesystemencoding()) @@ -436,10 +436,10 @@ if not proc_handle: return - if not isinstance(file_name, unicode): + if not isinstance(file_name, str): # Convert to unicode explicitly so our path will be valid as input # to CreateFileW - file_name = unicode(file_name, sys.getfilesystemencoding()) + file_name = str(file_name, sys.getfilesystemencoding()) file_handle = kernel32.CreateFileW(file_name, GENERIC_READ | GENERIC_WRITE, --- ./mozcrash/__init__.py (original) +++ ./mozcrash/__init__.py (refactored) @@ -7,4 +7,4 @@ and left behind a minidump file using the Google Breakpad library. """ -from mozcrash import * +from .mozcrash import * + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.8640 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mozcrash-1.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/mozcrash copying mozcrash/mozcrash.py -> build/lib/mozcrash copying mozcrash/__init__.py -> build/lib/mozcrash running egg_info writing mozcrash.egg-info/PKG-INFO writing dependency_links to mozcrash.egg-info/dependency_links.txt writing requirements to mozcrash.egg-info/requires.txt writing top-level names to mozcrash.egg-info/top_level.txt reading manifest file 'mozcrash.egg-info/SOURCES.txt' writing manifest file 'mozcrash.egg-info/SOURCES.txt' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.8640 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-mozcrash-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-mozcrash-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd mozcrash-1.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-mozcrash-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-mozcrash-buildroot creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash copying build/lib/mozcrash/__init__.py -> /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash copying build/lib/mozcrash/mozcrash.py -> /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash byte-compiling /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py to mozcrash.cpython-39.pyc running install_egg_info running egg_info writing mozcrash.egg-info/PKG-INFO writing dependency_links to mozcrash.egg-info/dependency_links.txt writing requirements to mozcrash.egg-info/requires.txt writing top-level names to mozcrash.egg-info/top_level.txt reading manifest file 'mozcrash.egg-info/SOURCES.txt' writing manifest file 'mozcrash.egg-info/SOURCES.txt' Copying mozcrash.egg-info to /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash-1.0-py3.9.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-mozcrash-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-mozcrash-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-mozcrash-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-mozcrash-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-mozcrash-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-mozcrash-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python3 modules in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__pycache__/mozcrash.cpython-39.pyc compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/mozcrash/__pycache__/__init__.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/mozcrash/__pycache__/__init__.cpython-39.pyc' './usr/lib/python3/site-packages/mozcrash/__pycache__/mozcrash.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/mozcrash/__pycache__/mozcrash.cpython-39.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.61063 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mozcrash-1.0 + /usr/bin/python3 setup.py test running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. running egg_info writing mozcrash.egg-info/PKG-INFO writing dependency_links to mozcrash.egg-info/dependency_links.txt deleting mozcrash.egg-info/requires.txt writing top-level names to mozcrash.egg-info/top_level.txt reading manifest file 'mozcrash.egg-info/SOURCES.txt' writing manifest file 'mozcrash.egg-info/SOURCES.txt' running build_ext mozcrash (unittest.loader._FailedTest) ... ERROR ====================================================================== ERROR: mozcrash (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: mozcrash Traceback (most recent call last): File "/usr/lib64/python3.9/unittest/loader.py", line 470, in _find_test_path package = self._get_module_from_name(name) File "/usr/lib64/python3.9/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/usr/src/RPM/BUILD/mozcrash-1.0/mozcrash/__init__.py", line 10, in from .mozcrash import * File "/usr/src/RPM/BUILD/mozcrash-1.0/mozcrash/mozcrash.py", line 18, in import mozinfo File "/usr/lib/python3/site-packages/mozinfo/__init__.py", line 57, in from . import mozinfo File "/usr/lib/python3/site-packages/mozinfo/mozinfo.py", line 113, in param_dict['NAME'], param_dict['VERSION_ID'], param_dict['ID']) KeyError: 'NAME' ---------------------------------------------------------------------- Ran 1 test in 0.000s FAILED (errors=1) Test failed: error: Test failed: error: Bad exit status from /usr/src/tmp/rpm-tmp.61063 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.61063 (%check) Command exited with non-zero status 1 1.65user 0.69system 0:02.29elapsed 102%CPU (0avgtext+0avgdata 27356maxresident)k 0inputs+0outputs (0major+117503minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-mozcrash-1.0-alt2.src.rpm' failed. Command exited with non-zero status 1 3.85user 3.50system 0:15.53elapsed 47%CPU (0avgtext+0avgdata 128920maxresident)k 240inputs+0outputs (0major+335724minor)pagefaults 0swaps