Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/ansible-packaging.spec'], chrootPath='/var/lib/mock/cloud9s-openstack-antelope-el9s-build-169997-1028860/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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/ansible-packaging.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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1678233600 Wrote: /builddir/build/SRPMS/ansible-packaging-1-9.1.1.el9s.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/ansible-packaging.spec'], chrootPath='/var/lib/mock/cloud9s-openstack-antelope-el9s-build-169997-1028860/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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/ansible-packaging.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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1678233600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Mzy4jo + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ansible-packaging-1 + /usr/bin/mkdir -p ansible-packaging-1 + cd ansible-packaging-1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -a /builddir/build/SOURCES/ansible-generator /builddir/build/SOURCES/ansible.attr /builddir/build/SOURCES/macros.ansible /builddir/build/SOURCES/macros.ansible-srpm /builddir/build/SOURCES/ansible_collection.py /builddir/build/SOURCES/COPYING . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Vo8aPm + umask 022 + cd /builddir/build/BUILD + cd ansible-packaging-1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.sxbIGp + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch ++ dirname /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch + cd ansible-packaging-1 + install -Dpm0644 -t /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/fileattrs ansible.attr + install -Dpm0644 -t /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d macros.ansible + install -Dpm0644 -t /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d macros.ansible-srpm + install -Dpm0755 -t /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm ansible-generator + install -Dpm0755 -t /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm ansible_collection.py + /usr/lib/rpm/find-debuginfo.sh -j40 --strict-build-id -m -i --build-id-seed 1-9.1.1.el9s --unique-debug-suffix -1-9.1.1.el9s.noarch --unique-debug-src-base ansible-packaging-1-9.1.1.el9s.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/ansible-packaging-1 find: 'debug': No such file or directory + /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/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.KfkMQr + umask 022 + cd /builddir/build/BUILD + cd ansible-packaging-1 Ensure macro fails when only collection_namespace macro is defined + echo 'Ensure macro fails when only collection_namespace macro is defined' + errors rpm_eval -D 'collection_namespace cc' -E %ansible_collection_url + error='error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' + rpm_eval -D 'collection_namespace cc' -E %ansible_collection_url ++ rpm --showrc ++ grep 'Macro path' ++ awk -F ': ' '{print $2}' + default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' + rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -D 'collection_namespace cc' -E %ansible_collection_url error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second error: lua script failed: [string ""]:11: error expanding macro + rpm_eval -D 'collection_namespace cc' -E %ansible_collection_url + grep -q 'error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' + echo + echo 'Ensure macro fails when only collection_name macro is defined' + errors rpm_eval -D 'collection_name cc' -E %ansible_collection_url + error='error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' + rpm_eval -D 'collection_name cc' -E %ansible_collection_url Ensure macro fails when only collection_name macro is defined ++ rpm --showrc ++ grep 'Macro path' ++ awk -F ': ' '{print $2}' + default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' + rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -D 'collection_name cc' -E %ansible_collection_url error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second error: lua script failed: [string ""]:11: error expanding macro + rpm_eval -D 'collection_name cc' -E %ansible_collection_url + grep -q 'error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' + echo + echo 'Ensure macro fails when second argument is missing' + errors rpm_eval -E '%ansible_collection_url a' + error='error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' + rpm_eval -E '%ansible_collection_url a' Ensure macro fails when second argument is missing ++ rpm --showrc ++ grep 'Macro path' ++ awk -F ': ' '{print $2}' + default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' + rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -E '%ansible_collection_url a' error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second error: lua script failed: [string ""]:11: error expanding macro + rpm_eval -E '%ansible_collection_url a' + grep -q 'error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' Ensure macro fails when second argument is missing + echo + echo 'Ensure macro fails when second argument is missing' + errors rpm_eval -D 'collection_name b' -E '%ansible_collection_url a' + error='error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' + rpm_eval -D 'collection_name b' -E '%ansible_collection_url a' ++ rpm --showrc ++ grep 'Macro path' ++ awk -F ': ' '{print $2}' + default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' + rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -D 'collection_name b' -E '%ansible_collection_url a' error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second error: lua script failed: [string ""]:11: error expanding macro + rpm_eval -D 'collection_name b' -E '%ansible_collection_url a' + grep -q 'error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' Ensure macro fails when neither the control macros nor macro arguments are passed + echo + echo 'Ensure macro fails when neither the control macros nor macro arguments are passed' + errors rpm_eval -E %ansible_collection_url + error='error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' + rpm_eval -E %ansible_collection_url ++ rpm --showrc ++ grep 'Macro path' ++ awk -F ': ' '{print $2}' + default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' + rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -E %ansible_collection_url error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second error: lua script failed: [string ""]:11: error expanding macro + rpm_eval -E %ansible_collection_url + grep -q 'error: %ansible_collection_url: You must pass the collection namespace as the first arg and the collection name as the second' Ensure macro works when both arguments are passed and no control macros are set + echo + echo + echo 'Ensure macro works when both arguments are passed and no control macros are set' ++ rpm_eval -E '%ansible_collection_url community general' +++ rpm --showrc +++ grep 'Macro path' +++ awk -F ': ' '{print $2}' ++ default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' ++ rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -E '%ansible_collection_url community general' + [[ https://galaxy.ansible.com/community/general == \h\t\t\p\s\:\/\/\g\a\l\a\x\y\.\a\n\s\i\b\l\e\.\c\o\m\/\c\o\m\m\u\n\i\t\y\/\g\e\n\e\r\a\l ]] + echo Ensure macro works with the control macros + echo 'Ensure macro works with the control macros' ++ rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' -E %ansible_collection_url +++ rpm --showrc +++ grep 'Macro path' +++ awk -F ': ' '{print $2}' ++ default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' ++ rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -D 'collection_namespace ansible' -D 'collection_name posix' -E %ansible_collection_url + [[ https://galaxy.ansible.com/ansible/posix == \h\t\t\p\s\:\/\/\g\a\l\a\x\y\.\a\n\s\i\b\l\e\.\c\o\m\/\a\n\s\i\b\l\e\/\p\o\s\i\x ]] + echo Ensure macro prefers the collection namespace and name passed as an argument over the control macros + echo 'Ensure macro prefers the collection namespace and name passed as an argument over the control macros' ++ rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' -E '%ansible_collection_url community general' +++ rpm --showrc +++ grep 'Macro path' +++ awk -F ': ' '{print $2}' ++ default_macros_path='/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros' ++ rpm '--macros=/usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/lib/rpm/macros.d/macros.*' -D 'collection_namespace ansible' -D 'collection_name posix' -E '%ansible_collection_url community general' + [[ https://galaxy.ansible.com/community/general == \h\t\t\p\s\:\/\/\g\a\l\a\x\y\.\a\n\s\i\b\l\e\.\c\o\m\/\c\o\m\m\u\n\i\t\y\/\g\e\n\e\r\a\l ]] + RPM_EC=0 ++ jobs -p + exit 0 Processing files: ansible-packaging-1-9.1.1.el9s.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.ePKMts + umask 022 + cd /builddir/build/BUILD + cd ansible-packaging-1 + LICENSEDIR=/builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/share/licenses/ansible-packaging + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/share/licenses/ansible-packaging + cp -pr COPYING /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch/usr/share/licenses/ansible-packaging + RPM_EC=0 ++ jobs -p + exit 0 Provides: ansible-packaging = 1-9.1.1.el9s Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 Conflicts: ansible < 2.9.27-3 ansible-macros Processing files: ansible-srpm-macros-1-9.1.1.el9s.noarch Provides: ansible-srpm-macros = 1-9.1.1.el9s Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: ansible-packaging-tests-1-9.1.1.el9s.noarch Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch Wrote: /builddir/build/RPMS/ansible-srpm-macros-1-9.1.1.el9s.noarch.rpm Wrote: /builddir/build/RPMS/ansible-packaging-tests-1-9.1.1.el9s.noarch.rpm Wrote: /builddir/build/RPMS/ansible-packaging-1-9.1.1.el9s.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.eSWkJ4 + umask 022 + cd /builddir/build/BUILD + cd ansible-packaging-1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/ansible-packaging-1-9.1.1.el9s.noarch + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0