Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 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/f41-build-171-49/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=997gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.4yp96a3n:/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']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.4yp96a3n:/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', '07f527bc519149438187ca4c58bfd3da', '-D', '/var/lib/mock/f41-build-171-49/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.4yp96a3n:/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=1707523200 Wrote: /builddir/build/SRPMS/ansible-packaging-1-15.fc41.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/f41-build-171-49/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=997gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.4yp96a3n:/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']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.4yp96a3n:/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', '309891f8046f48e2af2030c15bb40175', '-D', '/var/lib/mock/f41-build-171-49/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.4yp96a3n:/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=1707523200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FgpMRN + 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 + rm -rf /builddir/build/BUILD/ansible-packaging-1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/ansible-packaging-1-SPECPARTS + /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.7jENTT + 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 -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 -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 -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 -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 --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.K0n9ZV + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch ++ dirname /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.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 -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 -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 -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 -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 --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/lib/rpm/fileattrs ansible.attr + install -Dpm0644 -t /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/lib/rpm/macros.d macros.ansible + install -Dpm0644 -t /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/lib/rpm/macros.d macros.ansible-srpm + install -Dpm0755 -t /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/lib/rpm ansible-generator + install -Dpm0755 -t /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/lib/rpm ansible_collection.py + /usr/bin/find-debuginfo -j64 --strict-build-id -m -i --build-id-seed 1-15.fc41 --unique-debug-suffix -1-15.fc41.noarch --unique-debug-src-base ansible-packaging-1-15.fc41.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/ansible-packaging-1 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 -j64 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.7CCXum + 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 -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 -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 -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 -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS Ensure macro fails when only collection_namespace macro is defined + 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-errors -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' + 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-15.fc41.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 "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 ++ 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-15.fc41.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 "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' Ensure macro fails when second argument is missing + 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' ++ 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-15.fc41.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 "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 ++ 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-15.fc41.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 "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' 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-15.fc41.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 "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' + echo + echo + echo 'Ensure macro works when both arguments are passed and no control macros are set' 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-15.fc41.noarch/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/BUILDROOT/ansible-packaging-1-15.fc41.noarch/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 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-15.fc41.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/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-15.fc41.noarch Provides: ansible-packaging = 1-15.fc41 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-15.fc41.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.7uA96f + umask 022 + cd /builddir/build/BUILD + cd ansible-packaging-1 + LICENSEDIR=/builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/share/licenses/ansible-packaging + export LC_ALL= + LC_ALL= + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/share/licenses/ansible-packaging + cp -pr /builddir/build/BUILD/ansible-packaging-1/COPYING /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch/usr/share/licenses/ansible-packaging + RPM_EC=0 ++ jobs -p + exit 0 Provides: ansible-srpm-macros = 1-15.fc41 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-15.fc41.noarch Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ansible-packaging-1-15.fc41.noarch Wrote: /builddir/build/RPMS/ansible-packaging-tests-1-15.fc41.noarch.rpm Wrote: /builddir/build/RPMS/ansible-packaging-1-15.fc41.noarch.rpm Wrote: /builddir/build/RPMS/ansible-srpm-macros-1-15.fc41.noarch.rpm Child return code was: 0