<86>Jul 25 07:45:03 userdel[2220812]: delete user 'rooter' <86>Jul 25 07:45:03 groupadd[2220817]: group added to /etc/group: name=rooter, GID=567 <86>Jul 25 07:45:03 groupadd[2220817]: new group: name=rooter, GID=567 <86>Jul 25 07:45:03 useradd[2220821]: new user: name=rooter, UID=567, GID=567, home=/root, shell=/bin/bash <86>Jul 25 07:45:03 userdel[2220828]: delete user 'builder' <86>Jul 25 07:45:03 userdel[2220828]: removed group 'builder' owned by 'builder' <86>Jul 25 07:45:03 userdel[2220828]: removed shadow group 'builder' owned by 'builder' <86>Jul 25 07:45:03 groupadd[2220833]: group added to /etc/group: name=builder, GID=568 <86>Jul 25 07:45:03 groupadd[2220833]: group added to /etc/gshadow: name=builder <86>Jul 25 07:45:03 groupadd[2220833]: new group: name=builder, GID=568 <86>Jul 25 07:45:03 useradd[2220837]: new user: name=builder, UID=568, GID=568, home=/usr/src, shell=/bin/bash <13>Jul 25 07:45:07 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Jul 25 07:45:07 rpmi: libexpat-2.2.9-alt1 sisyphus+252464.200.2.1 1590958865 installed <13>Jul 25 07:45:07 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jul 25 07:45:07 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Jul 25 07:45:07 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jul 25 07:45:07 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jul 25 07:45:07 rpmi: ca-certificates-2020.06.29-alt1 sisyphus+254237.300.1.1 1593450881 installed <13>Jul 25 07:45:07 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Jul 25 07:45:07 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jul 25 07:45:07 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Jul 25 07:45:08 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Jul 25 07:45:08 rpmi: python3-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 07:45:08 rpmi: python3-base-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 07:45:08 rpmi: libpython3-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 07:45:08 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Jul 25 07:45:08 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Jul 25 07:45:14 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Jul 25 07:45:14 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Jul 25 07:45:14 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Jul 25 07:45:14 rpmi: libffi6-1:3.2.1-alt4 sisyphus+251953.300.2.1 1589891360 installed <13>Jul 25 07:45:14 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Jul 25 07:45:14 groupadd[2228422]: group added to /etc/group: name=_keytab, GID=499 <86>Jul 25 07:45:14 groupadd[2228422]: group added to /etc/gshadow: name=_keytab <86>Jul 25 07:45:14 groupadd[2228422]: new group: name=_keytab, GID=499 <13>Jul 25 07:45:14 rpmi: libkrb5-1.18.2-alt2 sisyphus+254565.100.4.1 1594375666 installed <13>Jul 25 07:45:14 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Jul 25 07:45:14 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Jul 25 07:45:14 rpmi: python-modules-encodings-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-compiler-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-email-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-unittest-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-nis-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-ctypes-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-multiprocessing-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:14 rpmi: python-modules-logging-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 07:45:15 rpmi: python-tools-2to3-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-ipaddr-2.2.0-alt2.nosrc.rpm <13>Jul 25 07:45:18 rpmi: python3-module-pkg_resources-1:46.1.3-alt1 sisyphus+250566.200.3.1 1587973342 installed <13>Jul 25 07:45:18 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Jul 25 07:45:18 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Jul 25 07:45:18 rpmi: python3-dev-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 07:45:18 rpmi: python3-module-setuptools-1:46.1.3-alt1 sisyphus+250566.200.3.1 1587973342 installed Installing python3-module-ipaddr-2.2.0-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.6390 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf ipaddr-2.2.0 + echo 'Source #0 (ipaddr-2.2.0.tar):' Source #0 (ipaddr-2.2.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/ipaddr-2.2.0.tar + cd ipaddr-2.2.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 ./ipaddr_test.py RefactoringTool: Refactored ./ipaddr.py --- ./ipaddr_test.py (original) +++ ./ipaddr_test.py (refactored) @@ -1035,7 +1035,7 @@ # i70 self.assertEqual(hash(ipaddr.IPAddress('1.2.3.4')), hash(ipaddr.IPAddress( - long(ipaddr.IPAddress('1.2.3.4')._ip)))) + int(ipaddr.IPAddress('1.2.3.4')._ip)))) ip1 = ipaddr.IPAddress('10.1.1.0') ip2 = ipaddr.IPAddress('1::') dummy = {} @@ -1082,7 +1082,7 @@ '7:6:5:4:3:2:1::': '7:6:5:4:3:2:1:0/128', '0:6:5:4:3:2:1::': '0:6:5:4:3:2:1:0/128', } - for uncompressed, compressed in test_addresses.items(): + for uncompressed, compressed in list(test_addresses.items()): self.assertEqual(compressed, str(ipaddr.IPv6Network(uncompressed))) def testExplodeShortHandIpStr(self): --- ./ipaddr.py (original) +++ ./ipaddr.py (refactored) @@ -521,7 +521,7 @@ return '%s' % self._string_from_ip_int(self._ip) def __hash__(self): - return hash(hex(long(self._ip))) + return hash(hex(int(self._ip))) def _get_address_key(self): return (self._version, self) @@ -896,7 +896,7 @@ Raises: NetmaskValueError: If the input is not an integer, or out of range. """ - if not isinstance(prefixlen, (int, long)): + if not isinstance(prefixlen, int): raise NetmaskValueError('%r is not an integer' % prefixlen) prefixlen = int(prefixlen) if not (0 <= prefixlen <= self._max_prefixlen): @@ -1158,7 +1158,7 @@ """ octets = [] - for _ in xrange(4): + for _ in range(4): octets.insert(0, str(ip_int & 0xFF)) ip_int >>= 8 return '.'.join(octets) @@ -1271,7 +1271,7 @@ return # Efficient constructor from integer. - if isinstance(address, (int, long)): + if isinstance(address, int): self._ip = address if address < 0 or address > self._ALL_ONES: raise AddressValueError(address) @@ -1353,7 +1353,7 @@ _BaseV4.__init__(self, address) # Constructing from a single IP address. - if isinstance(address, (int, long, Bytes, IPv4Address)): + if isinstance(address, (int, Bytes, IPv4Address)): self.ip = IPv4Address(address) self._ip = self.ip._ip self._prefixlen = self._max_prefixlen @@ -1457,7 +1457,7 @@ # This indicates that a run of zeroes has been skipped. try: skip_index, = ( - [i for i in xrange(1, len(parts) - 1) if not parts[i]] or + [i for i in range(1, len(parts) - 1) if not parts[i]] or [None]) except ValueError: # Can't have more than one '::' @@ -1491,12 +1491,12 @@ try: # Now, parse the hextets into a 128-bit integer. - ip_int = long(0) - for i in xrange(parts_hi): + ip_int = int(0) + for i in range(parts_hi): ip_int <<= 16 ip_int |= self._parse_hextet(parts[i]) ip_int <<= 16 * parts_skipped - for i in xrange(-parts_lo, 0): + for i in range(-parts_lo, 0): ip_int <<= 16 ip_int |= self._parse_hextet(parts[i]) return ip_int @@ -1617,7 +1617,7 @@ ip_int = self._ip_int_from_string(ip_str) parts = [] - for i in xrange(self._HEXTET_COUNT): + for i in range(self._HEXTET_COUNT): parts.append('%04x' % (ip_int & 0xFFFF)) ip_int >>= 16 parts.reverse() @@ -1802,7 +1802,7 @@ return # Efficient constructor from integer. - if isinstance(address, (int, long)): + if isinstance(address, int): self._ip = address if address < 0 or address > self._ALL_ONES: raise AddressValueError(address) @@ -1880,7 +1880,7 @@ _BaseV6.__init__(self, address) RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./ipaddr_test.py RefactoringTool: ./ipaddr.py # Constructing from a single IP address. - if isinstance(address, (int, long, Bytes, IPv6Address)): + if isinstance(address, (int, Bytes, IPv6Address)): self.ip = IPv6Address(address) self._ip = self.ip._ip self._prefixlen = self._max_prefixlen ++ find ./ -name '*.py' + sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' ./setup.py ./ipaddr_test.py ./ipaddr.py + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.78039 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ipaddr-2.2.0 + 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 running build running build_py creating build creating build/lib copying ipaddr.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.19640 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-ipaddr-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-ipaddr-buildroot + cd ipaddr-2.2.0 + 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-ipaddr-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-ipaddr-buildroot creating /usr/src/tmp/python3-module-ipaddr-buildroot/usr creating /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib creating /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages copying build/lib/ipaddr.py -> /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr.py to ipaddr.cpython-38.pyc running install_egg_info Writing /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr-2.2.0-py3.8.egg-info + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-ipaddr-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-ipaddr-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-ipaddr-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-ipaddr-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-ipaddr-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-ipaddr-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-ipaddr-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-ipaddr-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-ipaddr-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/__pycache__/ipaddr.cpython-38.pyc compile /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-ipaddr-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-ipaddr-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr.py Hardlinking identical .pyc and .opt-?.pyc files Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.77011 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ipaddr-2.2.0 + ./ipaddr_test.py ...................................................................... ---------------------------------------------------------------------- Ran 70 tests in 0.096s OK + exit 0 Processing files: python3-module-ipaddr-2.2.0-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.69186 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ipaddr-2.2.0 + DOCDIR=/usr/src/tmp/python3-module-ipaddr-buildroot/usr/share/doc/python3-module-ipaddr-2.2.0 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-ipaddr-buildroot/usr/share/doc/python3-module-ipaddr-2.2.0 + /bin/mkdir -p /usr/src/tmp/python3-module-ipaddr-buildroot/usr/share/doc/python3-module-ipaddr-2.2.0 + cp -prL README COPYING wiki/ExampleUsage.wiki wiki/ReleaseNotes.wiki wiki/Releasing.wiki wiki/UpgradingTo2x.wiki /usr/src/tmp/python3-module-ipaddr-buildroot/usr/share/doc/python3-module-ipaddr-2.2.0 + chmod -R go-w /usr/src/tmp/python3-module-ipaddr-buildroot/usr/share/doc/python3-module-ipaddr-2.2.0 + chmod -R a+rX /usr/src/tmp/python3-module-ipaddr-buildroot/usr/share/doc/python3-module-ipaddr-2.2.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Dkpf1l 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.4RAO6k 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-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr.py: skipping sys shebang.req.files: executable script /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr.py is not executable Provides: python3(ipaddr) Requires: /usr/lib/python3/site-packages, python3(struct) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-ipaddr-2.2.0-alt2.noarch.rpm 6.91user 0.39system 0:11.75elapsed 62%CPU (0avgtext+0avgdata 29116maxresident)k 0inputs+0outputs (0major+131605minor)pagefaults 0swaps 13.98user 3.06system 0:30.45elapsed 55%CPU (0avgtext+0avgdata 110780maxresident)k 0inputs+0outputs (0major+573536minor)pagefaults 0swaps --- python3-module-ipaddr-2.2.0-alt2.noarch.rpm.repo 2020-02-13 07:13:39.000000000 +0000 +++ python3-module-ipaddr-2.2.0-alt2.noarch.rpm.hasher 2020-07-25 07:45:31.708539970 +0000 @@ -1,6 +1,6 @@ /usr/lib/python3/site-packages/__pycache__ 40755 -/usr/lib/python3/site-packages/__pycache__/ipaddr.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/ipaddr.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/ipaddr.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/ipaddr-2.2.0-py3.7.egg-info 100644 +/usr/lib/python3/site-packages/__pycache__/ipaddr.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/ipaddr.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/ipaddr.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/ipaddr-2.2.0-py3.8.egg-info 100644 /usr/lib/python3/site-packages/ipaddr.py 100644