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='/home/lib/mock/dist-ocs23-loongarch64-build-228612-17027/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=981gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3j014br8:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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.3j014br8:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', '0338d5e0ec4e426891bef6947601b4b6', '-D', '/home/lib/mock/dist-ocs23-loongarch64-build-228612-17027/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3j014br8:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', '--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 Wrote: /builddir/build/SRPMS/rust-packaging-26.3-3.ocs23.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='/home/lib/mock/dist-ocs23-loongarch64-build-228612-17027/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=981gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3j014br8:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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.3j014br8:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', '686e4d98468645909faa08575f998a8f', '-D', '/home/lib/mock/dist-ocs23-loongarch64-build-228612-17027/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3j014br8:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', '--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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1BrnGr + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/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 + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-fix-test_cargo_prep-in-check.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.68knn1 + 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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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/OpenCloudOS/OpenCloudOS-hardened-ld -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.aTEaQ5 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch + cd rust-packaging-26.3 + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch//usr/lib/rpm/macros.d macros.d/macros.cargo + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch//usr/lib/rpm/macros.d macros.d/macros.rust + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch//usr/lib/rpm/fileattrs fileattrs/cargo.attr + install -D -p -m 0644 -t /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch//usr/lib/rpm/fileattrs fileattrs/cargo_vendor.attr + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 26.3-3.ocs23 --unique-debug-suffix -26.3-3.ocs23.noarch --unique-debug-src-base rust-packaging-26.3-3.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/rust-packaging-26.3 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ZO25tM + 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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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/OpenCloudOS/OpenCloudOS-hardened-ld -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/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch/usr/lib/rpm/macros.d + MACRO_DIR=/builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch/usr/lib/rpm/macros.d + pytest -vv --ignore=tests/test_macros_rust_srpm.py ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/rust-packaging-26.3 collecting ... collected 35 items tests/test_macros_cargo.py::test_cargo PASSED [ 2%] tests/test_macros_cargo.py::test_cargo_to_rpm PASSED [ 5%] tests/test_macros_cargo.py::test_cargo_registry PASSED [ 8%] 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 [ 11%] tests/test_macros_cargo.py::test_crate_instdir[{'crate': 'tokio', 'version': '1.32.0'}-'/usr/share/cargo/registry/tokio-1.32.0'] PASSED [ 14%] tests/test_macros_cargo.py::test_cargo_is_lib PASSED [ 17%] tests/test_macros_cargo.py::test_cargo_is_bin PASSED [ 20%] tests/test_macros_cargo.py::test_cargo_prep PASSED [ 22%] tests/test_macros_cargo.py::test_cargo_prep_vendor PASSED [ 25%] tests/test_macros_cargo.py::test_cargo_prep_no_replacement PASSED [ 28%] tests/test_macros_cargo.py::test_cargo_parse_opts PASSED [ 31%] tests/test_macros_cargo.py::test_cargo_parse_opts_n PASSED [ 34%] tests/test_macros_cargo.py::test_cargo_parse_opts_a PASSED [ 37%] tests/test_macros_cargo.py::test_cargo_parse_opts_f PASSED [ 40%] tests/test_macros_cargo.py::test_cargo_parse_opts_an PASSED [ 42%] tests/test_macros_cargo.py::test_cargo_parse_opts_af PASSED [ 45%] tests/test_macros_cargo.py::test_cargo_parse_opts_nf PASSED [ 48%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires[''-''] PASSED [ 51%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-t'-' --with-check'] PASSED [ 54%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-a'-' --all-features'] PASSED [ 57%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-n'-' --no-default-features'] PASSED [ 60%] tests/test_macros_cargo.py::test_cargo_generate_buildrequires['-f foo,bar -t'-' --features foo,bar --with-check'] PASSED [ 62%] tests/test_macros_cargo.py::test_cargo_build PASSED [ 65%] tests/test_macros_cargo.py::test_cargo_test PASSED [ 68%] tests/test_macros_cargo.py::test_cargo_test_with_args PASSED [ 71%] tests/test_macros_cargo.py::test_cargo_install PASSED [ 74%] tests/test_macros_cargo.py::test_cargo_license PASSED [ 77%] tests/test_macros_cargo.py::test_cargo_license_summary PASSED [ 80%] tests/test_macros_cargo.py::test_cargo_vendor_manifest PASSED [ 82%] tests/test_macros_rust.py::test_rustc PASSED [ 85%] tests/test_macros_rust.py::test_rustdoc PASSED [ 88%] tests/test_macros_rust.py::test_rustflags_opt_level PASSED [ 91%] tests/test_macros_rust.py::test_rustflags_debuginfo PASSED [ 94%] tests/test_macros_rust.py::test_rustflags_codegen_units PASSED [ 97%] tests/test_macros_rust.py::test_build_rustflags PASSED [100%] ============================== 35 passed in 0.69s ============================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: cargo-rpm-macros-26.3-3.ocs23.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.FxnQYc + umask 022 + cd /builddir/build/BUILD + cd rust-packaging-26.3 + LICENSEDIR=/builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch/usr/share/licenses/cargo-rpm-macros + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch/usr/share/licenses/cargo-rpm-macros + cp -pr LICENSE /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch/usr/share/licenses/cargo-rpm-macros + RPM_EC=0 ++ jobs -p + exit 0 Provides: cargo-rpm-macros = 26.3-3.ocs23 rpm_macro(build_rustflags) rpm_macro(cargo_build) rpm_macro(cargo_generate_buildrequires) rpm_macro(cargo_install) rpm_macro(cargo_install_bin) rpm_macro(cargo_install_lib) rpm_macro(cargo_license) rpm_macro(cargo_license_summary) rpm_macro(cargo_prep) rpm_macro(cargo_registry) rpm_macro(cargo_test) rpm_macro(cargo_vendor_manifest) rpm_macro(crate_instdir) rpm_macro(rustflags_codegen_units) rpm_macro(rustflags_debuginfo) rpm_macro(rustflags_opt_level) rust-packaging = 26.3-3.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Conflicts: rust-toolset Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rust-packaging-26.3-3.ocs23.noarch Wrote: /builddir/build/RPMS/cargo-rpm-macros-26.3-3.ocs23.noarch.rpm Child return code was: 0