D: [iurt_root_command] chroot warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. warning: extra tokens at the end of %endif directive in line 20: %endif # if with_python3 warning: extra tokens at the end of %endif directive in line 47: %endif # with_python3 warning: extra tokens at the end of %endif directive in line 59: %endif # with_python3 warning: extra tokens at the end of %endif directive in line 69: %endif # with_python3 warning: extra tokens at the end of %endif directive in line 77: %endif # with_python3 Installing /home/iurt/rpmbuild/SRPMS/python-gevent-websocket-0.9.5-3.mga9.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.s1Tccz + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf gevent-websocket-0.9.5 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/gevent-websocket-0.9.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gevent-websocket-0.9.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf gevent-websocket.egg-info + find -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/bin/python3|' + 2to3 -w . 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: No changes to ./geventwebsocket/__init__.py RefactoringTool: No changes to ./geventwebsocket/exceptions.py RefactoringTool: No changes to ./geventwebsocket/handler.py RefactoringTool: Refactored ./geventwebsocket/logging.py RefactoringTool: Refactored ./geventwebsocket/resource.py RefactoringTool: No changes to ./geventwebsocket/server.py RefactoringTool: Refactored ./geventwebsocket/utf8validator.py RefactoringTool: No changes to ./geventwebsocket/utils.py RefactoringTool: Refactored ./geventwebsocket/websocket.py RefactoringTool: No changes to ./geventwebsocket/protocols/base.py RefactoringTool: Refactored ./geventwebsocket/protocols/wamp.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./geventwebsocket/__init__.py RefactoringTool: ./geventwebsocket/exceptions.py RefactoringTool: ./geventwebsocket/handler.py RefactoringTool: ./geventwebsocket/logging.py RefactoringTool: ./geventwebsocket/resource.py RefactoringTool: ./geventwebsocket/server.py RefactoringTool: ./geventwebsocket/utf8validator.py RefactoringTool: ./geventwebsocket/utils.py RefactoringTool: ./geventwebsocket/websocket.py RefactoringTool: ./geventwebsocket/protocols/base.py RefactoringTool: ./geventwebsocket/protocols/wamp.py --- ./geventwebsocket/logging.py (original) +++ ./geventwebsocket/logging.py (refactored) @@ -1,4 +1,4 @@ -from __future__ import absolute_import + from logging import getLogger, StreamHandler, getLoggerClass, Formatter, DEBUG --- ./geventwebsocket/resource.py (original) +++ ./geventwebsocket/resource.py (refactored) @@ -51,7 +51,7 @@ # Convert to a list of tuples # The order is undefined, which can be very bad, but this keeps # backwards compatibility. - self.apps = [(path, app) for path, app in apps.iteritems()] + self.apps = [(path, app) for path, app in apps.items()] # An app can either be a standard WSGI application (an object we call with # __call__(self, environ, start_response)) or a class we instantiate @@ -63,7 +63,7 @@ def _app_by_path(self, environ_path, is_websocket_request): # Which app matched the current path? - for path, app in self.apps.items(): + for path, app in list(self.apps.items()): if re.match(path, environ_path): if is_websocket_request == self._is_websocket_app(app): return app --- ./geventwebsocket/utf8validator.py (original) +++ ./geventwebsocket/utf8validator.py (refactored) @@ -114,7 +114,7 @@ l = len(ba) - for i in xrange(l): + for i in range(l): ## optimized version of decode(), since we are not interested in actual code points self.state = Utf8Validator.UTF8VALIDATOR_DFA[256 + (self.state << 4) + Utf8Validator.UTF8VALIDATOR_DFA[ord(ba[i])]] --- ./geventwebsocket/websocket.py (original) +++ ./geventwebsocket/websocket.py (refactored) @@ -62,7 +62,7 @@ """ if not bytestring: - return u'' + return '' try: return bytestring.decode('utf-8') @@ -79,8 +79,8 @@ if isinstance(text, str): return text - if not isinstance(text, unicode): - text = unicode(text or '') + if not isinstance(text, str): + text = str(text or '') return text.encode('utf-8') @@ -337,7 +337,7 @@ Send a frame over the websocket with message as its payload """ if binary is None: - binary = not isinstance(message, (str, unicode)) + binary = not isinstance(message, str) opcode = self.OPCODE_BINARY if binary else self.OPCODE_TEXT @@ -420,7 +420,7 @@ payload = bytearray(payload) mask = bytearray(self.mask) - for i in xrange(self.length): + for i in range(self.length): payload[i] ^= mask[i % 4] return str(payload) --- ./geventwebsocket/protocols/wamp.py (original) +++ ./geventwebsocket/protocols/wamp.py (refactored) @@ -131,7 +131,7 @@ self.prefixes = Prefixes() self.session_id = ''.join( [random.choice(string.digits + string.letters) - for i in xrange(16)]) + for i in range(16)]) super(WampProtocol, self).__init__(*args, **kwargs) @@ -168,9 +168,9 @@ call_id, curie_or_uri = data[1:3] args = data[3:] - if not isinstance(call_id, (str, unicode)): - raise Exception() - if not isinstance(curie_or_uri, (str, unicode)): + if not isinstance(call_id, str): + raise Exception() + if not isinstance(curie_or_uri, str): raise Exception() uri = self.prefixes.resolve(curie_or_uri) @@ -178,7 +178,7 @@ try: result = self.procedures.call(uri, args) result_msg = [self.MSG_CALL_RESULT, call_id, result] - except Exception, e: + except Exception as e: result_msg = [self.MSG_CALL_ERROR, call_id] + self._get_exception_info(e) @@ -190,7 +190,7 @@ if not isinstance(action, int): raise Exception() - if not isinstance(curie_or_uri, (str, unicode)): + if not isinstance(curie_or_uri, str): raise Exception() uri = self.prefixes.resolve(curie_or_uri) + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.BQR70B + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd gevent-websocket-0.9.5 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/geventwebsocket copying geventwebsocket/websocket.py -> build/lib/geventwebsocket copying geventwebsocket/utf8validator.py -> build/lib/geventwebsocket copying geventwebsocket/resource.py -> build/lib/geventwebsocket copying geventwebsocket/logging.py -> build/lib/geventwebsocket copying geventwebsocket/__init__.py -> build/lib/geventwebsocket copying geventwebsocket/exceptions.py -> build/lib/geventwebsocket copying geventwebsocket/handler.py -> build/lib/geventwebsocket copying geventwebsocket/server.py -> build/lib/geventwebsocket copying geventwebsocket/utils.py -> build/lib/geventwebsocket creating build/lib/geventwebsocket/protocols copying geventwebsocket/protocols/wamp.py -> build/lib/geventwebsocket/protocols copying geventwebsocket/protocols/__init__.py -> build/lib/geventwebsocket/protocols copying geventwebsocket/protocols/base.py -> build/lib/geventwebsocket/protocols creating build/lib/geventwebsocket/gunicorn copying geventwebsocket/gunicorn/__init__.py -> build/lib/geventwebsocket/gunicorn copying geventwebsocket/gunicorn/workers.py -> build/lib/geventwebsocket/gunicorn + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.ETppH7 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64 + cd gevent-websocket-0.9.5 + '[' 1 -eq 1 ']' + /usr/bin/python3 setup.py install --skip-build --root /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64 running install running install_lib creating /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr creating /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib creating /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9 creating /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages creating /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket creating /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/gunicorn copying build/lib/geventwebsocket/gunicorn/workers.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/gunicorn copying build/lib/geventwebsocket/gunicorn/__init__.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/gunicorn creating /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/protocols copying build/lib/geventwebsocket/protocols/base.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/protocols copying build/lib/geventwebsocket/protocols/__init__.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/protocols copying build/lib/geventwebsocket/protocols/wamp.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/protocols copying build/lib/geventwebsocket/utils.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/server.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/handler.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/exceptions.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/__init__.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/logging.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/resource.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/utf8validator.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket copying build/lib/geventwebsocket/websocket.py -> /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/gunicorn/workers.py to workers.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/gunicorn/__init__.py to __init__.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/protocols/base.py to base.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/protocols/__init__.py to __init__.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/protocols/wamp.py to wamp.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/utils.py to utils.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/server.py to server.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/handler.py to handler.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/exceptions.py to exceptions.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/__init__.py to __init__.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/logging.py to logging.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/resource.py to resource.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/utf8validator.py to utf8validator.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/geventwebsocket/websocket.py to websocket.cpython-39.pyc running install_egg_info running egg_info writing gevent_websocket.egg-info/PKG-INFO writing dependency_links to gevent_websocket.egg-info/dependency_links.txt writing requirements to gevent_websocket.egg-info/requires.txt writing top-level names to gevent_websocket.egg-info/top_level.txt adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*') adding license file 'AUTHORS' (matched pattern 'AUTHORS*') reading manifest file 'gevent_websocket.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'gevent_websocket.egg-info/SOURCES.txt' Copying gevent_websocket.egg-info to /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9/site-packages/gevent_websocket-0.9.5-py3.9.egg-info running install_scripts + /usr/bin/find-debuginfo.sh -j8 --strict-build-id -m -i --build-id-seed 0.9.5-3.mga9 --unique-debug-suffix -0.9.5-3.mga9.aarch64 --unique-debug-src-base python-gevent-websocket-0.9.5-3.mga9.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/gevent-websocket-0.9.5 + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python3 1 0 Bytecompiling .py files below /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/lib/python3.9 using /usr/bin/python3.9 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: python3-gevent-websocket-0.9.5-3.mga9.noarch Executing(%doc): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.a8hX6E + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd gevent-websocket-0.9.5 + DOCDIR=/home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/share/doc/python3-gevent-websocket + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/share/doc/python3-gevent-websocket + cp -pr README.rst /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/share/doc/python3-gevent-websocket + cp -pr LICENSE /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64/usr/share/doc/python3-gevent-websocket + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-gevent-websocket = 0.9.5-3.mga9 python3-gevent-websocket = 0.9.5-3.mga9 python3.9-gevent-websocket = 0.9.5-3.mga9 python3.9dist(gevent-websocket) = 0.9.5 python3dist(gevent-websocket) = 0.9.5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.9 python3.9dist(gevent) Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64 Wrote: /home/iurt/rpmbuild/RPMS/noarch/python3-gevent-websocket-0.9.5-3.mga9.noarch.rpm Executing(%clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.X2PTHV + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd gevent-websocket-0.9.5 + /usr/bin/rm -rf /home/iurt/rpmbuild/BUILDROOT/python-gevent-websocket-0.9.5-3.mga9.aarch64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(--clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.NX09tI + umask 022 + cd /home/iurt/rpmbuild/BUILD + rm -rf gevent-websocket-0.9.5 + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!