Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1679558056.145013/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=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/modulemd-tools-0.13-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1679558056.145013/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=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/modulemd-tools-0.13-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1679558056.145013/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=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.w9Ytd0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf modulemd-tools-modulemd-tools-0.13-1 + /usr/bin/gzip -dc /builddir/build/SOURCES/modulemd-tools-0.13-1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd modulemd-tools-modulemd-tools-0.13-1 + /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.Rs9TE1 + umask 022 + cd /builddir/build/BUILD + cd modulemd-tools-modulemd-tools-0.13-1 + cd repo2module + 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 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/repo2module copying repo2module/cli.py -> build/lib/repo2module copying repo2module/__init__.py -> build/lib/repo2module running egg_info creating repo2module.egg-info writing repo2module.egg-info/PKG-INFO writing dependency_links to repo2module.egg-info/dependency_links.txt writing entry points to repo2module.egg-info/entry_points.txt writing top-level names to repo2module.egg-info/top_level.txt writing manifest file 'repo2module.egg-info/SOURCES.txt' reading manifest file 'repo2module.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'repo2module.egg-info/SOURCES.txt' + sleep 1 + cd .. + cd dir2module + 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 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/dir2module copying dir2module/dir2module.py -> build/lib/dir2module copying dir2module/__init__.py -> build/lib/dir2module running egg_info creating dir2module.egg-info writing dir2module.egg-info/PKG-INFO writing dependency_links to dir2module.egg-info/dependency_links.txt writing entry points to dir2module.egg-info/entry_points.txt writing top-level names to dir2module.egg-info/top_level.txt writing manifest file 'dir2module.egg-info/SOURCES.txt' reading manifest file 'dir2module.egg-info/SOURCES.txt' writing manifest file 'dir2module.egg-info/SOURCES.txt' + sleep 1 + cd .. + cd createrepo_mod + 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 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/createrepo_mod copying createrepo_mod/__init__.py -> build/lib/createrepo_mod copying createrepo_mod/createrepo_mod.py -> build/lib/createrepo_mod running egg_info creating createrepo_mod.egg-info writing createrepo_mod.egg-info/PKG-INFO writing dependency_links to createrepo_mod.egg-info/dependency_links.txt writing entry points to createrepo_mod.egg-info/entry_points.txt writing top-level names to createrepo_mod.egg-info/top_level.txt writing manifest file 'createrepo_mod.egg-info/SOURCES.txt' reading manifest file 'createrepo_mod.egg-info/SOURCES.txt' writing manifest file 'createrepo_mod.egg-info/SOURCES.txt' + sleep 1 + cd .. + cd modulemd-add-platform + 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 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/modulemd_add_platform copying src/modulemd_add_platform/modulemd_add_platform.py -> build/lib/modulemd_add_platform copying src/modulemd_add_platform/__init__.py -> build/lib/modulemd_add_platform + sleep 1 + cd .. + cd modulemd-merge + 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 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/modulemd_merge copying modulemd_merge/__init__.py -> build/lib/modulemd_merge copying modulemd_merge/modulemd_merge.py -> build/lib/modulemd_merge running egg_info creating modulemd_merge.egg-info writing modulemd_merge.egg-info/PKG-INFO writing dependency_links to modulemd_merge.egg-info/dependency_links.txt writing entry points to modulemd_merge.egg-info/entry_points.txt writing top-level names to modulemd_merge.egg-info/top_level.txt writing manifest file 'modulemd_merge.egg-info/SOURCES.txt' reading manifest file 'modulemd_merge.egg-info/SOURCES.txt' writing manifest file 'modulemd_merge.egg-info/SOURCES.txt' + sleep 1 + cd .. + cd modulemd_tools + 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 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/modulemd_tools copying modulemd_tools/yaml.py -> build/lib/modulemd_tools copying modulemd_tools/__init__.py -> build/lib/modulemd_tools running egg_info creating modulemd_tools.egg-info writing modulemd_tools.egg-info/PKG-INFO writing dependency_links to modulemd_tools.egg-info/dependency_links.txt writing top-level names to modulemd_tools.egg-info/top_level.txt writing manifest file 'modulemd_tools.egg-info/SOURCES.txt' reading manifest file 'modulemd_tools.egg-info/SOURCES.txt' writing manifest file 'modulemd_tools.egg-info/SOURCES.txt' + sleep 1 + cd .. + cd bld2repo + 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 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/bld2repo copying bld2repo/cli.py -> build/lib/bld2repo copying bld2repo/utils.py -> build/lib/bld2repo copying bld2repo/__init__.py -> build/lib/bld2repo copying bld2repo/config.py -> build/lib/bld2repo running egg_info creating bld2repo.egg-info writing bld2repo.egg-info/PKG-INFO writing dependency_links to bld2repo.egg-info/dependency_links.txt writing entry points to bld2repo.egg-info/entry_points.txt writing requirements to bld2repo.egg-info/requires.txt writing top-level names to bld2repo.egg-info/top_level.txt writing manifest file 'bld2repo.egg-info/SOURCES.txt' reading manifest file 'bld2repo.egg-info/SOURCES.txt' writing manifest file 'bld2repo.egg-info/SOURCES.txt' + sleep 1 + cd .. + PYTHONPATH=./modulemd_tools:./bld2repo + ./man/generate-manpages.sh Traceback (most recent call last): File "/usr/bin/argparse-manpage", line 33, in sys.exit(load_entry_point('argparse-manpage==4', 'console_scripts', 'argparse-manpage')()) File "/usr/lib/python3.9/site-packages/argparse_manpage/cli.py", line 94, in main parser = get_parser(import_type, import_from, obj_name, obj_type, prog=args.prog) File "/usr/lib/python3.9/site-packages/argparse_manpage/tooling.py", line 65, in get_parser return get_parser_from_file(import_from, objname, objtype, prog=prog) File "/usr/lib/python3.9/site-packages/argparse_manpage/tooling.py", line 52, in get_parser_from_file module_loaded = load_file_as_module(filename) File "/usr/lib/python3.9/site-packages/argparse_manpage/compat.py", line 48, in load_file_as_module return load_py_file(filename) File "/usr/lib64/python3.9/runpy.py", line 268, in run_path return _run_module_code(code, init_globals, run_name, File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "bld2repo/bld2repo/cli.py", line 4, in from bld2repo import (get_buildrequire_pkgs_from_build, add_rpm_urls, rpm_bulk_download, File "/builddir/build/BUILD/modulemd-tools-modulemd-tools-0.13-1/bld2repo/bld2repo/__init__.py", line 6, in import koji ModuleNotFoundError: No module named 'koji' error: Bad exit status from /var/tmp/rpm-tmp.Rs9TE1 (%build) Bad exit status from /var/tmp/rpm-tmp.Rs9TE1 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.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 x86_64 --nodeps /builddir/build/SPECS/modulemd-tools.spec