<86>Dec 4 17:21:17 userdel[3505963]: delete user 'rooter' <86>Dec 4 17:21:17 userdel[3505963]: removed group 'rooter' owned by 'rooter' <86>Dec 4 17:21:17 userdel[3505963]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 4 17:21:17 groupadd[3505991]: group added to /etc/group: name=rooter, GID=690 <86>Dec 4 17:21:17 groupadd[3505991]: group added to /etc/gshadow: name=rooter <86>Dec 4 17:21:17 groupadd[3505991]: new group: name=rooter, GID=690 <86>Dec 4 17:21:17 useradd[3506033]: new user: name=rooter, UID=690, GID=690, home=/root, shell=/bin/bash <86>Dec 4 17:21:17 userdel[3506089]: delete user 'builder' <86>Dec 4 17:21:17 userdel[3506089]: removed group 'builder' owned by 'builder' <86>Dec 4 17:21:17 userdel[3506089]: removed shadow group 'builder' owned by 'builder' <86>Dec 4 17:21:17 groupadd[3506188]: group added to /etc/group: name=builder, GID=691 <86>Dec 4 17:21:17 groupadd[3506188]: group added to /etc/gshadow: name=builder <86>Dec 4 17:21:17 groupadd[3506188]: new group: name=builder, GID=691 <86>Dec 4 17:21:17 useradd[3506283]: new user: name=builder, UID=691, GID=691, home=/usr/src, shell=/bin/bash <13>Dec 4 17:21:19 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 4 17:21:19 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Dec 4 17:21:19 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 17:21:19 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Dec 4 17:21:19 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 17:21:19 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 17:21:19 rpmi: ca-certificates-2020.10.22-alt1 sisyphus+260224.300.2.1 1603549301 installed <13>Dec 4 17:21:19 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Dec 4 17:21:19 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 17:21:19 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 17:21:19 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 17:21:19 rpmi: python3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 17:21:20 rpmi: python3-base-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 17:21:20 rpmi: libpython3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 17:21:20 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 4 17:21:20 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 4 17:21:23 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Dec 4 17:21:23 rpmi: libtinfo-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 17:21:23 rpmi: libncurses-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 17:21:23 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Dec 4 17:21:23 rpmi: libkeyutils-1.6.1-alt1 sisyphus+256015.100.1.1 1596820124 installed <13>Dec 4 17:21:23 rpmi: libcom_err-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088229 installed <86>Dec 4 17:21:23 groupadd[3526217]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 4 17:21:23 groupadd[3526217]: group added to /etc/gshadow: name=_keytab <86>Dec 4 17:21:23 groupadd[3526217]: new group: name=_keytab, GID=499 <13>Dec 4 17:21:23 rpmi: libkrb5-1.18.3-alt1 sisyphus+262109.100.1.1 1605777180 installed <13>Dec 4 17:21:23 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Dec 4 17:21:23 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 4 17:21:23 rpmi: python-modules-encodings-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:23 rpmi: python-modules-compiler-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:23 rpmi: python-modules-email-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:23 rpmi: python-modules-unittest-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:24 rpmi: python-modules-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:24 rpmi: python-modules-nis-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:24 rpmi: python-modules-ctypes-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:24 rpmi: python-modules-multiprocessing-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:24 rpmi: python-modules-logging-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:24 rpmi: python-tools-2to3-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 17:21:24 rpmi: python3-dev-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/libpagemap-0.0.1-alt2.nosrc.rpm Installing libpagemap-0.0.1-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.75890 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf libpagemap-0.0.1 + echo 'Source #0 (v0.0.1.tar.gz):' Source #0 (v0.0.1.tar.gz): + /bin/tar -xf - + /bin/gzip -dc /usr/src/RPM/SOURCES/v0.0.1.tar.gz + cd libpagemap-0.0.1 + /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: Refactored ./libpagemap-0.0.1/pagemapdata.py RefactoringTool: Files that were modified: RefactoringTool: ./libpagemap-0.0.1/pagemapdata.py --- ./libpagemap-0.0.1/pagemapdata.py (original) +++ ./libpagemap-0.0.1/pagemapdata.py (refactored) @@ -107,7 +107,7 @@ try: self.kpagemap[p] = self.count_stats(p) except: - print 'pagemap error for pid %s' % p + print('pagemap error for pid %s' % p) #for k in sorted(self.kpagemap.iterkeys()): # print '%s = uss %d pss %d share %d res %d swap %d' % (k, self.kpagemap[k][0], self.kpagemap[k][1],self.kpagemap[k][2],self.kpagemap[k][3],self.kpagemap[k][4]) @@ -125,7 +125,7 @@ for line in m_file: line = line.replace('-',' ') address = line.split(None,2) - areas.append((long(address[0],16), long(address[1],16))) + areas.append((int(address[0],16), int(address[1],16))) m_file.close() return areas @@ -144,7 +144,7 @@ try: maps = self.read_maps(pid) except NoMapsAccess: - print 'No maps access for %d' % pid + print('No maps access for %d' % pid) name = ''.join(['/proc/',str(pid),'/pagemap']) try: p_file = open(name,"rb", 0) @@ -194,14 +194,14 @@ swap = 0 # checks if is present or in swap - if number & (1L << 63): + if number & (1 << 63): res = 1 else: - if number & (1L << 62): + if number & (1 << 62): swap = 1 return uss, pss, share, res, swap # add pfn count - pfn = number & ((1L << 55) - 1) + pfn = number & ((1 << 55) - 1) # get page count pos = pfn*8 @@ -228,7 +228,7 @@ f = open("/proc/meminfo", "r", 0) for line in f: if line.find("MemTotal") != -1: - self.pagecount = long(line.split()[1])/4 + self.pagecount = int(line.split()[1])/4 break f.close() + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.72203 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd libpagemap-0.0.1 + cd libpagemap-0.0.1 + make 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' make: Entering directory '/usr/src/RPM/BUILD/libpagemap-0.0.1/libpagemap-0.0.1' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -fPIC -c libpagemap.c libpagemap.c: In function 'open_kpagemap': libpagemap.c:135:44: warning: format '%lu' expects argument of type 'long unsigned int *', but argument 3 has type 'uint64_t *' {aka 'long long unsigned int *'} [-Wformat=] 135 | if (sscanf(buffer,"MemTotal: %lu kB",&ramsize) < 1) { | ~~^ ~~~~~~~~ | | | | | uint64_t * {aka long long unsigned int *} | long unsigned int * | %llu gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -shared -Wl,-soname,libpagemap.so.0 -o libpagemap.so.0.0.0 libpagemap.o -lc ln -s libpagemap.so.0.0.0 libpagemap.so.0 gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -c pgmap.c pgmap.c: In function 'make_header': pgmap.c:268:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 268 | if (p) | ^~ pgmap.c:270:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 270 | if (!start) | ^~ gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -o pgmap pgmap.o libpagemap.so.0 make: Leaving directory '/usr/src/RPM/BUILD/libpagemap-0.0.1/libpagemap-0.0.1' + sed -i 1s,python,python3, pagemapdata.py + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.31027 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/libpagemap-buildroot + : + /bin/rm -rf -- /usr/src/tmp/libpagemap-buildroot + cd libpagemap-0.0.1 + cd libpagemap-0.0.1 + make install DESTDIR=/usr/src/tmp/libpagemap-buildroot make: Entering directory '/usr/src/RPM/BUILD/libpagemap-0.0.1/libpagemap-0.0.1' install -Dp libpagemap.so.0.0.0 /usr/src/tmp/libpagemap-buildroot/usr/lib/libpagemap.so.0.0.0 cd /usr/src/tmp/libpagemap-buildroot/usr/lib && ln -s libpagemap.so.0.0.0 libpagemap.so.0 && ln -s libpagemap.so.0.0.0 libpagemap.so && cd - /usr/src/RPM/BUILD/libpagemap-0.0.1/libpagemap-0.0.1 install -Dp pgmap /usr/src/tmp/libpagemap-buildroot/usr/bin/pgmap install -Dp pgmap.1 /usr/src/tmp/libpagemap-buildroot/usr/share/man/man1/pgmap.1 install -Dp -m 0644 libpagemap.h /usr/src/tmp/libpagemap-buildroot/usr/include/libpagemap.h make: Leaving directory '/usr/src/RPM/BUILD/libpagemap-0.0.1/libpagemap-0.0.1' + install -D -p -m 755 pagemapdata.py /usr/src/tmp/libpagemap-buildroot//usr/lib/python3/site-packages/pagemapdata.py + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/libpagemap-buildroot (auto) mode of './usr/lib/libpagemap.so.0.0.0' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) Verifying and fixing files in /usr/src/tmp/libpagemap-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/libpagemap-buildroot/ (default) Compressing files in /usr/src/tmp/libpagemap-buildroot (auto) mode of '/usr/src/tmp/libpagemap-buildroot/usr/share/man/man1/pgmap.1' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) Adjusting library links in /usr/src/tmp/libpagemap-buildroot ./usr/lib: libpagemap.so.0 -> libpagemap.so.0.0.0 Verifying ELF objects in /usr/src/tmp/libpagemap-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) verify-elf: WARNING: ./usr/lib/libpagemap.so.0.0.0: uses non-LFS functions: fopen open readdir Bytecompiling python modules in /usr/src/tmp/libpagemap-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/libpagemap-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/libpagemap-buildroot using /usr/bin/python3 Bytecompiling python3 modules with optimization in /usr/src/tmp/libpagemap-buildroot using /usr/bin/python3 -O Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/libpagemap-buildroot using /usr/bin/python3 -OO Hardlinking identical .pyc and .opt-?.pyc files Hardlinking identical .pyc and .pyo files Processing files: libpagemap-0.0.1-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.50102 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd libpagemap-0.0.1 + DOCDIR=/usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + export DOCDIR + rm -rf /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + /bin/mkdir -p /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + cp -prL libpagemap-0.0.1/contrib/ /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + chmod -R go-w /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + chmod -R a+rX /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + cp -prL libpagemap-0.0.1/README /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + chmod -R go-w /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + chmod -R a+rX /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + cp -prL libpagemap-0.0.1/COPYING /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + chmod -R go-w /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + chmod -R a+rX /usr/src/tmp/libpagemap-buildroot/usr/share/doc/libpagemap-0.0.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ZQo9dH find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) lib.prov: /usr/src/tmp/libpagemap-buildroot/usr/lib/libpagemap.so.0: 11 symbols, 14 bpp Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.WAmcXG find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) find-requires: FINDPACKAGE-COMMANDS: python3 Provides: libpagemap.so.0 = set:hd3C2DlfmnEST0iNhXJksJB0, python3(pagemapdata) Requires: /lib/ld-linux.so.2, /usr/bin/env, /usr/lib/python3/site-packages, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libc.so.6(GLIBC_2.7), python3, python3(os) < 0, python3(resource) < 0, python3(struct) < 0, rtld(GNU_HASH) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.x00ibF Creating libpagemap-debuginfo package Processing files: libpagemap-devel-0.0.1-alt2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.blb6KH 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.nitdPE find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: libpagemap = 0.0.1-alt2, /usr/lib/libpagemap.so.0.0.0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ZBXNCE Processing files: libpagemap-debuginfo-0.0.1-alt2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.IxRGSH find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.BsDSuE find-requires: running scripts (debuginfo) Provides: debug(libpagemap.so.0) Requires: libpagemap = 0.0.1-alt2, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libc.so.6) Adding to libpagemap-devel a strict dependency on libpagemap Adding to libpagemap-debuginfo a strict dependency on libpagemap Removing 1 extra deps from libpagemap-devel due to dependency on libpagemap Wrote: /usr/src/RPM/RPMS/i586/libpagemap-0.0.1-alt2.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/libpagemap-devel-0.0.1-alt2.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/libpagemap-debuginfo-0.0.1-alt2.i586.rpm 7.83user 1.56system 0:15.48elapsed 60%CPU (0avgtext+0avgdata 26912maxresident)k 0inputs+0outputs (0major+372639minor)pagefaults 0swaps 16.00user 5.25system 0:27.71elapsed 76%CPU (0avgtext+0avgdata 109116maxresident)k 0inputs+0outputs (0major+796135minor)pagefaults 0swaps