Mock Version: 5.9 Mock Version: 5.9 Mock Version: 5.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/ansible-packaging.spec'], chrootPath='/var/lib/mock/f42-build-3302767-41426/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=993gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r2kdda1h:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r2kdda1h:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '60f681815e994187b0752a319451c074', '-D', '/var/lib/mock/f42-build-3302767-41426/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r2kdda1h:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1736985600 Wrote: /builddir/build/SRPMS/ansible-packaging-1-17.1.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/ansible-packaging.spec'], chrootPath='/var/lib/mock/f42-build-3302767-41426/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=993gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r2kdda1h:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r2kdda1h:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'fe4b90b3afae4ea8ab826a967235bddd', '-D', '/var/lib/mock/f42-build-3302767-41426/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r2kdda1h:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1736985600 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.vO8QK4 + umask 022 + cd /builddir/build/BUILD/ansible-packaging-1-build + test -d /builddir/build/BUILD/ansible-packaging-1-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/ansible-packaging-1-build + /usr/bin/rm -rf /builddir/build/BUILD/ansible-packaging-1-build + /usr/bin/mkdir -p /builddir/build/BUILD/ansible-packaging-1-build + /usr/bin/mkdir -p /builddir/build/BUILD/ansible-packaging-1-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.n0JnXw + umask 022 + cd /builddir/build/BUILD/ansible-packaging-1-build + cd /builddir/build/BUILD/ansible-packaging-1-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.IDsKfd + umask 022 + cd /builddir/build/BUILD/ansible-packaging-1-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 --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 ansible-packaging-1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vzJCU1 + umask 022 + cd /builddir/build/BUILD/ansible-packaging-1-build + '[' /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT ++ dirname /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT + mkdir -p /builddir/build/BUILD/ansible-packaging-1-build + mkdir /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT + 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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 --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 ansible-packaging-1 + install -Dpm0644 -t /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm/fileattrs ansible.attr + install -Dpm0644 -t /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm/macros.d macros.ansible + install -Dpm0644 -t /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm/macros.d macros.ansible-srpm + install -Dpm0755 -t /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm ansible-generator + install -Dpm0755 -t /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm ansible_collection.py + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /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 -j32 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j32 /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT Scanned 6 directories and 5 files, processed 0 inodes, 0 modified (0 replaced + 0 rewritten), 0 unsupported format, 0 errors Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Pmc3qq + umask 022 + cd /builddir/build/BUILD/ansible-packaging-1-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-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 --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 ansible-packaging-1 + echo 'Ensure macro fails when only collection_namespace macro is defined' 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/BUILD/ansible-packaging-1-build/BUILDROOT/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 "ansible_collection_url"]: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' Ensure macro fails when only collection_name macro is defined + 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 ++ awk -F ': ' '{print $2}' ++ rpm --showrc ++ grep 'Macro path' + 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/BUILD/ansible-packaging-1-build/BUILDROOT/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 "ansible_collection_url"]: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 Ensure macro fails when second argument is missing + 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' ++ 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/BUILD/ansible-packaging-1-build/BUILDROOT/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 "ansible_collection_url"]: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 ++ awk -F ': ' '{print $2}' ++ grep 'Macro path' + 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/BUILD/ansible-packaging-1-build/BUILDROOT/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 "ansible_collection_url"]: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' + echo Ensure macro fails when neither the control macros nor macro arguments are passed + 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/BUILD/ansible-packaging-1-build/BUILDROOT/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 "ansible_collection_url"]: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 +++ awk -F ': ' '{print $2}' +++ grep 'Macro path' ++ 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/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm/macros.d/macros.*' -E '%ansible_collection_url community general' + '[' https://galaxy.ansible.com/ui/repo/published/community/general = https://galaxy.ansible.com/ui/repo/published/community/general ']' + 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/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm/macros.d/macros.*' -D 'collection_namespace ansible' -D 'collection_name posix' -E %ansible_collection_url + '[' https://galaxy.ansible.com/ui/repo/published/ansible/posix = https://galaxy.ansible.com/ui/repo/published/ansible/posix ']' + echo + echo 'Ensure macro prefers the collection namespace and name passed as an argument over the control macros' 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/BUILD/ansible-packaging-1-build/BUILDROOT/usr/lib/rpm/macros.d/macros.*' -D 'collection_namespace ansible' -D 'collection_name posix' -E '%ansible_collection_url community general' + '[' https://galaxy.ansible.com/ui/repo/published/community/general = https://galaxy.ansible.com/ui/repo/published/community/general ']' + RPM_EC=0 ++ jobs -p + exit 0 Processing files: ansible-packaging-1-17.1.fc42.noarch Provides: ansible-packaging = 1-17.1.fc42 rpm_macro(ansible_collection_build) rpm_macro(ansible_collection_filelist) rpm_macro(ansible_collection_files) rpm_macro(ansible_collection_install) rpm_macro(ansible_collections_dir) rpm_macro(ansible_roles_dir) rpm_macro(ansible_test_unit) 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-core < 2.12.1-3 Processing files: ansible-srpm-macros-1-17.1.fc42.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.yhBYcd + umask 022 + cd /builddir/build/BUILD/ansible-packaging-1-build + cd ansible-packaging-1 + LICENSEDIR=/builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/share/licenses/ansible-packaging + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/share/licenses/ansible-packaging + cp -pr /builddir/build/BUILD/ansible-packaging-1-build/ansible-packaging-1/COPYING /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT/usr/share/licenses/ansible-packaging + RPM_EC=0 ++ jobs -p + exit 0 Provides: ansible-srpm-macros = 1-17.1.fc42 rpm_macro(ansible_collection_url) 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-17.1.fc42.noarch Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/ansible-packaging-1-build/BUILDROOT Wrote: /builddir/build/RPMS/ansible-packaging-tests-1-17.1.fc42.noarch.rpm Wrote: /builddir/build/RPMS/ansible-srpm-macros-1-17.1.fc42.noarch.rpm Wrote: /builddir/build/RPMS/ansible-packaging-1-17.1.fc42.noarch.rpm Child return code was: 0