<86>Dec 4 16:54:15 userdel[3118358]: delete user 'rooter' <86>Dec 4 16:54:15 userdel[3118358]: removed group 'rooter' owned by 'rooter' <86>Dec 4 16:54:15 userdel[3118358]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 4 16:54:15 groupadd[3118368]: group added to /etc/group: name=rooter, GID=654 <86>Dec 4 16:54:15 groupadd[3118368]: group added to /etc/gshadow: name=rooter <86>Dec 4 16:54:15 groupadd[3118368]: new group: name=rooter, GID=654 <86>Dec 4 16:54:15 useradd[3118375]: new user: name=rooter, UID=654, GID=654, home=/root, shell=/bin/bash <86>Dec 4 16:54:15 userdel[3118382]: delete user 'builder' <86>Dec 4 16:54:15 userdel[3118382]: removed group 'builder' owned by 'builder' <86>Dec 4 16:54:15 userdel[3118382]: removed shadow group 'builder' owned by 'builder' <86>Dec 4 16:54:15 groupadd[3118388]: group added to /etc/group: name=builder, GID=655 <86>Dec 4 16:54:15 groupadd[3118388]: group added to /etc/gshadow: name=builder <86>Dec 4 16:54:15 groupadd[3118388]: new group: name=builder, GID=655 <86>Dec 4 16:54:15 useradd[3118393]: new user: name=builder, UID=655, GID=655, home=/usr/src, shell=/bin/bash <13>Dec 4 16:54:18 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 4 16:54:18 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Dec 4 16:54:18 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 16:54:18 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Dec 4 16:54:18 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 16:54:18 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 16:54:18 rpmi: ca-certificates-2020.10.22-alt1 sisyphus+260224.300.2.1 1603549301 installed <13>Dec 4 16:54:18 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Dec 4 16:54:18 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 16:54:18 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 16:54:18 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 16:54:18 rpmi: python3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:54:19 rpmi: python3-base-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:54:19 rpmi: libpython3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:54:19 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 4 16:54:19 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 4 16:54:23 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Dec 4 16:54:23 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Dec 4 16:54:23 rpmi: libkeyutils-1.6.1-alt1 sisyphus+256015.100.1.1 1596820124 installed <13>Dec 4 16:54:23 rpmi: libcom_err-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088229 installed <86>Dec 4 16:54:23 groupadd[3124134]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 4 16:54:23 groupadd[3124134]: group added to /etc/gshadow: name=_keytab <86>Dec 4 16:54:23 groupadd[3124134]: new group: name=_keytab, GID=499 <13>Dec 4 16:54:23 rpmi: libkrb5-1.18.3-alt1 sisyphus+262109.100.1.1 1605777180 installed <13>Dec 4 16:54:23 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Dec 4 16:54:23 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 4 16:54:23 rpmi: python-modules-encodings-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-compiler-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-email-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-unittest-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-nis-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-ctypes-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-multiprocessing-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-modules-logging-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:54:23 rpmi: python-tools-2to3-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-ipaddr-2.2.0-alt2.nosrc.rpm <13>Dec 4 16:54:26 rpmi: python3-module-pkg_resources-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed <13>Dec 4 16:54:26 rpmi: libtinfo-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 16:54:26 rpmi: libncurses-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 16:54:26 rpmi: python3-dev-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:54:26 rpmi: python3-module-setuptools-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 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.9593 + 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.34480 + 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.34480 + 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.89104 + 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.136s OK + exit 0 Processing files: python3-module-ipaddr-2.2.0-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.79343 + 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.Q8de08 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.2eo409 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 11.82user 0.90system 0:13.74elapsed 92%CPU (0avgtext+0avgdata 29080maxresident)k 0inputs+0outputs (0major+132726minor)pagefaults 0swaps 23.19user 8.16system 0:31.07elapsed 100%CPU (0avgtext+0avgdata 109104maxresident)k 0inputs+0outputs (0major+580701minor)pagefaults 0swaps --- python3-module-ipaddr-2.2.0-alt2.noarch.rpm.repo 2020-02-13 07:13:39.116273318 +0000 +++ python3-module-ipaddr-2.2.0-alt2.noarch.rpm.hasher 2020-12-04 16:54:42.367553752 +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