Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-mglob.spec'], chrootPath='/var/lib/mock/f39-build-1556426-37177/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-mglob.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1689897600 Wrote: /builddir/build/SRPMS/python-mglob-0.4-40.fc39.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-mglob.spec'], chrootPath='/var/lib/mock/f39-build-1556426-37177/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-mglob.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1689897600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dufIWi + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mglob-0.4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/mglob-0.4.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd mglob-0.4 + rm -rf /builddir/build/BUILD/mglob-0.4-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/mglob-0.4-SPECPARTS + /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|' + 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 /var/tmp/rpm-tmp.aoFKEG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + 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 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' /builddir/build/BUILD/mglob-0.4/mglob.py:35: SyntaxWarning: invalid escape sequence '\ ' globsyntax = """\ running build running build_py creating build creating build/lib copying mglob.py -> build/lib + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.DUN7XL + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch ++ dirname /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + 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 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch --prefix /usr 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, pypa/build or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr creating /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/lib creating /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/lib/python3.12/site-packages copying build/lib/mglob.py -> /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/lib/python3.12/site-packages byte-compiling /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/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/tmpro3i3rxv.py' /usr/bin/python3 /tmp/tmpro3i3rxv.py /usr/lib/python3.12/site-packages/mglob.py:35: SyntaxWarning: invalid escape sequence '\ ' removing /tmp/tmpro3i3rxv.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 /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/lib/python3.12/site-packages/mglob-0.4-py3.12.egg-info running install_scripts Installing mglob script to /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/bin + rm -rfv /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/bin/__pycache__ + ln -s ./mglob /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/bin/python3-mglob + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.4-40.fc39 --unique-debug-suffix -0.4-40.fc39.noarch --unique-debug-src-base python-mglob-0.4-40.fc39.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/mglob-0.4 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch/usr/lib/python3.12 using python3.12 /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-40.fc39.noarch Provides: python-mglob = 0.4-40.fc39 python3-mglob = 0.4-40.fc39 python3.12-mglob = 0.4-40.fc39 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: /usr/bin/python3 python(abi) = 3.12 Obsoletes: python-mglob < 0.4-40.fc39 python2-mglob < 0.4-27 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-mglob-0.4-40.fc39.noarch Wrote: /builddir/build/RPMS/python3-mglob-0.4-40.fc39.noarch.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0