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 aarch64 --nodeps /builddir/build/SPECS/rust.spec'], chrootPath='/var/lib/mock/module-rust-toolset-an8-8080020230629052319-27f5fd19-build-294811-65762/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust.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-1.66.1-2.module+an8.8.0+11065+305ae3b2.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust.spec'], chrootPath='/var/lib/mock/module-rust-toolset-an8-8080020230629052319-27f5fd19-build-294811-65762/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust.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.yZcyA2 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf wasi-libc-wasi-sdk-17 + /usr/bin/gzip -dc /builddir/build/SOURCES/wasi-libc-wasi-sdk-17.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd wasi-libc-wasi-sdk-17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf rustc-1.66.1-src + /usr/bin/xz -dc /builddir/build/SOURCES/rustc-1.66.1-src.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rustc-1.66.1-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Use-lld-provided-by-system-for-wasm.patch):' Patch #1 (0001-Use-lld-provided-by-system-for-wasm.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file compiler/rustc_target/src/spec/wasm_base.rs + echo 'Patch #2 (rustc-1.61.0-rust-gdb-substitute-path.patch):' Patch #2 (rustc-1.61.0-rust-gdb-substitute-path.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/etc/rust-gdb + echo 'Patch #3 (0001-compiletest-set-the-dylib-path-when-gathering-target.patch):' Patch #3 (0001-compiletest-set-the-dylib-path-when-gathering-target.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/tools/compiletest/src/common.rs patching file src/tools/compiletest/src/runtest.rs patching file src/tools/compiletest/src/util.rs + echo 'Patch #4 (0001-Improve-generating-Custom-entry-function.patch):' Patch #4 (0001-Improve-generating-Custom-entry-function.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file compiler/rustc_codegen_llvm/src/abi.rs patching file compiler/rustc_codegen_llvm/src/context.rs patching file compiler/rustc_codegen_llvm/src/declare.rs patching file compiler/rustc_codegen_ssa/src/back/symbol_export.rs patching file compiler/rustc_target/src/abi/call/mod.rs patching file compiler/rustc_target/src/json.rs patching file compiler/rustc_target/src/spec/mod.rs Hunk #2 succeeded at 1668 (offset -1 lines). Hunk #3 succeeded at 1892 (offset -1 lines). Hunk #4 succeeded at 2411 (offset -1 lines). Hunk #5 succeeded at 2542 (offset -1 lines). Hunk #6 succeeded at 2794 (offset -1 lines). + echo 'Patch #5 (0001-Mangle-main-as-__main_void-on-wasm32-wasi.patch):' Patch #5 (0001-Mangle-main-as-__main_void-on-wasm32-wasi.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file compiler/rustc_target/src/spec/wasm32_wasi.rs Hunk #1 succeeded at 100 (offset -4 lines). + echo 'Patch #100 (rustc-1.65.0-disable-libssh2.patch):' Patch #100 (rustc-1.65.0-disable-libssh2.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Cargo.lock Hunk #1 succeeded at 1989 (offset 18 lines). Hunk #2 succeeded at 2021 (offset 18 lines). patching file vendor/git2/Cargo.toml + pushd src/tools/cargo ~/build/BUILD/rustc-1.66.1-src/src/tools/cargo ~/build/BUILD/rustc-1.66.1-src Patch #1000 (0001-cargo-CVE-2023-38497.patch): + echo 'Patch #1000 (0001-cargo-CVE-2023-38497.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 can't find file to patch at input line 19 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From 5702ea9371e3ed254970d6730b55663b9d0b612b Mon Sep 17 00:00:00 2001 |From: Liwei Ge |Date: Wed, 16 Aug 2023 11:00:14 +0800 |Subject: [PATCH] fix CVE-2023-38497 | |backport from https://github.com/rust-lang/cargo/commit/ |d78bbf4bde3c6b95caca7512f537c6f9721426ff |--- | .../cargo/src/cargo/sources/registry/mod.rs | 54 +++++++- | src/tools/cargo/src/cargo/util/mod.rs | 18 +++ | src/tools/cargo/tests/testsuite/registry.rs | 130 +++++++++++++++++- | src/tools/cargo/tests/testsuite/vendor.rs | 5 +- | 4 files changed, 197 insertions(+), 10 deletions(-) | |diff --git a/src/tools/cargo/src/cargo/sources/registry/mod.rs b/src/tools/cargo/src/cargo/sources/registry/mod.rs |index cabd4f9c6..d0f4e72a1 100644 |--- a/src/tools/cargo/src/cargo/sources/registry/mod.rs |+++ b/src/tools/cargo/src/cargo/sources/registry/mod.rs -------------------------- File to patch: Skip this patch? [y] Skipping patch. 6 out of 6 hunks ignored can't find file to patch at input line 124 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/tools/cargo/src/cargo/util/mod.rs b/src/tools/cargo/src/cargo/util/mod.rs |index 9881332ec..7fb491622 100644 |--- a/src/tools/cargo/src/cargo/util/mod.rs |+++ b/src/tools/cargo/src/cargo/util/mod.rs -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 150 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/tools/cargo/tests/testsuite/registry.rs b/src/tools/cargo/tests/testsuite/registry.rs |index 60c52fd54..ad95e1437 100644 |--- a/src/tools/cargo/tests/testsuite/registry.rs |+++ b/src/tools/cargo/tests/testsuite/registry.rs -------------------------- File to patch: Skip this patch? [y] Skipping patch. 3 out of 3 hunks ignored can't find file to patch at input line 302 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/tools/cargo/tests/testsuite/vendor.rs b/src/tools/cargo/tests/testsuite/vendor.rs |index 8e985e265..db6f114ca 100644 |--- a/src/tools/cargo/tests/testsuite/vendor.rs |+++ b/src/tools/cargo/tests/testsuite/vendor.rs -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.yZcyA2 (%prep) Bad exit status from /var/tmp/rpm-tmp.yZcyA2 (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust.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: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/rust.spec