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 loongarch64 --nodeps /builddir/build/SPECS/grafana.spec'], chrootPath='/var/lib/mock/dist-an8.10-build-547714-87375/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grafana.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: line 749: Possible unexpanded macro in: Requires: selinux-policy >= %{_selinux_policy_version} Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/grafana-9.2.10-31.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grafana.spec'], chrootPath='/var/lib/mock/dist-an8.10-build-547714-87375/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grafana.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Lsjlev + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/grafana-9.2.10.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-9.2.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + /usr/bin/xz -dc /builddir/build/SOURCES/grafana-vendor-9.2.10-31.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-9.2.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -r plugins-bundled + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/grafana-webpack-9.2.10-21.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-9.2.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir SELinux + cp -p /builddir/build/SOURCES/grafana.te /builddir/build/SOURCES/grafana.fc /builddir/build/SOURCES/grafana.if SELinux Patch #1 (0001-update-grafana-cli-script-with-distro-specific-paths.patch): + echo 'Patch #1 (0001-update-grafana-cli-script-with-distro-specific-paths.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file packaging/wrappers/grafana-cli Patch #2 (0002-add-manpages.patch): + echo 'Patch #2 (0002-add-manpages.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file docs/man/man1/grafana-cli.1 patching file docs/man/man1/grafana-server.1 Patch #3 (0003-update-default-configuration.patch): + echo 'Patch #3 (0003-update-default-configuration.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file conf/defaults.ini patching file conf/sample.ini Patch #4 (0004-remove-unused-backend-dependencies.patch): + echo 'Patch #4 (0004-remove-unused-backend-dependencies.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file go.mod patching file go.sum patching file pkg/extensions/main.go Patch #5 (0005-remove-unused-frontend-crypto.patch): + echo 'Patch #5 (0005-remove-unused-frontend-crypto.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file package.json patching file yarn.lock patching file packages/grafana-data/package.json + echo 'Patch #6 (0006-skip-marketplace-plugin-install-test.patch):' Patch #6 (0006-skip-marketplace-plugin-install-test.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/tests/api/plugins/api_plugins_test.go Patch #7 (0007-fix-alert-test.patch): + echo 'Patch #7 (0007-fix-alert-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/tests/api/alerting/api_alertmanager_test.go Patch #8 (0008-graphite-functions-xss.patch): + echo 'Patch #8 (0008-graphite-functions-xss.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx Patch #10 (0010-skip-tests.patch): + echo 'Patch #10 (0010-skip-tests.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/services/ngalert/notifier/alertmanager_test.go patching file pkg/services/ngalert/state/manager_test.go patching file pkg/services/ngalert/schedule/schedule_test.go patching file pkg/infra/filestorage/fs_integration_test.go patching file pkg/tests/api/alerting/api_prometheus_test.go + echo 'Patch #11 (0011-remove-email-lookup.patch):' Patch #11 (0011-remove-email-lookup.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/api/login_oauth.go patching file pkg/setting/setting.go Hunk #2 succeeded at 1306 (offset 49 lines). + echo 'Patch #12 (0012-coredump-selinux-error.patch):' Patch #12 (0012-coredump-selinux-error.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/framework/coremodel/helpers.go Patch #13 (0013-snapshot-delete-check-org.patch): + echo 'Patch #13 (0013-snapshot-delete-check-org.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/api/dashboard_snapshot.go Patch #14 (0014-resolve-dompurify-CVE.patch): + echo 'Patch #14 (0014-resolve-dompurify-CVE.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file package.json Hunk #2 succeeded at 424 (offset 2 lines). patching file yarn.lock Hunk #1 succeeded at 18698 (offset -41 lines). Hunk #2 succeeded at 21872 (offset -74 lines). + echo 'Patch #15 (0015-update-go-git-version.patch):' Patch #15 (0015-update-go-git-version.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file .bingo/Variables.mk patching file .bingo/wire.mod patching file .bingo/wire.sum patching file go.mod Hunk #2 succeeded at 38 (offset -1 lines). Hunk #3 succeeded at 50 (offset -1 lines). Hunk #4 succeeded at 88 (offset -2 lines). Hunk #5 succeeded at 104 (offset -2 lines). Hunk #6 succeeded at 215 (offset -3 lines). Hunk #7 succeeded at 228 (offset -3 lines). Hunk #8 succeeded at 262 (offset -3 lines). Hunk #9 succeeded at 277 (offset -3 lines). Hunk #10 succeeded at 290 (offset -3 lines). Hunk #11 succeeded at 306 (offset -3 lines). patching file go.sum Hunk #7 succeeded at 672 (offset -1 lines). Hunk #8 succeeded at 802 (offset -1 lines). Hunk #9 succeeded at 844 (offset -1 lines). Hunk #10 succeeded at 878 (offset -1 lines). Hunk #11 succeeded at 888 (offset -1 lines). Hunk #12 succeeded at 1244 (offset -1 lines). Hunk #13 succeeded at 1298 (offset -1 lines). Hunk #14 succeeded at 1670 (offset -5 lines). Hunk #15 succeeded at 1703 (offset -5 lines). Hunk #16 succeeded at 1783 (offset -5 lines). Hunk #17 succeeded at 1995 (offset -7 lines). Hunk #18 succeeded at 2072 (offset -8 lines). Hunk #19 succeeded at 2219 (offset -7 lines). Hunk #20 succeeded at 2270 (offset -7 lines). Hunk #21 succeeded at 2294 (offset -7 lines). Hunk #22 succeeded at 2349 (offset -7 lines). Hunk #23 succeeded at 2363 (offset -7 lines). Hunk #24 succeeded at 2467 (offset -7 lines). Hunk #25 succeeded at 2659 (offset -7 lines). Hunk #26 succeeded at 2695 (offset -7 lines). Hunk #27 succeeded at 2705 (offset -8 lines). Hunk #28 succeeded at 2729 (offset -8 lines). Hunk #29 succeeded at 2769 (offset -8 lines). Hunk #30 succeeded at 2843 (offset -8 lines). Hunk #31 succeeded at 2864 (offset -8 lines). Hunk #32 succeeded at 2912 (offset -8 lines). Hunk #33 succeeded at 3052 (offset -8 lines). Hunk #34 succeeded at 3088 (offset -8 lines). Hunk #35 succeeded at 3118 (offset -8 lines). Hunk #36 succeeded at 3243 (offset -8 lines). Patch #16 (0016-fix-macaron-version-error.patch): + echo 'Patch #16 (0016-fix-macaron-version-error.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/web/macaron.go Patch #17 (0017-fix-CVE-2025-4123.patch): + echo 'Patch #17 (0017-fix-CVE-2025-4123.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file conf/defaults.ini patching file conf/sample.ini Patch #18 (0018-fix-x-net-CVE.patch): + echo 'Patch #18 (0018-fix-x-net-CVE.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file .bingo/wire.mod patching file .bingo/wire.sum patching file go.mod patching file go.sum Patch #1001 (1001-vendor-patch-removed-backend-crypto.patch): + echo 'Patch #1001 (1001-vendor-patch-removed-backend-crypto.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file vendor/golang.org/x/crypto/openpgp/elgamal/elgamal.go patching file vendor/golang.org/x/crypto/openpgp/packet/packet.go patching file vendor/golang.org/x/crypto/openpgp/packet/symmetrically_encrypted.go patching file vendor/golang.org/x/crypto/pkcs12/crypto.go patching file vendor/github.com/prometheus/exporter-toolkit/web/handler.go Hunk #2 succeeded at 34 (offset 1 line). Hunk #3 succeeded at 65 (offset 17 lines). patching file vendor/github.com/prometheus/exporter-toolkit/web/tls_config.go patching file vendor/github.com/go-git/go-git/v5/options.go patching file vendor/github.com/go-git/go-git/v5/plumbing/object/commit.go patching file vendor/github.com/go-git/go-git/v5/plumbing/object/tag.go patching file vendor/github.com/go-git/go-git/v5/plumbing/transport/ssh/auth_method.go patching file vendor/github.com/go-git/go-git/v5/plumbing/transport/ssh/common.go patching file vendor/github.com/go-git/go-git/v5/repository.go patching file vendor/github.com/go-git/go-git/v5/worktree_commit.go Patch #1002 (1002-vendor-use-pbkdf2-from-OpenSSL.patch): + echo 'Patch #1002 (1002-vendor-use-pbkdf2-from-OpenSSL.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file vendor/golang.org/x/crypto/internal/boring/boring.go patching file vendor/golang.org/x/crypto/internal/boring/notboring.go patching file vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go patching file vendor/modules.txt Patch #1004 (1004-vendor-fix-idna-unicode-version-gate.patch): + echo 'Patch #1004 (1004-vendor-fix-idna-unicode-version-gate.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file vendor/golang.org/x/net/idna/idna.go + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cLAlNi + umask 022 + cd /builddir/build/BUILD + cd grafana-9.2.10 + export GOEXPERIMENT=boringcrypto + GOEXPERIMENT=boringcrypto + rm -rf vendor/golang.org/x/sys + cp -arp /usr/share/golang/vendor/golang.org/x/sys/ vendor/golang.org/x/ + export 'LDFLAGS=-X main.version=9.2.10 -X main.buildstamp=' + LDFLAGS='-X main.version=9.2.10 -X main.buildstamp=' + for cmd in grafana-cli grafana-server ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + CGO_CPPFLAGS='-D_FORTIFY_SOURCE=2 -fstack-protector-all' + go build -compiler gc '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags '-linkmode=external -compressdwarf=false -X main.version=9.2.10 -X main.buildstamp= -B 0x56e0be8f5a252ac93a2575d850a9a1f0f0f046b2 -extldflags '\''-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'\''' -a -v -x -o /builddir/build/BUILD/bin/grafana-cli ./pkg/cmd/grafana-cli WORK=/tmp/go-build137394224 go: ignoring package golang.org/x/sys/internal/unsafeheader which exists in the vendor directory but is missing from vendor/modules.txt. To sync the vendor directory run go mod vendor. vendor/golang.org/x/sys/unix/syscall.go:33:2: cannot find module providing package golang.org/x/sys/internal/unsafeheader: import lookup disabled by -mod=vendor (Go version in go.mod is at least 1.14 and vendor directory exists.) RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.cLAlNi (%build) Bad exit status from /var/tmp/rpm-tmp.cLAlNi (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grafana.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 loongarch64 --nodeps /builddir/build/SPECS/grafana.spec