Mock Version: 5.6 Mock Version: 5.6 Mock Version: 5.6 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/f41-build-51727136-6195161/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=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.xxe14nab:/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.xxe14nab:/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', 'd486742a05f342b6aef1263b778f81d4', '-D', '/var/lib/mock/f41-build-51727136-6195161/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.xxe14nab:/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/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=1715904000 Wrote: /builddir/build/SRPMS/rust-packaging-26.3-1.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/rust-packaging.spec'], chrootPath='/var/lib/mock/f41-build-51727136-6195161/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=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.xxe14nab:/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.xxe14nab:/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', 'f4c3be0315644e88a701c239d028c0a9', '-D', '/var/lib/mock/f41-build-51727136-6195161/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.xxe14nab:/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/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=1715904000 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.xdTCyW + umask 022 + cd /builddir/build/BUILD/rust-packaging-26.3-build + test -d /builddir/build/BUILD/rust-packaging-26.3-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/rust-packaging-26.3-build + /usr/bin/rm -rf /builddir/build/BUILD/rust-packaging-26.3-build + /usr/bin/mkdir -p /builddir/build/BUILD/rust-packaging-26.3-build + /usr/bin/mkdir -p /builddir/build/BUILD/rust-packaging-26.3-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Vd1yZO + umask 022 + cd /builddir/build/BUILD/rust-packaging-26.3-build + cd /builddir/build/BUILD/rust-packaging-26.3-build + rm -rf rust-packaging-26.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust-packaging-26.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd rust-packaging-26.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Temporarily-accept-cargo_prep-V-flag-for-spec-compat.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.i5W6Vj + umask 022 + cd /builddir/build/BUILD/rust-packaging-26.3-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 rust-packaging-26.3 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EaTXEm + umask 022 + cd /builddir/build/BUILD/rust-packaging-26.3-build + '[' /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT ++ dirname /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT + mkdir -p /builddir/build/BUILD/rust-packaging-26.3-build + mkdir /builddir/build/BUILD/rust-packaging-26.3-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 rust-packaging-26.3 + install -D -p -m 0644 -t /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT//usr/lib/rpm/macros.d macros.d/macros.cargo + install -D -p -m 0644 -t /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT//usr/lib/rpm/macros.d macros.d/macros.rust + install -D -p -m 0644 -t /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT//usr/lib/rpm/macros.d macros.d/macros.rust-srpm + install -D -p -m 0644 -t /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT//usr/lib/rpm/fileattrs fileattrs/cargo.attr + install -D -p -m 0644 -t /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT//usr/lib/rpm/fileattrs fileattrs/cargo_vendor.attr + /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 -j12 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j12 /builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT Processed 0 paths Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ociouN + umask 022 + cd /builddir/build/BUILD/rust-packaging-26.3-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 rust-packaging-26.3 + export MACRO_DIR=/builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT/usr/lib/rpm/macros.d + MACRO_DIR=/builddir/build/BUILD/rust-packaging-26.3-build/BUILDROOT/usr/lib/rpm/macros.d + pytest -vv ============================= test session starts ============================== platform linux -- Python 3.13.0b2, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/rust-packaging-26.3-build/rust-packaging-26.3 collecting ... collected 55 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': 'tokio', 'version': '1.32.0'}-'/usr/share/cargo/registry/tokio-1.32.0'] PASSED [ 9%] tests/test_macros_cargo.py::test_cargo_is_lib PASSED [ 10%] tests/test_macros_cargo.py::test_cargo_is_bin PASSED [ 12%] tests/test_macros_cargo.py::test_cargo_prep FAILED [ 14%] tests/test_macros_cargo.py::test_cargo_prep_vendor FAILED [ 16%] tests/test_macros_cargo.py::test_cargo_prep_no_replacement FAILED [ 18%] tests/test_macros_cargo.py::test_cargo_parse_opts PASSED [ 20%] tests/test_macros_cargo.py::test_cargo_parse_opts_n PASSED [ 21%] tests/test_macros_cargo.py::test_cargo_parse_opts_a PASSED [ 23%] tests/test_macros_cargo.py::test_cargo_parse_opts_f PASSED [ 25%] tests/test_macros_cargo.py::test_cargo_parse_opts_an PASSED [ 27%] tests/test_macros_cargo.py::test_cargo_parse_opts_af PASSED [ 29%] tests/test_macros_cargo.py::test_cargo_parse_opts_nf PASSED [ 30%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires[''-''] PASSED [ 32%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-t'-' --with-check'] PASSED [ 34%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-a'-' --all-features'] PASSED [ 36%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-n'-' --no-default-features'] PASSED [ 38%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-f foo,bar -t'-' --features foo,bar --with-check'] PASSED [ 40%] tests/test_macros_cargo.py::test_cargo_build PASSED [ 41%] tests/test_macros_cargo.py::test_cargo_test PASSED [ 43%] tests/test_macros_cargo.py::test_cargo_test_with_args PASSED [ 45%] tests/test_macros_cargo.py::test_cargo_install FAILED [ 47%] tests/test_macros_cargo.py::test_cargo_license PASSED [ 49%] tests/test_macros_cargo.py::test_cargo_license_summary PASSED [ 50%] tests/test_macros_cargo.py::test_cargo_vendor_manifest PASSED [ 52%] tests/test_macros_rust.py::test_rustc PASSED [ 54%] tests/test_macros_rust.py::test_rustdoc PASSED [ 56%] 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 [ 61%] tests/test_macros_rust.py::test_build_rustflags PASSED [ 63%] tests/test_macros_rust_srpm.py::test_rust_arches PASSED [ 65%] 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 [ 70%] tests/test_macros_rust_srpm.py::test_version_no_tilde['0.0.1~alpha.0'-'0.0.1-alpha.0'] PASSED [ 72%] tests/test_macros_rust_srpm.py::test_version_no_tilde['0.1.0~beta.1'-'0.1.0-beta.1'] PASSED [ 74%] 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 [ 81%] 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 [ 90%] 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 0xffffb205b4c0> 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.toml << 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", "", "[net]", "offline = true", "", "EOF", "", "", "cat >> .cargo/config.toml << 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', '/usr/bin/ln -s rpm target/release', '/usr/bin/rm -rf .cargo/', '/usr/bin/mkdir -p .cargo', 'cat > .cargo/config.toml << 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,-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', '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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "%{buildroot}/usr"', '', '[term]', 'verbose = true', '', '[net]', 'offline = true', '', 'EOF', '', '', 'cat >> .cargo/config.toml << 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.toml << 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,-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', '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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "%buildroot/usr"', '', '[term]', 'verbose = true', '', '[net]', 'offline = true', '', 'EOF', '', '', 'cat >> .cargo/config.toml << 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 24 diff: 'root = "%{buildroot}/usr"' != 'root = "%buildroot/usr"' 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 '/usr/bin/rm -rf .cargo/', E '/usr/bin/mkdir -p .cargo', E 'cat > .cargo/config.toml << 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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard ' E '-fasynchronous-unwind-tables -fstack-clash-protection ' E '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', E 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard ' E '-fasynchronous-unwind-tables -fstack-clash-protection ' E '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', E 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs ' E '-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', E '', E '[install]', E - 'root = "%buildroot/usr"', E + 'root = "%{buildroot}/usr"', E ? + + E '', E '[term]', E 'verbose = true', E '', E '[net]', E 'offline = true', E '', E 'EOF', E '', E '', E 'cat >> .cargo/config.toml << 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 '', 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:54: AssertionError ____________________________ test_cargo_prep_vendor ____________________________ evaluater = .runner at 0xffffb205bc40> 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.toml << 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", "", "[net]", "offline = true", "", "EOF", "", "", "", "cat >> .cargo/config.toml << 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 assert ['(', '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.toml << 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,-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', '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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "%{buildroot}/usr"', '', '[term]', 'verbose = true', '', '[net]', 'offline = true', '', 'EOF', '', '', '', 'cat >> .cargo/config.toml << 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.toml << 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,-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', '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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "%buildroot/usr"', '', '[term]', 'verbose = true', '', '[net]', 'offline = true', '', 'EOF', '', '', '', 'cat >> .cargo/config.toml << 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 24 diff: 'root = "%{buildroot}/usr"' != 'root = "%buildroot/usr"' 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 '/usr/bin/rm -rf .cargo/', E '/usr/bin/mkdir -p .cargo', E 'cat > .cargo/config.toml << 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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard ' E '-fasynchronous-unwind-tables -fstack-clash-protection ' E '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', E 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard ' E '-fasynchronous-unwind-tables -fstack-clash-protection ' E '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', E 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs ' E '-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', E '', E '[install]', E - 'root = "%buildroot/usr"', E + 'root = "%{buildroot}/usr"', E ? + + E '', E '[term]', E 'verbose = true', E '', E '[net]', E 'offline = true', E '', E 'EOF', E '', E '', E '', E 'cat >> .cargo/config.toml << EOF', E '[source.vendored-sources]', E 'directory = "vendor"', E '', E '[source.crates-io]', E 'registry = "https://crates.io"', E 'replace-with = "vendored-sources"', E '', E 'EOF', E '/usr/bin/rm -f Cargo.toml.orig', E ')', E ] tests/test_macros_cargo.py:117: AssertionError ________________________ test_cargo_prep_no_replacement ________________________ evaluater = .runner at 0xffffb205bec0> 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.toml << 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", "", "[net]", "offline = true", "", "EOF", "", "/usr/bin/rm -f Cargo.toml.orig", ")", ] E assert ['(', '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.toml << 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,-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', '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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "%{buildroot}/usr"', '', '[term]', 'verbose = true', '', '[net]', 'offline = 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.toml << 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,-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', '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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', '', '[install]', 'root = "%buildroot/usr"', '', '[term]', 'verbose = true', '', '[net]', 'offline = true', '', 'EOF', '', '/usr/bin/rm -f Cargo.toml.orig', ')'] E At index 24 diff: 'root = "%{buildroot}/usr"' != 'root = "%buildroot/usr"' 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 '/usr/bin/rm -rf .cargo/', E '/usr/bin/mkdir -p .cargo', E 'cat > .cargo/config.toml << 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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard ' E '-fasynchronous-unwind-tables -fstack-clash-protection ' E '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', E 'CXXFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g ' E '-grecord-gcc-switches -pipe -Wall -Werror=format-security ' E '-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS ' E '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard ' E '-fasynchronous-unwind-tables -fstack-clash-protection ' E '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer "', E 'LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs ' E '-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' E '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 "', E '', E '[install]', E - 'root = "%buildroot/usr"', E + 'root = "%{buildroot}/usr"', E ? + + E '', E '[term]', E 'verbose = true', E '', E '[net]', E 'offline = true', E '', E 'EOF', E '', E '/usr/bin/rm -f Cargo.toml.orig', E ')', E ] tests/test_macros_cargo.py:178: AssertionError ______________________________ test_cargo_install ______________________________ evaluater = .runner at 0xffffb1e1ca40> def test_cargo_install(evaluater): buildroot = evaluater("%buildroot")[0] cargo = evaluater("%__cargo")[0] cargo_common_opts = evaluater("%__cargo_common_opts")[0] cargo_is_bin = evaluater("%__cargo_is_bin")[0] cargo_is_lib = evaluater("%__cargo_is_lib")[0] cargo_registry = evaluater("%cargo_registry")[0] cargo_to_rpm = evaluater("%__cargo_to_rpm")[0] # awk is gawk on some systems and /usr/bin/awk on others. awk = evaluater("%__awk")[0] > assert [line.rstrip() for line in evaluater("%cargo_install")[0].splitlines()] == [ "(", "set -euo pipefail", f"if {cargo_is_lib} && [ 1 -eq 1 ] ; then", f" CRATE_NAME=$({cargo_to_rpm} --path Cargo.toml name)", f" CRATE_VERSION=$({cargo_to_rpm} --path Cargo.toml version)", f" REG_DIR={buildroot}{cargo_registry}/$CRATE_NAME-$CRATE_VERSION", " /usr/bin/mkdir -p $REG_DIR", f" {awk} -i inplace -v INPLACE_SUFFIX=.deps '/^\\[((.+\\.)?((dev|build)-)?dependencies|features)/{{f=1;next}} /^\\[/{{f=0}}; !f' Cargo.toml", f" {cargo} package -l | grep -w -E -v 'Cargo.(lock|toml.orig)' | xargs -d '\\n' /usr/bin/cp --parents -a -t $REG_DIR", " /usr/bin/mv Cargo.toml{.deps,}", " /usr/bin/cp -a Cargo.toml $REG_DIR/Cargo.toml", " /usr/bin/rm -f $REG_DIR/Cargo.toml.deps", ' echo \'{"files":{},"package":""}\' > $REG_DIR/.cargo-checksum.json', "fi", f"if {cargo_is_bin} && [ 1 -eq 1 ] ; then", f" {cargo} install {cargo_common_opts} --profile rpm --no-track --path .", "fi", ")", ] E assert ['(', 'set -euo pipefail', 'if [ $(/usr/bin/cargo2rpm --path Cargo.toml is-lib) -eq 1 ] && [ 1 -eq 1 ] ; then', ' CRATE_NAME=$(/usr/bin/cargo2rpm --path Cargo.toml name)', ' CRATE_VERSION=$(/usr/bin/cargo2rpm --path Cargo.toml version)', ' REG_DIR=%{buildroot}/usr/share/cargo/registry/$CRATE_NAME-$CRATE_VERSION', ' /usr/bin/mkdir -p $REG_DIR', " /usr/bin/awk -i inplace -v INPLACE_SUFFIX=.deps '/^\\[((.+\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\[/{f=0}; !f' Cargo.toml", " /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' /usr/bin/cargo package -l | grep -w -E -v 'Cargo.(lock|toml.orig)' | xargs -d '\\n' /usr/bin/cp --parents -a -t $REG_DIR", ' /usr/bin/mv Cargo.toml{.deps,}', ' /usr/bin/cp -a Cargo.toml $REG_DIR/Cargo.toml', ' /usr/bin/rm -f $REG_DIR/Cargo.toml.deps', ' echo \'{"files":{},"package":""}\' > $REG_DIR/.cargo-checksum.json', 'fi', 'if [ $(/usr/bin/cargo2rpm --path Cargo.toml is-bin) -eq 1 ] && [ 1 -eq 1 ] ; then', " /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' /usr/bin/cargo install -j${RPM_BUILD_NCPUS} -Z avoid-dev-deps --profile rpm --no-track --path .", 'fi', ')'] == ['(', 'set -euo pipefail', 'if [ $(/usr/bin/cargo2rpm --path Cargo.toml is-lib) -eq 1 ] && [ 1 -eq 1 ] ; then', ' CRATE_NAME=$(/usr/bin/cargo2rpm --path Cargo.toml name)', ' CRATE_VERSION=$(/usr/bin/cargo2rpm --path Cargo.toml version)', ' REG_DIR=%buildroot/usr/share/cargo/registry/$CRATE_NAME-$CRATE_VERSION', ' /usr/bin/mkdir -p $REG_DIR', " /usr/bin/awk -i inplace -v INPLACE_SUFFIX=.deps '/^\\[((.+\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\[/{f=0}; !f' Cargo.toml", " /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' /usr/bin/cargo package -l | grep -w -E -v 'Cargo.(lock|toml.orig)' | xargs -d '\\n' /usr/bin/cp --parents -a -t $REG_DIR", ' /usr/bin/mv Cargo.toml{.deps,}', ' /usr/bin/cp -a Cargo.toml $REG_DIR/Cargo.toml', ' /usr/bin/rm -f $REG_DIR/Cargo.toml.deps', ' echo \'{"files":{},"package":""}\' > $REG_DIR/.cargo-checksum.json', 'fi', 'if [ $(/usr/bin/cargo2rpm --path Cargo.toml is-bin) -eq 1 ] && [ 1 -eq 1 ] ; then', " /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' /usr/bin/cargo install -j${RPM_BUILD_NCPUS} -Z avoid-dev-deps --profile rpm --no-track --path .", 'fi', ')'] E At index 5 diff: ' REG_DIR=%{buildroot}/usr/share/cargo/registry/$CRATE_NAME-$CRATE_VERSION' != ' REG_DIR=%buildroot/usr/share/cargo/registry/$CRATE_NAME-$CRATE_VERSION' E Full diff: E [ E '(', E 'set -euo pipefail', E 'if [ $(/usr/bin/cargo2rpm --path Cargo.toml is-lib) -eq 1 ] && [ 1 -eq 1 ] ; ' E 'then', E ' CRATE_NAME=$(/usr/bin/cargo2rpm --path Cargo.toml name)', E ' CRATE_VERSION=$(/usr/bin/cargo2rpm --path Cargo.toml version)', E - ' REG_DIR=%buildroot/usr/share/cargo/registry/$CRATE_NAME-$CRATE_VERSION', E + ' REG_DIR=%{buildroot}/usr/share/cargo/registry/$CRATE_NAME-$CRATE_VERSION', E ? + + E ' /usr/bin/mkdir -p $REG_DIR', E ' /usr/bin/awk -i inplace -v INPLACE_SUFFIX=.deps ' E "'/^\\[((.+\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\[/{f=0}; " E "!f' Cargo.toml", E " /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 " E '-Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes ' E "--cap-lints=warn' /usr/bin/cargo package -l | grep -w -E -v " E "'Cargo.(lock|toml.orig)' | xargs -d '\\n' /usr/bin/cp --parents -a -t " E '$REG_DIR', E ' /usr/bin/mv Cargo.toml{.deps,}', E ' /usr/bin/cp -a Cargo.toml $REG_DIR/Cargo.toml', E ' /usr/bin/rm -f $REG_DIR/Cargo.toml.deps', E ' echo \'{"files":{},"package":""}\' > $REG_DIR/.cargo-checksum.json', E 'fi', E 'if [ $(/usr/bin/cargo2rpm --path Cargo.toml is-bin) -eq 1 ] && [ 1 -eq 1 ] ; ' E 'then', E " /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 " E '-Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes ' E "--cap-lints=warn' /usr/bin/cargo install -j${RPM_BUILD_NCPUS} -Z " E 'avoid-dev-deps --profile rpm --no-track --path .', E 'fi', E ')', E ] tests/test_macros_cargo.py:297: 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 ['... FAILED tests/test_macros_cargo.py::test_cargo_install - assert ['(', 'set -eu... ========================= 4 failed, 51 passed in 1.05s ========================= error: Bad exit status from /var/tmp/rpm-tmp.ociouN (%check) Bad exit status from /var/tmp/rpm-tmp.ociouN (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M f4c3be0315644e88a701c239d028c0a9 -D /var/lib/mock/f41-build-51727136-6195161/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.xxe14nab:/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/rust-packaging.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M f4c3be0315644e88a701c239d028c0a9 -D /var/lib/mock/f41-build-51727136-6195161/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.xxe14nab:/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/rust-packaging.spec'