<86>Sep 14 10:09:41 userdel[3128052]: delete user 'rooter' <86>Sep 14 10:09:41 userdel[3128052]: removed group 'rooter' owned by 'rooter' <86>Sep 14 10:09:41 groupadd[3128060]: group added to /etc/group: name=rooter, GID=642 <86>Sep 14 10:09:41 groupadd[3128060]: group added to /etc/gshadow: name=rooter <86>Sep 14 10:09:41 groupadd[3128060]: new group: name=rooter, GID=642 <86>Sep 14 10:09:41 useradd[3128070]: new user: name=rooter, UID=642, GID=642, home=/root, shell=/bin/bash <86>Sep 14 10:09:41 userdel[3128080]: delete user 'builder' <86>Sep 14 10:09:41 userdel[3128080]: removed group 'builder' owned by 'builder' <86>Sep 14 10:09:41 userdel[3128080]: removed shadow group 'builder' owned by 'builder' <86>Sep 14 10:09:41 groupadd[3128091]: group added to /etc/group: name=builder, GID=643 <86>Sep 14 10:09:41 groupadd[3128091]: group added to /etc/gshadow: name=builder <86>Sep 14 10:09:41 groupadd[3128091]: new group: name=builder, GID=643 <86>Sep 14 10:09:41 useradd[3128102]: new user: name=builder, UID=643, GID=643, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/python3-module-cef-0.5-alt3.src.rpm: The use of such a license name is ambiguous: MPL <13>Sep 14 10:09:43 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626059138 installed <13>Sep 14 10:09:43 rpmi: libexpat-2.2.10-alt1 sisyphus+276608.100.1.2 1625153360 installed <13>Sep 14 10:09:43 rpmi: libp11-kit-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Sep 14 10:09:43 rpmi: libtasn1-4.17.0-alt1 sisyphus+276722.100.1.1 1625211286 installed <13>Sep 14 10:09:43 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 14 10:09:43 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 14 10:09:43 rpmi: ca-certificates-2021.06.03-alt1 sisyphus+273509.400.1.1 1622736045 installed <13>Sep 14 10:09:43 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Sep 14 10:09:43 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Sep 14 10:09:43 rpmi: libcrypto1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629816097 installed <13>Sep 14 10:09:43 rpmi: libssl1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629816097 installed <13>Sep 14 10:09:43 rpmi: python3-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:09:44 rpmi: python3-base-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:09:44 rpmi: libpython3-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:09:44 rpmi: tests-for-installed-python3-pkgs-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Sep 14 10:09:44 rpmi: rpm-build-python3-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Sep 14 10:09:46 rpmi: python3-module-iniconfig-1.1.1-alt1 sisyphus+270533.3400.6.1 1619684870 installed <13>Sep 14 10:09:46 rpmi: python3-module-toml-0.10.2-alt2 sisyphus+268468.100.2.1 1617010078 installed <13>Sep 14 10:09:46 rpmi: python3-module-pluggy-1.0.0-alt1 sisyphus+284853.100.1.1 1631109373 installed <13>Sep 14 10:09:46 rpmi: python3-module-pyparsing-2.4.7-alt1 sisyphus+277413.100.1.1 1625536142 installed <13>Sep 14 10:09:46 rpmi: python3-module-packaging-21.0-alt1 sisyphus+282740.100.1.1 1628983550 installed <13>Sep 14 10:09:46 rpmi: python3-module-attrs-21.2.0-alt1 sisyphus+273317.100.1.1 1622569791 installed <13>Sep 14 10:09:46 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+275892.100.2.1 1624872742 installed <13>Sep 14 10:09:46 rpmi: python3-module-py-1.10.0-alt1 sisyphus+271297.460.4.1 1620386890 installed <13>Sep 14 10:09:46 rpmi: libpython-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python2-base-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-encodings-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-compiler-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-email-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-unittest-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-ctypes-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-multiprocessing-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-modules-logging-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python-tools-2to3-2.7.18-alt7 sisyphus+284067.100.1.1 1630124815 installed <13>Sep 14 10:09:46 rpmi: python3-module-pytest-6.2.5-alt1 sisyphus+284853.200.2.1 1631178039 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-cef-0.5-alt3.nosrc.rpm (w1.gzdio) <13>Sep 14 10:09:48 rpmi: python3-module-pkg_resources-1:57.4.0-alt1 sisyphus+280768.100.2.1 1627367207 installed <13>Sep 14 10:09:48 rpmi: libncurses-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022624 installed <13>Sep 14 10:09:48 rpmi: libtinfo-devel-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022624 installed <13>Sep 14 10:09:48 rpmi: libncurses-devel-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022624 installed <13>Sep 14 10:09:48 rpmi: python3-dev-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:09:48 rpmi: python3-module-setuptools-1:57.4.0-alt1 sisyphus+280768.100.2.1 1627367207 installed Installing python3-module-cef-0.5-alt3.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.97884 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-cef-0.5 + echo 'Source #0 (python3-module-cef-0.5.tar):' Source #0 (python3-module-cef-0.5.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-cef-0.5.tar + cd python3-module-cef-0.5 + /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 ./test_cef.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./cef.py RefactoringTool: Files that were modified: RefactoringTool: ./test_cef.py RefactoringTool: ./setup.py RefactoringTool: ./cef.py --- ./test_cef.py (original) +++ ./test_cef.py (refactored) @@ -85,7 +85,7 @@ def test_cef_logging(self): # should not fail res = self._log('xx|x', 5) - self.assertEquals(len(res.split('|')), 10) + self.assertEqual(len(res.split('|')), 10) # should not fail and be properly escaped self.environ['HTTP_USER_AGENT'] = "=|\\" @@ -181,11 +181,11 @@ file_ = config['cef.file'] environ = {'PATH_INFO': - u'/reviewers/receipt/issue/\u043f\u0442\u0442-news'} - kw = {'cs2': 1L, - 'cs2Label': u'\xd0'} - - log_cef('name', 0, environ, config, username=u'tarek', **kw) + '/reviewers/receipt/issue/\u043f\u0442\u0442-news'} + kw = {'cs2': 1, + 'cs2Label': '\xd0'} + + log_cef('name', 0, environ, config, username='tarek', **kw) with open(file_) as f: data = f.read() --- ./cef.py (original) +++ ./cef.py (refactored) @@ -120,7 +120,7 @@ def _to_str(data): """Converts to str, encoding unicode strings with utf8""" - if isinstance(data, unicode): + if isinstance(data, str): return data.encode('utf8') return str(data) @@ -158,7 +158,7 @@ if _LOG_OPENED != (ident, logopt, facility): syslog.openlog(ident, logopt, facility) _LOG_OPENED = ident, logopt, facility - if isinstance(msg, unicode): + if isinstance(msg, str): msg = msg.encode('utf-8') syslog.syslog(priority, msg) @@ -198,7 +198,7 @@ """Keeps only params that starts with the namespace. """ params = {} - for key, value in data.items(): + for key, value in list(data.items()): if splitchar not in key: continue skey = key.split(splitchar) @@ -223,9 +223,9 @@ 'source': source, 'method': _convert_ext(environ.get('REQUEST_METHOD', '')), 'url': _convert_ext(environ.get('PATH_INFO', '')), - 'dest': _convert_ext(environ.get('HTTP_HOST', u'none')), + 'dest': _convert_ext(environ.get('HTTP_HOST', 'none')), 'user_agent': _convert_ext(environ.get('HTTP_USER_AGENT', - u'none')), + 'none')), 'signature': signature, 'name': name, 'version': config['version'], @@ -252,7 +252,7 @@ def _len(data): if isinstance(data, str): return len(data) - elif isinstance(data, unicode): + elif isinstance(data, str): return len(data.encode('utf8')) return len(str(data)) @@ -263,7 +263,7 @@ msg = _CEF_FORMAT % fields extensions = [(_len(value), len(key), key, value) - for key, value in kw.items() + for key, value in list(kw.items()) if key not in _EXTENSIONS] extensions.sort() @@ -276,7 +276,7 @@ if maxlen and msg_len + added_len > maxlen: # msg is too big. - warn = 'CEF Message too big. %s %s' % (msg, str(kw.items())) + warn = 'CEF Message too big. %s %s' % (msg, str(list(kw.items()))) logger.warning(warn) break + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.84070 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-cef-0.5 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib copying cef.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.84070 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-cef-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-cef-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-cef-0.5 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-cef-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-cef-buildroot creating /usr/src/tmp/python3-module-cef-buildroot/usr creating /usr/src/tmp/python3-module-cef-buildroot/usr/lib creating /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages copying build/lib/cef.py -> /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py to cef.cpython-39.pyc running install_egg_info Writing /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef-0.5-py3.9.egg-info + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-cef-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-cef-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-cef-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-cef-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-cef-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-cef-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python3 modules in /usr/src/tmp/python3-module-cef-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/__pycache__/cef.cpython-39.pyc compile /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-cef-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-cef-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/cef.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/cef.cpython-39.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.11624 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-cef-0.5 + exit 0 Processing files: python3-module-cef-0.5-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.11624 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-cef-0.5 + DOCDIR=/usr/src/tmp/python3-module-cef-buildroot/usr/share/doc/python3-module-cef-0.5 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-cef-buildroot/usr/share/doc/python3-module-cef-0.5 + /bin/mkdir -p /usr/src/tmp/python3-module-cef-buildroot/usr/share/doc/python3-module-cef-0.5 + cp -prL README.txt /usr/src/tmp/python3-module-cef-buildroot/usr/share/doc/python3-module-cef-0.5 + chmod -R go-w /usr/src/tmp/python3-module-cef-buildroot/usr/share/doc/python3-module-cef-0.5 + chmod -R a+rX /usr/src/tmp/python3-module-cef-buildroot/usr/share/doc/python3-module-cef-0.5 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.5wURid 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.CfOThd find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py:6: DeprecationWarning: The parser module is deprecated and will be removed in future versions of Python import parser, symbol, token, types /usr/lib/rpm/python3.req.py:6: DeprecationWarning: The symbol module is deprecated and will be removed in future versions of Python import parser, symbol, token, types python3.req: /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py: line=39 IGNORE (for REQ=slight and deep=8) module=syslog python3.req: /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-cef-buildroot/usr/lib/python3/site-packages/cef.py: line=85 IGNORE (for REQ=slight and deep=8) module=services Provides: python3(cef) Requires: /usr/lib/python3/site-packages, python3(logging) < 0, python3(re) < 0, python3(socket) < 0, python3(threading) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-cef-0.5-alt3.noarch.rpm (w2.lzdio) 4.40user 0.42system 0:06.35elapsed 75%CPU (0avgtext+0avgdata 14660maxresident)k 0inputs+0outputs (0major+129938minor)pagefaults 0swaps /.out/python3-module-cef-0.5-alt3.noarch.rpm: The use of such a license name is ambiguous: MPL 11.23user 3.70system 0:16.30elapsed 91%CPU (0avgtext+0avgdata 101020maxresident)k 0inputs+0outputs (0major+545767minor)pagefaults 0swaps --- python3-module-cef-0.5-alt3.noarch.rpm.repo 2020-01-13 14:23:16.700260374 +0000 +++ python3-module-cef-0.5-alt3.noarch.rpm.hasher 2021-09-14 10:09:55.899987975 +0000 @@ -1,6 +1,6 @@ /usr/lib/python3/site-packages/__pycache__ 40755 root:root -/usr/lib/python3/site-packages/__pycache__/cef.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/__pycache__/cef.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/__pycache__/cef.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/cef-0.5-py3.7.egg-info 100644 root:root +/usr/lib/python3/site-packages/__pycache__/cef.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/__pycache__/cef.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/__pycache__/cef.cpython-39.pyc 100644 root:root +/usr/lib/python3/site-packages/cef-0.5-py3.9.egg-info 100644 root:root /usr/lib/python3/site-packages/cef.py 100644 root:root @@ -17,6 +17,6 @@ File: /usr/lib/python3/site-packages/__pycache__ 40755 root:root -File: /usr/lib/python3/site-packages/__pycache__/cef.cpython-37.opt-1.pyc 100644 root:root b5dc1f0a51c0cef79b9f1f7f1f7d7836 -File: /usr/lib/python3/site-packages/__pycache__/cef.cpython-37.opt-2.pyc 100644 root:root 8435edadf98a7a746768bd4a22836f9e -File: /usr/lib/python3/site-packages/__pycache__/cef.cpython-37.pyc 100644 root:root b5dc1f0a51c0cef79b9f1f7f1f7d7836 -File: /usr/lib/python3/site-packages/cef-0.5-py3.7.egg-info 100644 root:root e7bfeb8df891dc946226c3674e730077 +File: /usr/lib/python3/site-packages/__pycache__/cef.cpython-39.opt-1.pyc 100644 root:root 6f5b336e4aa6c80e8208b39d3576134a +File: /usr/lib/python3/site-packages/__pycache__/cef.cpython-39.opt-2.pyc 100644 root:root 88519ddfc677239841a8898e29866f84 +File: /usr/lib/python3/site-packages/__pycache__/cef.cpython-39.pyc 100644 root:root 6f5b336e4aa6c80e8208b39d3576134a +File: /usr/lib/python3/site-packages/cef-0.5-py3.9.egg-info 100644 root:root e7bfeb8df891dc946226c3674e730077 File: /usr/lib/python3/site-packages/cef.py 100644 root:root 462b6d281531f0ee0ef3daa977466126 @@ -24,2 +24,2 @@ File: /usr/share/doc/python3-module-cef-0.5/README.txt 100644 root:root 03d43850cb4d6e02e045479086a0e482 -RPMIdentity: ca66a91f391dcc44532766eddb6553741d64070608c201ebad0a8c0dcd1db7902befa13e0ef94c66be54db12398728ee0f78373f1a1fffc887a63229e2183609 +RPMIdentity: 6881d16b0d55dd1fb29351b9d015e65c6dce3ea43fdb936572b21861ea7802d64bb56d139b6b99a48608afcd8b9bc37b342279868ee71138c928a80765d7e02f