D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch Installing /home/pterjan/rpmbuild/SRPMS/python-mglob-0.4-16.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6cYq3O + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + test -d /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jVnXdM + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + rm -rf mglob-0.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/mglob-0.4.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd mglob-0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (mglob-0.4-built-in-set.patch):' Patch #0 (mglob-0.4-built-in-set.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file mglob.py Hunk #1 succeeded at 70 (offset 1 line). + sed -i -e '/^#!\//, 1d' mglob.py + find -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/bin/python3|' + /usr/bin/2to3 --write --nobackups . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./mglob.py RefactoringTool: No changes to ./setup.py RefactoringTool: Files that were modified: RefactoringTool: ./mglob.py RefactoringTool: ./setup.py --- ./mglob.py (original) +++ ./mglob.py (refactored) @@ -86,7 +86,7 @@ contained in them - otherwise, directory names are returned as is. """ - if isinstance(flist, basestring): + if isinstance(flist, str): flist = flist.split() done_set = set() denied_set = set() @@ -160,16 +160,16 @@ denied_set.add(ent[1:]) # glob only dirs elif ent.lower().startswith('dir:'): - res.extend(once_filter(filter(os.path.isdir,glob.glob(ent[4:])))) + res.extend(once_filter(list(filter(os.path.isdir,glob.glob(ent[4:]))))) # get all files in the specified dir elif os.path.isdir(ent) and exp_dirs: - res.extend(once_filter(filter(os.path.isfile,glob.glob(ent + os.sep+"*")))) + res.extend(once_filter(list(filter(os.path.isfile,glob.glob(ent + os.sep+"*"))))) # glob only files elif '*' in ent or '?' in ent: - res.extend(once_filter(filter(os.path.isfile,glob.glob(ent)))) + res.extend(once_filter(list(filter(os.path.isfile,glob.glob(ent))))) else: res.extend(once_filter([ent])) @@ -184,17 +184,17 @@ def main(): if len(sys.argv) < 2: - print globsyntax + print(globsyntax) return - print "\n".join(expand(sys.argv[1:])), + print("\n".join(expand(sys.argv[1:])), end=' ') def mglob_f(self, arg): from IPython.genutils import SList if arg.strip(): return SList(expand(arg)) - print "Please specify pattern!" - print globsyntax + print("Please specify pattern!") + print(globsyntax) def init_ipython(ip): """ register %mglob for IPython """ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3EqMtV + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mglob-0.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/python3 setup.py build /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/mglob-0.4/mglob.py:35: SyntaxWarning: invalid escape sequence '\ ' globsyntax = """\ running build running build_py creating build/lib copying mglob.py -> build/lib + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.SJTCnq + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + mkdir /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mglob-0.4 + '[' 1 -eq 1 ']' + /usr/bin/python3 setup.py install -O1 --skip-build --root /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT running install /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/lib/python3.12/site-packages copying build/lib/mglob.py -> /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/lib/python3.12/site-packages byte-compiling /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/lib/python3.12/site-packages/mglob.py to mglob.cpython-312.pyc /usr/lib/python3.12/site-packages/mglob.py:35: SyntaxWarning: invalid escape sequence '\ ' writing byte-compilation script '/tmp/tmphnwibd3f.py' /usr/bin/python3 /tmp/tmphnwibd3f.py /usr/lib/python3.12/site-packages/mglob.py:35: SyntaxWarning: invalid escape sequence '\ ' removing /tmp/tmphnwibd3f.py running install_egg_info running egg_info writing mglob.egg-info/PKG-INFO writing dependency_links to mglob.egg-info/dependency_links.txt writing entry points to mglob.egg-info/entry_points.txt writing top-level names to mglob.egg-info/top_level.txt reading manifest file 'mglob.egg-info/SOURCES.txt' writing manifest file 'mglob.egg-info/SOURCES.txt' Copying mglob.egg-info to /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/lib/python3.12/site-packages/mglob-0.4-py3.12.egg-info running install_scripts Installing mglob script to /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/bin + mv /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/bin/mglob /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/bin/python3-mglob + /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-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 Bytecompiling .py files below /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT/usr/lib/python3.12 using python3.12 Not clamping source mtimes, $SOURCE_DATE_EPOCH not set /usr/lib/python3.12/site-packages/mglob.py:35: SyntaxWarning: invalid escape sequence '\ ' /usr/lib/python3.12/site-packages/mglob.py:35: SyntaxWarning: invalid escape sequence '\ ' + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: python3-mglob-0.4-16.mga10.noarch Provides: python-mglob = 0.4-16.mga10 python3-mglob = 0.4-16.mga10 python3.12-mglob = 0.4-16.mga10 python3.12dist(mglob) = 0.4 python3dist(mglob) = 0.4 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.12 Obsoletes: python-mglob < 0.4-16.mga10 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build/BUILDROOT Wrote: /home/pterjan/rpmbuild/RPMS/noarch/python3-mglob-0.4-16.mga10.noarch.rpm Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.LrCob9 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + test -d /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + rm -rf /home/pterjan/rpmbuild/BUILD/python-mglob-0.4-build + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!