Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-blah.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1685411468.822465/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-blah.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-blah-0.1.12-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-blah.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1685411468.822465/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-blah.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-blah-0.1.12-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-blah.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1685411468.822465/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-blah.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mCTDrC + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf blah-0.1.12 + /usr/bin/gzip -dc /builddir/build/SOURCES/blah-0.1.12.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd blah-0.1.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.K5faWS + umask 022 + cd /builddir/build/BUILD + cd blah-0.1.12 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' /usr/lib64/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running build running build_py creating build creating build/lib creating build/lib/blah copying blah/commands.py -> build/lib/blah copying blah/systems.py -> build/lib/blah copying blah/repositories.py -> build/lib/blah copying blah/files.py -> build/lib/blah copying blah/util.py -> build/lib/blah copying blah/uri_parser.py -> build/lib/blah copying blah/git.py -> build/lib/blah copying blah/fetcher.py -> build/lib/blah copying blah/hg.py -> build/lib/blah copying blah/__init__.py -> build/lib/blah copying blah/caching.py -> build/lib/blah copying blah/errors.py -> build/lib/blah running build_scripts creating build/scripts-3.9 copying and adjusting scripts/blah -> build/scripts-3.9 changing mode of build/scripts-3.9/blah from 644 to 755 + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.N5FGhb + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64 ++ dirname /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64 + cd blah-0.1.12 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64 /usr/lib64/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running install running install_lib creating /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr creating /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib creating /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9 creating /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/commands.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/systems.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/repositories.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/files.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/util.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/uri_parser.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/git.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/fetcher.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/hg.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/__init__.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/caching.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah copying build/lib/blah/errors.py -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/commands.py to commands.cpython-39.pyc File "/usr/lib/python3.9/site-packages/blah/commands.py", line 16 print "Could not find source control repository" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Could not find source control repository")? byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/systems.py to systems.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/repositories.py to repositories.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/files.py to files.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/util.py to util.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/uri_parser.py to uri_parser.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/git.py to git.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/fetcher.py to fetcher.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/hg.py to hg.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/caching.py to caching.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/errors.py to errors.cpython-39.pyc writing byte-compilation script '/tmp/tmp63ts0wab.py' /usr/bin/python3 /tmp/tmp63ts0wab.py File "/usr/lib/python3.9/site-packages/blah/commands.py", line 16 print "Could not find source control repository" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Could not find source control repository")? removing /tmp/tmp63ts0wab.py running install_scripts creating /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/bin copying build/scripts-3.9/blah -> /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/bin changing mode of /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/bin/blah to 755 running install_egg_info Writing /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah-0.1.12-py3.9.egg-info + install -d -m755 /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64//usr/share/doc/python-blah + '[' -d doc ']' ~/build/BUILDROOT/python-blah-0.1.12-1.aarch64 ~/build/BUILD/blah-0.1.12 + '[' -d docs ']' + '[' -d example ']' + '[' -d examples ']' + pushd /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64 + '[' -d usr/lib ']' + find usr/lib -type f -printf '/%h/%f\n' + '[' -d usr/lib64 ']' + '[' -d usr/bin ']' + find usr/bin -type f -printf '/%h/%f\n' + '[' -d usr/sbin ']' + touch doclist.lst + '[' -d usr/share/man ']' ~/build/BUILD/blah-0.1.12 + popd + mv /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/filelist.lst . + mv /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/doclist.lst . + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 0.1.12-1 --unique-debug-suffix -0.1.12-1.aarch64 --unique-debug-src-base python-blah-0.1.12-1.aarch64 -S debugsourcefiles.list /builddir/build/BUILD/blah-0.1.12 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9 using /usr/bin/python3.9 *** Error compiling '/builddir/build/BUILDROOT/python-blah-0.1.12-1.aarch64/usr/lib/python3.9/site-packages/blah/commands.py'... File "/usr/lib/python3.9/site-packages/blah/commands.py", line 16 print "Could not find source control repository" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Could not find source control repository")? error: Bad exit status from /var/tmp/rpm-tmp.N5FGhb (%install) Bad exit status from /var/tmp/rpm-tmp.N5FGhb (%install) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-blah.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-blah.spec