<86>May 18 10:16:27 userdel[633254]: delete user 'rooter' <86>May 18 10:16:27 userdel[633254]: removed group 'rooter' owned by 'rooter' <86>May 18 10:16:27 userdel[633254]: removed shadow group 'rooter' owned by 'rooter' <86>May 18 10:16:27 groupadd[633299]: group added to /etc/group: name=rooter, GID=651 <86>May 18 10:16:27 groupadd[633299]: group added to /etc/gshadow: name=rooter <86>May 18 10:16:27 groupadd[633299]: new group: name=rooter, GID=651 <86>May 18 10:16:27 useradd[633312]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>May 18 10:16:27 userdel[633331]: delete user 'builder' <86>May 18 10:16:27 groupadd[633342]: group added to /etc/group: name=builder, GID=652 <86>May 18 10:16:27 groupadd[633342]: group added to /etc/gshadow: name=builder <86>May 18 10:16:27 groupadd[633342]: new group: name=builder, GID=652 <86>May 18 10:16:27 useradd[633361]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>May 18 10:16:30 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>May 18 10:16:30 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>May 18 10:16:30 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>May 18 10:16:30 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>May 18 10:16:30 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>May 18 10:16:30 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>May 18 10:16:30 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>May 18 10:16:30 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>May 18 10:16:30 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>May 18 10:16:31 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>May 18 10:16:31 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>May 18 10:16:31 rpmi: python3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>May 18 10:16:32 rpmi: python3-base-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>May 18 10:16:32 rpmi: libpython3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>May 18 10:16:32 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>May 18 10:16:32 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>May 18 10:16:36 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>May 18 10:16:36 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>May 18 10:16:36 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>May 18 10:16:36 groupadd[655126]: group added to /etc/group: name=_keytab, GID=499 <86>May 18 10:16:36 groupadd[655126]: group added to /etc/gshadow: name=_keytab <86>May 18 10:16:36 groupadd[655126]: new group: name=_keytab, GID=499 <13>May 18 10:16:36 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137330 installed <13>May 18 10:16:36 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>May 18 10:16:36 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>May 18 10:16:36 rpmi: python-modules-encodings-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:36 rpmi: python-modules-compiler-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 rpmi: python-modules-email-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 rpmi: python-modules-unittest-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 rpmi: python-modules-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 rpmi: python-modules-nis-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 rpmi: python-modules-ctypes-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 rpmi: python-modules-multiprocessing-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 rpmi: python-modules-logging-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>May 18 10:16:37 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>May 18 10:16:40 rpmi: python3-module-pkg_resources-1:46.1.3-alt1 sisyphus+250566.200.3.1 1587973342 installed <13>May 18 10:16:40 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>May 18 10:16:40 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>May 18 10:16:40 rpmi: python3-dev-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>May 18 10:16:40 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.60206 + 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.54560 + 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.54560 + 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.9884 + 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.141s OK + exit 0 Processing files: python3-module-ipaddr-2.2.0-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.99487 + 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.A3j0Fj 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.1bPJxl 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 10.24user 0.56system 0:15.81elapsed 68%CPU (0avgtext+0avgdata 29112maxresident)k 0inputs+0outputs (0major+132760minor)pagefaults 0swaps 19.48user 4.76system 0:34.14elapsed 71%CPU (0avgtext+0avgdata 108596maxresident)k 0inputs+0outputs (0major+580724minor)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-05-18 10:16:58.563514554 +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