<86>Mar 14 00:35:43 userdel[1946313]: delete user 'rooter' <86>Mar 14 00:35:43 userdel[1946313]: removed group 'rooter' owned by 'rooter' <86>Mar 14 00:35:43 userdel[1946313]: removed shadow group 'rooter' owned by 'rooter' <86>Mar 14 00:35:43 groupadd[1946343]: group added to /etc/group: name=rooter, GID=969 <86>Mar 14 00:35:43 groupadd[1946343]: group added to /etc/gshadow: name=rooter <86>Mar 14 00:35:43 groupadd[1946343]: new group: name=rooter, GID=969 <86>Mar 14 00:35:43 useradd[1946365]: new user: name=rooter, UID=969, GID=969, home=/root, shell=/bin/bash <86>Mar 14 00:35:43 userdel[1946399]: delete user 'builder' <86>Mar 14 00:35:43 userdel[1946399]: removed group 'builder' owned by 'builder' <86>Mar 14 00:35:43 userdel[1946399]: removed shadow group 'builder' owned by 'builder' <86>Mar 14 00:35:43 groupadd[1946427]: group added to /etc/group: name=builder, GID=970 <86>Mar 14 00:35:43 groupadd[1946427]: group added to /etc/gshadow: name=builder <86>Mar 14 00:35:43 groupadd[1946427]: new group: name=builder, GID=970 <86>Mar 14 00:35:43 useradd[1946445]: new user: name=builder, UID=970, GID=970, home=/usr/src, shell=/bin/bash <13>Mar 14 00:35:44 rpmi: mpdecimal-2.5.1-alt1 sisyphus+291245.40.54.1 1643293433 installed <13>Mar 14 00:35:44 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Mar 14 00:35:44 rpmi: libexpat-2.4.7-alt1 sisyphus+296417.100.1.1 1646812525 installed <13>Mar 14 00:35:44 rpmi: libp11-kit-0.24.1-alt1 sisyphus+293720.100.1.1 1642535264 installed <13>Mar 14 00:35:44 rpmi: libtasn1-4.18.0-alt1 sisyphus+294217.100.3.1 1643755522 installed <13>Mar 14 00:35:44 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Mar 14 00:35:44 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Mar 14 00:35:44 rpmi: ca-certificates-2021.10.06-alt1 sisyphus+286526.200.1.1 1633528578 installed <13>Mar 14 00:35:44 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Mar 14 00:35:44 rpmi: p11-kit-trust-0.24.1-alt1 sisyphus+293720.100.1.1 1642535264 installed <13>Mar 14 00:35:44 rpmi: libcrypto1.1-1.1.1m-alt1 sisyphus+295032.100.1.1 1644334703 installed <13>Mar 14 00:35:44 rpmi: libssl1.1-1.1.1m-alt1 sisyphus+295032.100.1.1 1644334703 installed <13>Mar 14 00:35:44 rpmi: python3-3.10.2-alt1.1 sisyphus+294733.100.1.1 1643981428 installed <13>Mar 14 00:35:45 rpmi: python3-base-3.10.2-alt1.1 sisyphus+294733.100.1.1 1643981428 installed <13>Mar 14 00:35:45 rpmi: tests-for-installed-python3-pkgs-0.1.18-alt1 sisyphus+290420.100.1.1 1637593698 installed <13>Mar 14 00:35:45 rpmi: rpm-build-python3-0.1.18-alt1 sisyphus+290420.100.1.1 1637593698 installed <13>Mar 14 00:35:46 rpmi: libpython-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:46 rpmi: python2-base-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:46 rpmi: python-modules-encodings-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:46 rpmi: python-modules-compiler-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:46 rpmi: python-modules-email-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:46 rpmi: python-modules-unittest-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:47 rpmi: python-modules-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:47 rpmi: python-modules-ctypes-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:47 rpmi: python-modules-multiprocessing-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:47 rpmi: python-modules-logging-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed <13>Mar 14 00:35:47 rpmi: python-tools-2to3-2.7.18-alt9 sisyphus+296565.100.1.1 1647092059 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-ybrowserauth-1.2-alt2.nosrc.rpm (w1.gzdio) <13>Mar 14 00:35:48 rpmi: python3-module-pkg_resources-1:60.9.3-alt1 sisyphus+295817.100.1.1 1645526938 installed <13>Mar 14 00:35:48 rpmi: libpython3-3.10.2-alt1.1 sisyphus+294733.100.1.1 1643981428 installed <13>Mar 14 00:35:48 rpmi: libncurses-6.3.20211106-alt2 sisyphus+294456.100.3.1 1643966445 installed <13>Mar 14 00:35:48 rpmi: libtinfo-devel-6.3.20211106-alt2 sisyphus+294456.100.3.1 1643966445 installed <13>Mar 14 00:35:48 rpmi: libncurses-devel-6.3.20211106-alt2 sisyphus+294456.100.3.1 1643966445 installed <13>Mar 14 00:35:48 rpmi: python3-dev-3.10.2-alt1.1 sisyphus+294733.100.1.1 1643981428 installed <13>Mar 14 00:35:48 rpmi: python3-module-setuptools-1:60.9.3-alt1 sisyphus+295817.100.1.1 1645526938 installed Installing python3-module-ybrowserauth-1.2-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.27086 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-ybrowserauth-1.2 + echo 'Source #0 (python3-module-ybrowserauth-1.2.tar):' Source #0 (python3-module-ybrowserauth-1.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-ybrowserauth-1.2.tar + cd python3-module-ybrowserauth-1.2 + /bin/chmod -c -Rf u+rwX,go-w . + sed -i 's|import md5|from hashlib import md5|' ybrowserauth.py + 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 ./ybrowserauth.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./bbatestPHOTOS.py RefactoringTool: Refactored ./bbatestMAIL.py RefactoringTool: Files that were modified: RefactoringTool: ./ybrowserauth.py RefactoringTool: ./setup.py RefactoringTool: ./bbatestPHOTOS.py RefactoringTool: ./bbatestMAIL.py --- ./ybrowserauth.py (original) +++ ./ybrowserauth.py (refactored) @@ -10,9 +10,9 @@ __revision__ = '$Revision: 000 $' import re -import urlparse -import urllib2 -from urllib import urlencode +import urllib.parse +import urllib.request, urllib.error, urllib.parse +from urllib.parse import urlencode from hashlib import md5 from time import time import simplejson @@ -147,7 +147,7 @@ Return: - a string that is a URL with auth data appended """ - parts = urlparse.urlparse(aurl) + parts = urllib.parse.urlparse(aurl) tstamp = str(int(time())) relative_uri = "" if parts[2] != "": @@ -206,10 +206,10 @@ url = self.getAccessURL() try: - xml = urllib2.urlopen(url).read() - except urllib2.HTTPError, e: + xml = urllib.request.urlopen(url).read() + except urllib.error.HTTPError as e: raise WShttpError("HTTP error: %d" % e.code) - except urllib2.URLError, e: + except urllib.error.URLError as e: raise WSurlError("Network error: %s" % e.reason.args[1]) except: raise WSunknownError("Unknown error on credentials web service call. Url = " + url) @@ -309,14 +309,14 @@ """ url = self.createAuthWSurl(url) - request = urllib2.Request(url) + request = urllib.request.Request(url) request.add_header('Cookie', self.cookie) try: - xml = urllib2.urlopen(request).read() - except urllib2.HTTPError, e: + xml = urllib.request.urlopen(request).read() + except urllib.error.HTTPError as e: raise WShttpError("HTTP error: %d" % e.code) - except urllib2.URLError, e: + except urllib.error.URLError as e: raise WSurlError("Network error: %s" % e.reason.args[1]) except: raise WSunknownError("Unknown error on auth web service call. Url = " + url) @@ -341,15 +341,15 @@ data = simplejson.dumps(thecall) - request = urllib2.Request(YBrowserAuth.JSON_RPC_ENDPOINT + '?appid=' + self.appid + '&WSSID=' + self.WSSID, data) + request = urllib.request.Request(YBrowserAuth.JSON_RPC_ENDPOINT + '?appid=' + self.appid + '&WSSID=' + self.WSSID, data) request.add_header('Cookie', self.cookie) request.add_header('Content-Type', 'application/json') try: - json = urllib2.urlopen(request).read() - except urllib2.HTTPError, e: + json = urllib.request.urlopen(request).read() + except urllib.error.HTTPError as e: raise JSONrpcErrorCode("HTTP error: %d" % e.code, json='[nothing returned]') - except urllib2.URLError, e: + except urllib.error.URLError as e: raise WSurlError("Network error: %s" % e.reason.args[1]) except: raise WSunknownError("Unknown error on auth web service call. Url = " + YBrowserAuth.JSON_RPC_ENDPOINT) --- ./bbatestPHOTOS.py (original) +++ ./bbatestPHOTOS.py (refactored) @@ -20,7 +20,7 @@ from mod_python import apache from mod_python import util -import urllib2 +import urllib.request, urllib.error, urllib.parse import ybrowserauth from xml.sax import saxutils --- ./bbatestMAIL.py (original) +++ ./bbatestMAIL.py (refactored) @@ -20,7 +20,7 @@ from mod_python import apache from mod_python import util -import urllib2 +import urllib.request, urllib.error, urllib.parse import ybrowserauth from xml.sax import saxutils + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.27086 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-ybrowserauth-1.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib copying ybrowserauth.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.28277 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-ybrowserauth-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-ybrowserauth-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-ybrowserauth-1.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-ybrowserauth-buildroot --force running install /usr/lib64/python3/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /usr/src/tmp/python3-module-ybrowserauth-buildroot creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages copying build/lib/ybrowserauth.py -> /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py to ybrowserauth.cpython-310.pyc running install_egg_info running egg_info creating ybrowserauth.egg-info writing ybrowserauth.egg-info/PKG-INFO writing dependency_links to ybrowserauth.egg-info/dependency_links.txt writing top-level names to ybrowserauth.egg-info/top_level.txt writing manifest file 'ybrowserauth.egg-info/SOURCES.txt' reading manifest file 'ybrowserauth.egg-info/SOURCES.txt' writing manifest file 'ybrowserauth.egg-info/SOURCES.txt' Copying ybrowserauth.egg-info to /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-ybrowserauth-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-ybrowserauth-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-ybrowserauth-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-ybrowserauth-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-ybrowserauth-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-ybrowserauth-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-ybrowserauth-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.pyc compile /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-ybrowserauth-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-ybrowserauth-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.pyc' Processing files: python3-module-ybrowserauth-1.2-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.48139 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-ybrowserauth-1.2 + DOCDIR=/usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + /bin/mkdir -p /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + cp -prL changelog.txt readme.txt /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + chmod -R go-w /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + chmod -R a+rX /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.QmMT72 find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.xGfF3t find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py: skipping time Provides: python3(ybrowserauth) Requires: /usr/lib/python3/site-packages, python3(hashlib) < 0, python3(re) < 0, python3(simplejson) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-ybrowserauth-1.2-alt2.noarch.rpm (w2.lzdio) 2.40user 0.59system 0:04.77elapsed 62%CPU (0avgtext+0avgdata 30248maxresident)k 0inputs+0outputs (0major+170946minor)pagefaults 0swaps 7.11user 5.04system 0:13.15elapsed 92%CPU (0avgtext+0avgdata 105552maxresident)k 0inputs+0outputs (46580major+587279minor)pagefaults 0swaps --- python3-module-ybrowserauth-1.2-alt2.noarch.rpm.repo 2019-12-30 10:04:42.000000000 +0000 +++ python3-module-ybrowserauth-1.2-alt2.noarch.rpm.hasher 2022-03-14 00:35:54.728287007 +0000 @@ -1,6 +1,10 @@ /usr/lib/python3/site-packages/__pycache__ 40755 root:root -/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.7.egg-info 100644 root:root +/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.pyc 100644 root:root +/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info 40755 root:root +/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/PKG-INFO 100644 root:root +/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/SOURCES.txt 100644 root:root +/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/dependency_links.txt 100644 root:root +/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/top_level.txt 100644 root:root /usr/lib/python3/site-packages/ybrowserauth.py 100644 root:root @@ -20,6 +24,10 @@ File: /usr/lib/python3/site-packages/__pycache__ 40755 root:root -File: /usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.opt-1.pyc 100644 root:root 1f5880a9c91e5cf66ac37ea60d3e5090 -File: /usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.opt-2.pyc 100644 root:root cd25d8c6fe63671f0e49150b3769db69 -File: /usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.pyc 100644 root:root 1f5880a9c91e5cf66ac37ea60d3e5090 -File: /usr/lib/python3/site-packages/ybrowserauth-1.2-py3.7.egg-info 100644 root:root 2997867460128e21ddbd84ef5233731e +File: /usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.opt-1.pyc 100644 root:root f969649c35aa85e1841a81c488156d7c +File: /usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.opt-2.pyc 100644 root:root 9ac20edc4ddbc776fa61ee7cb1b96f24 +File: /usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-310.pyc 100644 root:root f969649c35aa85e1841a81c488156d7c +File: /usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info 40755 root:root +File: /usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/PKG-INFO 100644 root:root c0e7329188f1775d6d9ebc0b782c3e43 +File: /usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/SOURCES.txt 100644 root:root 8b861d7f2fd6751bab77b26e31d66687 +File: /usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/dependency_links.txt 100644 root:root 68b329da9893e34099c7d8ad5cb9c940 +File: /usr/lib/python3/site-packages/ybrowserauth-1.2-py3.10.egg-info/top_level.txt 100644 root:root dc9ea5623760e7b3fb51b7c01410d5ee File: /usr/lib/python3/site-packages/ybrowserauth.py 100644 root:root 5a0969b6d68e070990c9a052c16867c0 @@ -28,2 +36,2 @@ File: /usr/share/doc/python3-module-ybrowserauth-1.2/readme.txt 100755 root:root a00e962ca43fff3b670228ba28a891a0 -RPMIdentity: 29088f42eb33f8ec62e356bdb54e021850d56d4609ce992aada0dfb544667bf70595d4f557186e126f36dc228c73f308e87d242fad908534087f18fcf59c0d35 +RPMIdentity: eeab4d8619c8060be105bb24279ea33a823bd55082982430d731a1ab29adc24880c792001b6ab12a8b8b705f9962e205673a5efdd846f59010d7c7dfc616793e