Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rust-packaging.spec'], chrootPath='/var/lib/mock/dist-an23-build-python3.11-374186-71609/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=86400uid=982gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vqas1j61:/etc/resolv.conf', '--bind=/dev/mapper/control', '--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.vqas1j61:/etc/resolv.conf', '--bind=/dev/mapper/control', '--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', '0bf5e32e542d43bd8a42c086dc84c392', '-D', '/var/lib/mock/dist-an23-build-python3.11-374186-71609/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vqas1j61:/etc/resolv.conf', '--bind=/dev/mapper/control', '--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', '--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/rust-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=1712880000 Wrote: /builddir/build/SRPMS/rust-packaging-25.0-1.an23.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/rust-packaging.spec'], chrootPath='/var/lib/mock/dist-an23-build-python3.11-374186-71609/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=86400uid=982gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vqas1j61:/etc/resolv.conf', '--bind=/dev/mapper/control', '--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.vqas1j61:/etc/resolv.conf', '--bind=/dev/mapper/control', '--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', '5ff0e11ed1ed42e7bfe2025a14432eb7', '-D', '/var/lib/mock/dist-an23-build-python3.11-374186-71609/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vqas1j61:/etc/resolv.conf', '--bind=/dev/mapper/control', '--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', '--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/rust-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=1712880000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rsRnrW + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rust-packaging-25.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust-packaging-25.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd rust-packaging-25.0 + /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.0imENd + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 rust-packaging-25.0 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.sxHFEa + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch ++ dirname /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 rust-packaging-25.0 + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch//usr/lib/rpm/macros.d macros.d/macros.cargo + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch//usr/lib/rpm/macros.d macros.d/macros.rust + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch//usr/lib/rpm/macros.d macros.d/macros.rust-srpm + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch//usr/lib/rpm/fileattrs fileattrs/cargo.attr + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch//usr/lib/rpm/fileattrs fileattrs/cargo_vendor.attr + /usr/bin/find-debuginfo -j80 --strict-build-id -m -i --build-id-seed 25.0-1.an23 --unique-debug-suffix -25.0-1.an23.noarch --unique-debug-src-base rust-packaging-25.0-1.an23.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rust-packaging-25.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/anolis/clean_perl + /usr/lib/rpm/anolis/check_elf_files + /usr/lib/rpm/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/anolis/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.asOBHk + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 rust-packaging-25.0 + export MACRO_DIR=/builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch/usr/lib/rpm/macros.d + MACRO_DIR=/builddir/build/BUILDROOT/rust-packaging-25.0-1.an23.noarch/usr/lib/rpm/macros.d + pytest -vv ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/rust-packaging-25.0 collecting ... collected 56 items tests/test_macros_cargo.py::test_cargo PASSED [ 1%] tests/test_macros_cargo.py::test_cargo_to_rpm PASSED [ 3%] tests/test_macros_cargo.py::test_cargo_registry PASSED [ 5%] tests/test_macros_cargo.py::test_crate_instdir[{'crate': 'chrono', 'version': '0.4.20~rc.1'}-'/usr/share/cargo/registry/chrono-0.4.20-rc.1'] PASSED [ 7%] tests/test_macros_cargo.py::test_crate_instdir[{'crate': 'chrono', 'version': '0.4.20~rc.1', 'crate_version': '0.4.20-rc.1'}-'/usr/share/cargo/registry/chrono-0.4.20-rc.1'] PASSED [ 8%] tests/test_macros_cargo.py::test_crate_instdir[{'crate': 'tokio', 'version': '1.32.0'}-'/usr/share/cargo/registry/tokio-1.32.0'] PASSED [ 10%] tests/test_macros_cargo.py::test_cargo_is_lib PASSED [ 12%] tests/test_macros_cargo.py::test_cargo_is_bin PASSED [ 14%] tests/test_macros_cargo.py::test_cargo_prep FAILED [ 16%] tests/test_macros_cargo.py::test_cargo_prep_vendor FAILED [ 17%] tests/test_macros_cargo.py::test_cargo_prep_no_replacement FAILED [ 19%] tests/test_macros_cargo.py::test_cargo_parse_opts PASSED [ 21%] tests/test_macros_cargo.py::test_cargo_parse_opts_n PASSED [ 23%] tests/test_macros_cargo.py::test_cargo_parse_opts_a PASSED [ 25%] tests/test_macros_cargo.py::test_cargo_parse_opts_f PASSED [ 26%] tests/test_macros_cargo.py::test_cargo_parse_opts_an PASSED [ 28%] tests/test_macros_cargo.py::test_cargo_parse_opts_af PASSED [ 30%] tests/test_macros_cargo.py::test_cargo_parse_opts_nf PASSED [ 32%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires[''-''] PASSED [ 33%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-t'-' --with-check'] PASSED [ 35%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-a'-' --all-features'] PASSED [ 37%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-n'-' --no-default-features'] PASSED [ 39%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-f foo,bar -t'-' --features foo,bar --with-check'] PASSED [ 41%] tests/test_macros_cargo.py::test_cargo_build PASSED [ 42%] tests/test_macros_cargo.py::test_cargo_test PASSED [ 44%] tests/test_macros_cargo.py::test_cargo_test_with_args PASSED [ 46%] tests/test_macros_cargo.py::test_cargo_install PASSED [ 48%] tests/test_macros_cargo.py::test_cargo_license PASSED [ 50%] tests/test_macros_cargo.py::test_cargo_license_summary PASSED [ 51%] tests/test_macros_cargo.py::test_cargo_vendor_manifest PASSED [ 53%] tests/test_macros_rust.py::test_rustc PASSED [ 55%] tests/test_macros_rust.py::test_rustdoc PASSED [ 57%] tests/test_macros_rust.py::test_rustflags_opt_level PASSED [ 58%] tests/test_macros_rust.py::test_rustflags_debuginfo PASSED [ 60%] tests/test_macros_rust.py::test_rustflags_codegen_units PASSED [ 62%] tests/test_macros_rust.py::test_build_rustflags PASSED [ 64%] tests/test_macros_rust_srpm.py::test_rust_arches PASSED [ 66%] tests/test_macros_rust_srpm.py::test_version_no_tilde['1.0.0'-'1.0.0'] PASSED [ 67%] tests/test_macros_rust_srpm.py::test_version_no_tilde['0.1.2'-'0.1.2'] PASSED [ 69%] tests/test_macros_rust_srpm.py::test_version_no_tilde['0.0.1'-'0.0.1'] PASSED [ 71%] tests/test_macros_rust_srpm.py::test_version_no_tilde['0.0.1~alpha.0'-'0.0.1-alpha.0'] PASSED [ 73%] tests/test_macros_rust_srpm.py::test_version_no_tilde['0.1.0~beta.1'-'0.1.0-beta.1'] PASSED [ 75%] tests/test_macros_rust_srpm.py::test_version_no_tilde['1.0.0~rc.2'-'1.0.0-rc.2'] PASSED [ 76%] tests/test_macros_rust_srpm.py::test_version_no_tilde_python['1.0.0'-'1.0.0'] PASSED [ 78%] tests/test_macros_rust_srpm.py::test_version_no_tilde_python['0.1.2'-'0.1.2'] PASSED [ 80%] tests/test_macros_rust_srpm.py::test_version_no_tilde_python['0.0.1'-'0.0.1'] PASSED [ 82%] tests/test_macros_rust_srpm.py::test_version_no_tilde_python['0.0.1~a0'-'0.0.1a0'] PASSED [ 83%] tests/test_macros_rust_srpm.py::test_version_no_tilde_python['0.1.0~b1'-'0.1.0b1'] PASSED [ 85%] tests/test_macros_rust_srpm.py::test_version_no_tilde_python['1.0.0~rc2'-'1.0.0rc2'] PASSED [ 87%] tests/test_macros_rust_srpm.py::test_crates_url PASSED [ 89%] tests/test_macros_rust_srpm.py::test_crates_source['tokio'-'1.32.0'-'https://crates.io/api/v1/crates/tokio/1.32.0/download#/tokio-1.32.0.crate'] PASSED [ 91%] tests/test_macros_rust_srpm.py::test_crates_source['chrono'-'0.4.20-rc.1'-'https://crates.io/api/v1/crates/chrono/0.4.20-rc.1/download#/chrono-0.4.20-rc.1.crate'] PASSED [ 92%] tests/test_macros_rust_srpm.py::test_crates_source['chrono'-'0.4.20~rc.1'-'https://crates.io/api/v1/crates/chrono/0.4.20-rc.1/download#/chrono-0.4.20-rc.1.crate'] PASSED [ 94%] tests/test_macros_rust_srpm.py::test_crates_source['value-bag'-'1.0.0-alpha.9'-'https://crates.io/api/v1/crates/value-bag/1.0.0-alpha.9/download#/value-bag-1.0.0-alpha.9.crate'] PASSED [ 96%] tests/test_macros_rust_srpm.py::test_crates_source['value-bag'-'1.0.0~alpha.9'-'https://crates.io/api/v1/crates/value-bag/1.0.0-alpha.9/download#/value-bag-1.0.0-alpha.9.crate'] PASSED [ 98%] tests/test_macros_rust_srpm.py::test_skip_build PASSED [100%] =================================== FAILURES =================================== _______________________________ test_cargo_prep ________________________________ evaluater = .runner at 0xffff8818a020> def test_cargo_prep(evaluater): build_cflags = evaluater("%build_cflags")[0] build_cxxflags = evaluater("%build_cxxflags")[0] build_ldflags = evaluater("%build_ldflags")[0] buildroot = evaluater("%buildroot")[0] prefix = evaluater("%_prefix")[0] cargo_registry = evaluater("%cargo_registry")[0] rustflags_opt_level = evaluater("%rustflags_opt_level")[0] rustflags_codegen_units = evaluater("%rustflags_codegen_units")[0] rustflags_debuginfo = evaluater("%rustflags_debuginfo")[0] > assert evaluater("%cargo_prep")[0].splitlines() == [ "(", "set -euo pipefail", "/usr/bin/mkdir -p target/rpm", "/usr/bin/ln -s rpm target/release", "/usr/bin/rm -rf .cargo/", "/usr/bin/mkdir -p .cargo", "cat > .cargo/config << EOF", "[build]", 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', "", "[profile.rpm]", 'inherits = "release"', f"opt-level = {rustflags_opt_level}", f"codegen-units = {rustflags_codegen_units}", f"debug = {rustflags_debuginfo}", 'strip = "none"', "", "[env]", f'CFLAGS = "{build_cflags} "', f'CXXFLAGS = "{build_cxxflags} "', f'LDFLAGS = "{build_ldflags} "', "", "[install]", f'root = "{buildroot}{prefix}"', "", "[term]", "verbose = true", "EOF", "", "", "cat >> .cargo/config << EOF", "[source.local-registry]", f'directory = "{cargo_registry}"', "", "[source.crates-io]", 'registry = "https://crates.io"', 'replace-with = "local-registry"', "EOF", "/usr/bin/rm -f Cargo.lock", "", "", "/usr/bin/rm -f Cargo.toml.orig", ")", ] E assert ['(', 'set -euo pipefail', '/usr/bin/mkdir -p target/rpm', '%{__ln} -s rpm target/release', '/usr/bin/rm -rf .cargo/', '/usr/bin/mkdir -p .cargo', 'cat > .cargo/config << EOF', '[build]', 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', '', '[profile.rpm]', 'inherits = "release"', 'opt-level = 3', 'codegen-units = 1', 'debug = 2', 'strip = "none"', '', '[env]', 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection"', 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection"', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', '', '[term]', 'verbose = true', 'EOF', '', '', 'cat >> .cargo/config << EOF', '[source.local-registry]', 'directory = "/usr/share/cargo/registry"', '', '[source.crates-io]', 'registry = "https://crates.io"', 'replace-with = "local-registry"', 'EOF', '/usr/bin/rm -f Cargo.lock', '', '', '/usr/bin/rm -f Cargo.toml.orig', ')'] == ['(', 'set -euo pipefail', '/usr/bin/mkdir -p target/rpm', '/usr/bin/ln -s rpm target/release', '/usr/bin/rm -rf .cargo/', '/usr/bin/mkdir -p .cargo', 'cat > .cargo/config << EOF', '[build]', 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', '', '[profile.rpm]', 'inherits = "release"', 'opt-level = 3', 'codegen-units = 1', 'debug = 2', 'strip = "none"', '', '[env]', 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection "', 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', '', '[term]', 'verbose = true', 'EOF', '', '', 'cat >> .cargo/config << EOF', '[source.local-registry]', 'directory = "/usr/share/cargo/registry"', '', '[source.crates-io]', 'registry = "https://crates.io"', 'replace-with = "local-registry"', 'EOF', '/usr/bin/rm -f Cargo.lock', '', '', '/usr/bin/rm -f Cargo.toml.orig', ')'] E At index 3 diff: '%{__ln} -s rpm target/release' != '/usr/bin/ln -s rpm target/release' E Full diff: E [ E '(', E 'set -euo pipefail', E '/usr/bin/mkdir -p target/rpm', E - '/usr/bin/ln -s rpm target/release', E ? ^^^^^^^^^ E + '%{__ln} -s rpm target/release', E ? ^^^^ + E '/usr/bin/rm -rf .cargo/', E '/usr/bin/mkdir -p .cargo', E 'cat > .cargo/config << EOF', E '[build]', E 'rustc = "/usr/bin/rustc"', E 'rustdoc = "/usr/bin/rustdoc"', E '', E '[profile.rpm]', E 'inherits = "release"', E 'opt-level = 3', E 'codegen-units = 1', E 'debug = 2', E 'strip = "none"', E '', E '[env]', E 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard ' E - '-fasynchronous-unwind-tables -fstack-clash-protection "', E ? - E + '-fasynchronous-unwind-tables -fstack-clash-protection"', E 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard ' E - '-fasynchronous-unwind-tables -fstack-clash-protection "', E ? - E + '-fasynchronous-unwind-tables -fstack-clash-protection"', E 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-ld ' E - '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', E ? - E + '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', E '', E '[install]', E 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', E '', E '[term]', E 'verbose = true', E 'EOF', E '', E '', E 'cat >> .cargo/config << EOF', E '[source.local-registry]', E 'directory = "/usr/share/cargo/registry"', E '', E '[source.crates-io]', E 'registry = "https://crates.io"', E 'replace-with = "local-registry"', E 'EOF', E '/usr/bin/rm -f Cargo.lock', E '', E '', E '/usr/bin/rm -f Cargo.toml.orig', E ')', E ] tests/test_macros_cargo.py:58: AssertionError ____________________________ test_cargo_prep_vendor ____________________________ evaluater = .runner at 0xffff8818aa20> def test_cargo_prep_vendor(evaluater): build_cflags = evaluater("%build_cflags")[0] build_cxxflags = evaluater("%build_cxxflags")[0] build_ldflags = evaluater("%build_ldflags")[0] buildroot = evaluater("%buildroot")[0] prefix = evaluater("%_prefix")[0] rustflags_opt_level = evaluater("%rustflags_opt_level")[0] rustflags_codegen_units = evaluater("%rustflags_codegen_units")[0] rustflags_debuginfo = evaluater("%rustflags_debuginfo")[0] > assert evaluater("%cargo_prep -v vendor")[0].splitlines() == [ "(", "set -euo pipefail", "/usr/bin/mkdir -p target/rpm", "/usr/bin/ln -s rpm target/release", "/usr/bin/rm -rf .cargo/", "/usr/bin/mkdir -p .cargo", "cat > .cargo/config << EOF", "[build]", 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', "", "[profile.rpm]", 'inherits = "release"', f"opt-level = {rustflags_opt_level}", f"codegen-units = {rustflags_codegen_units}", f"debug = {rustflags_debuginfo}", 'strip = "none"', "", "[env]", f'CFLAGS = "{build_cflags} "', f'CXXFLAGS = "{build_cxxflags} "', f'LDFLAGS = "{build_ldflags} "', "", "[install]", f'root = "{buildroot}{prefix}"', "", "[term]", "verbose = true", "EOF", "", "", "", "cat >> .cargo/config << EOF", "[source.vendored-sources]", f'directory = "vendor"', "", "[source.crates-io]", 'registry = "https://crates.io"', 'replace-with = "vendored-sources"', "EOF", "/usr/bin/rm -f Cargo.toml.orig", ")", ] E assert ['(', 'set -euo pipefail', '/usr/bin/mkdir -p target/rpm', '%{__ln} -s rpm target/release', '/usr/bin/rm -rf .cargo/', '/usr/bin/mkdir -p .cargo', 'cat > .cargo/config << EOF', '[build]', 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', '', '[profile.rpm]', 'inherits = "release"', 'opt-level = 3', 'codegen-units = 1', 'debug = 2', 'strip = "none"', '', '[env]', 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection"', 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection"', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', '', '[term]', 'verbose = true', 'EOF', '', '', '', 'cat >> .cargo/config << EOF', '[source.vendored-sources]', 'directory = "vendor"', '', '[source.crates-io]', 'registry = "https://crates.io"', 'replace-with = "vendored-sources"', 'EOF', '/usr/bin/rm -f Cargo.toml.orig', ')'] == ['(', 'set -euo pipefail', '/usr/bin/mkdir -p target/rpm', '/usr/bin/ln -s rpm target/release', '/usr/bin/rm -rf .cargo/', '/usr/bin/mkdir -p .cargo', 'cat > .cargo/config << EOF', '[build]', 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', '', '[profile.rpm]', 'inherits = "release"', 'opt-level = 3', 'codegen-units = 1', 'debug = 2', 'strip = "none"', '', '[env]', 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection "', 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', '', '[term]', 'verbose = true', 'EOF', '', '', '', 'cat >> .cargo/config << EOF', '[source.vendored-sources]', 'directory = "vendor"', '', '[source.crates-io]', 'registry = "https://crates.io"', 'replace-with = "vendored-sources"', 'EOF', '/usr/bin/rm -f Cargo.toml.orig', ')'] E At index 3 diff: '%{__ln} -s rpm target/release' != '/usr/bin/ln -s rpm target/release' E Full diff: E [ E '(', E 'set -euo pipefail', E '/usr/bin/mkdir -p target/rpm', E - '/usr/bin/ln -s rpm target/release', E ? ^^^^^^^^^ E + '%{__ln} -s rpm target/release', E ? ^^^^ + E '/usr/bin/rm -rf .cargo/', E '/usr/bin/mkdir -p .cargo', E 'cat > .cargo/config << EOF', E '[build]', E 'rustc = "/usr/bin/rustc"', E 'rustdoc = "/usr/bin/rustdoc"', E '', E '[profile.rpm]', E 'inherits = "release"', E 'opt-level = 3', E 'codegen-units = 1', E 'debug = 2', E 'strip = "none"', E '', E '[env]', E 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard ' E - '-fasynchronous-unwind-tables -fstack-clash-protection "', E ? - E + '-fasynchronous-unwind-tables -fstack-clash-protection"', E 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard ' E - '-fasynchronous-unwind-tables -fstack-clash-protection "', E ? - E + '-fasynchronous-unwind-tables -fstack-clash-protection"', E 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-ld ' E - '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', E ? - E + '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', E '', E '[install]', E 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', E '', E '[term]', E 'verbose = true', E 'EOF', E '', E '', E '', E 'cat >> .cargo/config << EOF', E '[source.vendored-sources]', E 'directory = "vendor"', E '', E '[source.crates-io]', E 'registry = "https://crates.io"', E 'replace-with = "vendored-sources"', E 'EOF', E '/usr/bin/rm -f Cargo.toml.orig', E ')', E ] tests/test_macros_cargo.py:116: AssertionError ________________________ test_cargo_prep_no_replacement ________________________ evaluater = .runner at 0xffff8818ad40> def test_cargo_prep_no_replacement(evaluater): build_cflags = evaluater("%build_cflags")[0] build_cxxflags = evaluater("%build_cxxflags")[0] build_ldflags = evaluater("%build_ldflags")[0] buildroot = evaluater("%buildroot")[0] prefix = evaluater("%_prefix")[0] rustflags_opt_level = evaluater("%rustflags_opt_level")[0] rustflags_codegen_units = evaluater("%rustflags_codegen_units")[0] rustflags_debuginfo = evaluater("%rustflags_debuginfo")[0] > assert evaluater("%cargo_prep -N")[0].splitlines() == [ "(", "set -euo pipefail", "/usr/bin/mkdir -p target/rpm", "/usr/bin/ln -s rpm target/release", "/usr/bin/rm -rf .cargo/", "/usr/bin/mkdir -p .cargo", "cat > .cargo/config << EOF", "[build]", 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', "", "[profile.rpm]", 'inherits = "release"', f"opt-level = {rustflags_opt_level}", f"codegen-units = {rustflags_codegen_units}", f"debug = {rustflags_debuginfo}", 'strip = "none"', "", "[env]", f'CFLAGS = "{build_cflags} "', f'CXXFLAGS = "{build_cxxflags} "', f'LDFLAGS = "{build_ldflags} "', "", "[install]", f'root = "{buildroot}{prefix}"', "", "[term]", "verbose = true", "EOF", "", "/usr/bin/rm -f Cargo.toml.orig", ")", ] E assert ['(', 'set -euo pipefail', '/usr/bin/mkdir -p target/rpm', '%{__ln} -s rpm target/release', '/usr/bin/rm -rf .cargo/', '/usr/bin/mkdir -p .cargo', 'cat > .cargo/config << EOF', '[build]', 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', '', '[profile.rpm]', 'inherits = "release"', 'opt-level = 3', 'codegen-units = 1', 'debug = 2', 'strip = "none"', '', '[env]', 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection"', 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection"', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', '', '[term]', 'verbose = true', 'EOF', '', '/usr/bin/rm -f Cargo.toml.orig', ')'] == ['(', 'set -euo pipefail', '/usr/bin/mkdir -p target/rpm', '/usr/bin/ln -s rpm target/release', '/usr/bin/rm -rf .cargo/', '/usr/bin/mkdir -p .cargo', 'cat > .cargo/config << EOF', '[build]', 'rustc = "/usr/bin/rustc"', 'rustdoc = "/usr/bin/rustdoc"', '', '[profile.rpm]', 'inherits = "release"', 'opt-level = 3', 'codegen-units = 1', 'debug = 2', 'strip = "none"', '', '[env]', 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection "', 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', '', '[term]', 'verbose = true', 'EOF', '', '/usr/bin/rm -f Cargo.toml.orig', ')'] E At index 3 diff: '%{__ln} -s rpm target/release' != '/usr/bin/ln -s rpm target/release' E Full diff: E [ E '(', E 'set -euo pipefail', E '/usr/bin/mkdir -p target/rpm', E - '/usr/bin/ln -s rpm target/release', E ? ^^^^^^^^^ E + '%{__ln} -s rpm target/release', E ? ^^^^ + E '/usr/bin/rm -rf .cargo/', E '/usr/bin/mkdir -p .cargo', E 'cat > .cargo/config << EOF', E '[build]', E 'rustc = "/usr/bin/rustc"', E 'rustdoc = "/usr/bin/rustdoc"', E '', E '[profile.rpm]', E 'inherits = "release"', E 'opt-level = 3', E 'codegen-units = 1', E 'debug = 2', E 'strip = "none"', E '', E '[env]', E 'CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard ' E - '-fasynchronous-unwind-tables -fstack-clash-protection "', E ? - E + '-fasynchronous-unwind-tables -fstack-clash-protection"', E 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard ' E - '-fasynchronous-unwind-tables -fstack-clash-protection "', E ? - E + '-fasynchronous-unwind-tables -fstack-clash-protection"', E 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now ' E '-specs=/usr/lib/rpm/anolis/anolis-hardened-ld ' E - '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', E ? - E + '-specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 "', E '', E '[install]', E 'root = "/builddir/build/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.aarch64/usr"', E '', E '[term]', E 'verbose = true', E 'EOF', E '', E '/usr/bin/rm -f Cargo.toml.orig', E ')', E ] tests/test_macros_cargo.py:172: AssertionError =========================== short test summary info ============================ FAILED tests/test_macros_cargo.py::test_cargo_prep - assert ['(', 'set -euo p... FAILED tests/test_macros_cargo.py::test_cargo_prep_vendor - assert ['(', 'set... FAILED tests/test_macros_cargo.py::test_cargo_prep_no_replacement - assert ['... ========================= 3 failed, 53 passed in 0.60s ========================= error: Bad exit status from /var/tmp/rpm-tmp.asOBHk (%check) Bad exit status from /var/tmp/rpm-tmp.asOBHk (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 5ff0e11ed1ed42e7bfe2025a14432eb7 -D /var/lib/mock/dist-an23-build-python3.11-374186-71609/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.vqas1j61:/etc/resolv.conf --bind=/dev/mapper/control --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 --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/rust-packaging.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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: # /usr/bin/systemd-nspawn -q -M 5ff0e11ed1ed42e7bfe2025a14432eb7 -D /var/lib/mock/dist-an23-build-python3.11-374186-71609/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.vqas1j61:/etc/resolv.conf --bind=/dev/mapper/control --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 --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/rust-packaging.spec