<86>Apr 29 10:40:15 userdel[518353]: delete user 'rooter' <86>Apr 29 10:40:15 userdel[518353]: removed group 'rooter' owned by 'rooter' <86>Apr 29 10:40:15 userdel[518353]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 29 10:40:15 groupadd[518361]: group added to /etc/group: name=rooter, GID=678 <86>Apr 29 10:40:15 groupadd[518361]: group added to /etc/gshadow: name=rooter <86>Apr 29 10:40:15 groupadd[518361]: new group: name=rooter, GID=678 <86>Apr 29 10:40:15 useradd[518369]: new user: name=rooter, UID=678, GID=678, home=/root, shell=/bin/bash <86>Apr 29 10:40:15 userdel[518391]: delete user 'builder' <86>Apr 29 10:40:15 userdel[518391]: removed group 'builder' owned by 'builder' <86>Apr 29 10:40:15 userdel[518391]: removed shadow group 'builder' owned by 'builder' <86>Apr 29 10:40:15 groupadd[518407]: group added to /etc/group: name=builder, GID=679 <86>Apr 29 10:40:15 groupadd[518407]: group added to /etc/gshadow: name=builder <86>Apr 29 10:40:15 groupadd[518407]: new group: name=builder, GID=679 <86>Apr 29 10:40:15 useradd[518427]: new user: name=builder, UID=679, GID=679, home=/usr/src, shell=/bin/bash <13>Apr 29 10:40:17 rpmi: rpm-macros-python3-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed <13>Apr 29 10:40:17 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Apr 29 10:40:17 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Apr 29 10:40:17 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Apr 29 10:40:17 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Apr 29 10:40:17 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 29 10:40:17 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 29 10:40:17 rpmi: ca-certificates-2021.03.24-alt1 sisyphus+268304.300.1.1 1616591829 installed <13>Apr 29 10:40:17 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Apr 29 10:40:17 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Apr 29 10:40:18 rpmi: libcrypto1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed <13>Apr 29 10:40:18 rpmi: libssl1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed <13>Apr 29 10:40:18 rpmi: python3-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 10:40:18 rpmi: python3-base-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 10:40:19 rpmi: libpython3-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 10:40:19 rpmi: tests-for-installed-python3-pkgs-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed <13>Apr 29 10:40:19 rpmi: rpm-build-python3-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed <13>Apr 29 10:40:21 rpmi: libpython-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python2-base-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-encodings-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-compiler-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-email-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-unittest-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-ctypes-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-multiprocessing-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-modules-logging-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Apr 29 10:40:21 rpmi: python-tools-2to3-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-ipaddr-2.2.0-alt2.nosrc.rpm (w1.gzdio) <13>Apr 29 10:40:23 rpmi: python3-module-pkg_resources-1:56.0.0-alt1 sisyphus+269911.100.2.1 1618475070 installed <13>Apr 29 10:40:23 rpmi: libtinfo-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed <13>Apr 29 10:40:23 rpmi: libncurses-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed <13>Apr 29 10:40:23 rpmi: python3-dev-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed <13>Apr 29 10:40:23 rpmi: python3-module-setuptools-1:56.0.0-alt1 sisyphus+269911.100.2.1 1618475070 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.38505 + 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.36348 + 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.36348 + 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 + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + 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-39.pyc running install_egg_info Writing /usr/src/tmp/python3-module-ipaddr-buildroot/usr/lib/python3/site-packages/ipaddr-2.2.0-py3.9.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,gnuconfig) 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: (from :0) 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 /usr/bin/python2.7: can't open file '/usr/lib/rpm/python.compileall.py': [Errno 2] No such file or directory error: Bad exit status from /usr/src/tmp/rpm-tmp.36348 (%install) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.36348 (%install) Command exited with non-zero status 1 4.87user 0.22system 0:05.08elapsed 100%CPU (0avgtext+0avgdata 29148maxresident)k 0inputs+0outputs (0major+60536minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-ipaddr-2.2.0-alt2.src.rpm' failed. Command exited with non-zero status 1 12.56user 4.23system 0:16.45elapsed 102%CPU (0avgtext+0avgdata 107168maxresident)k 0inputs+0outputs (0major+455336minor)pagefaults 0swaps