Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust-take_mut.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-89513-58426/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust-take_mut.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'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/rust-take_mut-0.2.2-1.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust-take_mut.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-89513-58426/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust-take_mut.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'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sUajdO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf take_mut-0.2.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/take_mut-0.2.2.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd take_mut-0.2.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 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 + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.NJ5lNI + umask 022 + cd /builddir/build/BUILD + cd take_mut-0.2.2 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-take_mut-0.2.2-1.oc9.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust-take_mut.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-89513-58426/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust-take_mut.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'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.ut6mQN + umask 022 + cd /builddir/build/BUILD + cd take_mut-0.2.2 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rPzexy + 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 -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/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/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd take_mut-0.2.2 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo build -j8 -Z avoid-dev-deps --profile rpm Compiling take_mut v0.2.2 (/builddir/build/BUILD/take_mut-0.2.2) Running `/usr/bin/rustc --crate-name take_mut src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 -C metadata=340cb321fbeec339 -C extra-filename=-340cb321fbeec339 --out-dir /builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps -L dependency=/builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Finished rpm [optimized + debuginfo] target(s) in 0.30s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xBm49P + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64 ++ dirname /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64 + cd take_mut-0.2.2 + set -euo pipefail ++ /usr/bin/cargo2rpm --path Cargo.toml is-lib + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' ++ /usr/bin/cargo2rpm --path Cargo.toml name + CRATE_NAME=take_mut ++ /usr/bin/cargo2rpm --path Cargo.toml version + CRATE_VERSION=0.2.2 + REG_DIR=/builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64/usr/share/cargo/registry/take_mut-0.2.2 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64/usr/share/cargo/registry/take_mut-0.2.2 + gawk -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 --cap-lints=warn' /usr/bin/cargo package -l + xargs -d '\n' /usr/bin/cp --parents -a -t /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64/usr/share/cargo/registry/take_mut-0.2.2 + grep -w -E -v 'Cargo.(lock|toml.orig)' warning: No (git) VCS found for `/builddir/build/BUILD/take_mut-0.2.2` + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64/usr/share/cargo/registry/take_mut-0.2.2/Cargo.toml + /usr/bin/rm -f /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64/usr/share/cargo/registry/take_mut-0.2.2/Cargo.toml.deps + echo '{"files":{},"package":""}' ++ /usr/bin/cargo2rpm --path Cargo.toml is-bin + '[' 0 -eq 1 ']' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/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/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.qhI4or + 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 -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/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/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd take_mut-0.2.2 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo test -j8 -Z avoid-dev-deps --profile rpm --no-fail-fast Compiling take_mut v0.2.2 (/builddir/build/BUILD/take_mut-0.2.2) Running `/usr/bin/rustc --crate-name take_mut src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test -C metadata=d6409e08a1b30aaa -C extra-filename=-d6409e08a1b30aaa --out-dir /builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps -L dependency=/builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: unnecessary trailing semicolon --> src/lib.rs:46:20 | 46 | enum Foo {A, B}; | ^ help: remove this semicolon | = note: `#[warn(redundant_semicolons)]` on by default warning: unnecessary trailing semicolon --> src/lib.rs:105:20 | 105 | enum Foo {A, B}; | ^ help: remove this semicolon warning: unnecessary trailing semicolon --> src/lib.rs:125:23 | 125 | enum Foo {A, B, C}; | ^ help: remove this semicolon warning: unreachable expression --> src/lib.rs:141:13 | 140 | panic!("panic"); | --------------- any code following this expression is unreachable 141 | Foo::B | ^^^^^^ unreachable expression | = note: `#[warn(unreachable_code)]` on by default warning: unused variable: `a` --> src/scoped.rs:153:14 | 153 | let (a, a_hole) = scope.take(&mut bar.a); | ^ help: if this is intentional, prefix it with an underscore: `_a` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `b` --> src/scoped.rs:154:14 | 154 | let (b, b_hole) = scope.take(&mut bar.b); | ^ help: if this is intentional, prefix it with an underscore: `_b` warning: unused variable: `t` --> src/scoped.rs:170:18 | 170 | let (t, hole) = scope.take_or_recover(&mut foo, || Foo); | ^ help: if this is intentional, prefix it with an underscore: `_t` warning: unused variable: `hole` --> src/scoped.rs:170:21 | 170 | let (t, hole) = scope.take_or_recover(&mut foo, || Foo); | ^^^^ help: if this is intentional, prefix it with an underscore: `_hole` warning: `take_mut` (lib test) generated 8 warnings (run `cargo fix --lib -p take_mut --tests` to apply 4 suggestions) Finished rpm [optimized + debuginfo] target(s) in 0.33s Running `/builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps/take_mut-d6409e08a1b30aaa` running 5 tests test it_works ... ok test it_works_recover ... ok test scoped::scope_based_take ... ok test it_works_recover_panic ... ok test scoped::panic_on_recovered_panic ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests take_mut Running `/usr/bin/rustdoc --crate-type lib --crate-name take_mut --test src/lib.rs --test-run-directory /builddir/build/BUILD/take_mut-0.2.2 -L dependency=/builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps -L dependency=/builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps --extern take_mut=/builddir/build/BUILD/take_mut-0.2.2/target/rpm/deps/libtake_mut-340cb321fbeec339.rlib -C embed-bitcode=no --error-format human` running 4 tests test src/scoped.rs - scoped (line 17) ... ignored test src/lib.rs - take_or_recover (line 71) ... ok test src/lib.rs - take (line 21) ... ok test src/scoped.rs - scoped (line 5) ... ok test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.13s + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rust-take_mut-devel-0.2.2-1.oc9.noarch warning: File listed twice: /usr/share/cargo/registry/take_mut-0.2.2/LICENSE warning: File listed twice: /usr/share/cargo/registry/take_mut-0.2.2/README.md Provides: crate(take_mut) = 0.2.2 rust-take_mut-devel = 0.2.2-1.oc9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo Processing files: rust-take_mut+default-devel-0.2.2-1.oc9.noarch Provides: crate(take_mut/default) = 0.2.2 rust-take_mut+default-devel = 0.2.2-1.oc9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo crate(take_mut) = 0.2.2 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rust-take_mut-0.2.2-1.oc9.aarch64 Wrote: /builddir/build/SRPMS/rust-take_mut-0.2.2-1.oc9.src.rpm Wrote: /builddir/build/RPMS/rust-take_mut+default-devel-0.2.2-1.oc9.noarch.rpm Wrote: /builddir/build/RPMS/rust-take_mut-devel-0.2.2-1.oc9.noarch.rpm RPM build warnings: File listed twice: /usr/share/cargo/registry/take_mut-0.2.2/LICENSE File listed twice: /usr/share/cargo/registry/take_mut-0.2.2/README.md Child return code was: 0