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 riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-alertmanager.spec'], chrootPath='/var/lib/mock/f40-build-737514-107147/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-alertmanager.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 warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1682726400 Wrote: /builddir/build/SRPMS/golang-github-prometheus-alertmanager-0.23.0-15.fc40.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-alertmanager.spec'], chrootPath='/var/lib/mock/f40-build-737514-107147/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-alertmanager.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 warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1682726400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.b0cfLN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf alertmanager-0.23.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/alertmanager-0.23.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd alertmanager-0.23.0 + rm -rf /builddir/build/BUILD/alertmanager-0.23.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/alertmanager-0.23.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/alertmanager-0.23.0/vendor + [[ ! -e /builddir/build/BUILD/alertmanager-0.23.0/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/alertmanager-0.23.0/_build/bin install: creating directory '/builddir/build/BUILD/alertmanager-0.23.0/_build' install: creating directory '/builddir/build/BUILD/alertmanager-0.23.0/_build/bin' + export GOPATH=/builddir/build/BUILD/alertmanager-0.23.0/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/alertmanager-0.23.0/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/alertmanager-0.23.0/_build/src/github.com/prometheus/alertmanager ]] ++ dirname /builddir/build/BUILD/alertmanager-0.23.0/_build/src/github.com/prometheus/alertmanager + install -m 0755 -vd /builddir/build/BUILD/alertmanager-0.23.0/_build/src/github.com/prometheus install: creating directory '/builddir/build/BUILD/alertmanager-0.23.0/_build/src' install: creating directory '/builddir/build/BUILD/alertmanager-0.23.0/_build/src/github.com' install: creating directory '/builddir/build/BUILD/alertmanager-0.23.0/_build/src/github.com/prometheus' + ln -fs /builddir/build/BUILD/alertmanager-0.23.0 /builddir/build/BUILD/alertmanager-0.23.0/_build/src/github.com/prometheus/alertmanager + cd /builddir/build/BUILD/alertmanager-0.23.0/_build/src/github.com/prometheus/alertmanager Patch #0 (defaults-paths.patch): + echo 'Patch #0 (defaults-paths.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file cmd/alertmanager/main.go patching file cli/root.go patching file README.md patching file cli/silence_add.go + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3QM7e7 + umask 022 + cd /builddir/build/BUILD + cd alertmanager-0.23.0 ++ date -u -d@1682726400 +%Y%m%d + LDFLAGS='-X github.com/prometheus/common/version.Version=0.23.0 -X github.com/prometheus/common/version.Revision=15.fc40 -X github.com/prometheus/common/version.Branch=tarball -X github.com/prometheus/common/version.BuildDate=20230429' + for cmd in cmd/* ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' ++ basename cmd/alertmanager + GOPATH=/builddir/build/BUILD/alertmanager-0.23.0/_build:/usr/share/gocode + GO111MODULE=off + go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -ldflags '-X github.com/prometheus/common/version.Version=0.23.0 -X github.com/prometheus/common/version.Revision=15.fc40 -X github.com/prometheus/common/version.Branch=tarball -X github.com/prometheus/common/version.BuildDate=20230429 -X github.com/prometheus/alertmanager/version=0.23.0 -B 0x46f7cd65cedc5e6d4afd348251a9b6041686e3cb -compressdwarf=false -linkmode=external -extldflags '\''-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 -specs=/usr/lib/rpm/redhat/redhat-package-notes '\''' -a -v -x -o /builddir/build/BUILD/alertmanager-0.23.0/_build/bin/alertmanager github.com/prometheus/alertmanager/cmd/alertmanager WORK=/tmp/go-build1043322705 /usr/share/gocode/src/github.com/prometheus/exporter-toolkit/web/landing_page.go:70:13: pattern landing_page.css: no matching files found error: Bad exit status from /var/tmp/rpm-tmp.3QM7e7 (%build) %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.3QM7e7 (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-alertmanager.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-alertmanager.spec