Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grafana.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-310349-32471/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=983gid=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 /etc/profile.d/colorxzgrep.sh: line 1: /usr/libexec/grepconf.sh: No such file or directory Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/grafana-10.2.6-8.ocs23.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='/home/lib/mock/dist-ocs23-base-build-310349-32471/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=983gid=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 /etc/profile.d/colorxzgrep.sh: line 1: /usr/libexec/grepconf.sh: No such file or directory Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SzoBvF + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/grafana-10.2.6.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-10.2.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/grafana-vendor-10.2.6-7.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-10.2.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -r plugins-bundled + cd /builddir/build/BUILD + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/grafana-webpack-10.2.6-7.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-10.2.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (0001-v10.3.x-Alerting-Fix-incorrect-permission-on-POST-ex.patch): + echo 'Patch #1 (0001-v10.3.x-Alerting-Fix-incorrect-permission-on-POST-ex.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pkg/services/ngalert/api/authorization.go Hunk #1 succeeded at 75 (offset -18 lines). Patch #2 (0001-CVE-2024-11741-victorops-url.patch): + echo 'Patch #2 (0001-CVE-2024-11741-victorops-url.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pkg/services/ngalert/api/tooling/definitions/contact_points.go Hunk #1 succeeded at 222 (offset -1 lines). patching file pkg/services/ngalert/notifier/channels_config/available_channels.go Patch #3001 (0001-update-grafana-cli-script-with-distro-specific-paths.patch): + echo 'Patch #3001 (0001-update-grafana-cli-script-with-distro-specific-paths.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file packaging/wrappers/grafana-cli Patch #3002 (0002-add-manpages.patch): + echo 'Patch #3002 (0002-add-manpages.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file docs/man/man1/grafana-cli.1 patching file docs/man/man1/grafana-server.1 Patch #3003 (0003-update-default-configuration.patch): + echo 'Patch #3003 (0003-update-default-configuration.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file conf/defaults.ini patching file conf/sample.ini Patch #3004 (0004-remove-unused-backend-dependencies.patch): + echo 'Patch #3004 (0004-remove-unused-backend-dependencies.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file go.mod patching file go.sum patching file pkg/extensions/main.go Patch #3005 (0005-remove-unused-frontend-crypto.patch): patching file package.json + echo 'Patch #3005 (0005-remove-unused-frontend-crypto.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file yarn.lock Patch #3006 (0006-skip-marketplace-plugin-install-test.patch): + echo 'Patch #3006 (0006-skip-marketplace-plugin-install-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pkg/tests/api/plugins/api_plugins_test.go Patch #3007 (0007-redact-weak-ciphers.patch): + echo 'Patch #3007 (0007-redact-weak-ciphers.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pkg/api/http_server.go Patch #3008 (0008-replace-faulty-slices-sort.patch): + echo 'Patch #3008 (0008-replace-faulty-slices-sort.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pkg/services/sqlstore/migrator/dialect.go Patch #3009 (0009-update-wrappers-and-systemd-with-distro-paths.patch): + echo 'Patch #3009 (0009-update-wrappers-and-systemd-with-distro-paths.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file packaging/rpm/systemd/grafana-server.service patching file packaging/wrappers/grafana patching file packaging/wrappers/grafana-server Patch #3010 (0010-remove-bcrypt-references.patch): + echo 'Patch #3010 (0010-remove-bcrypt-references.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pkg/services/extsvcauth/oauthserver/oasimpl/service.go Patch #3011 (0011-fix-dompurify-CVE.patch): + echo 'Patch #3011 (0011-fix-dompurify-CVE.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file package.json Hunk #1 succeeded at 435 (offset 3 lines). patching file packages/grafana-data/package.json patching file yarn.lock Hunk #2 succeeded at 14437 (offset -41 lines). Patch #3012 (0012-fix-jwt-CVE.patch): + echo 'Patch #3012 (0012-fix-jwt-CVE.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file go.mod Hunk #1 succeeded at 163 (offset -1 lines). patching file go.sum Patch #3501 (1001-vendor-patch-removed-backend-crypto.patch): + echo 'Patch #3501 (1001-vendor-patch-removed-backend-crypto.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file vendor/golang.org/x/crypto/openpgp/elgamal/elgamal.go patching file vendor/github.com/prometheus/exporter-toolkit/web/handler.go patching file vendor/github.com/prometheus/exporter-toolkit/web/tls_config.go Hunk #2 succeeded at 218 (offset -39 lines). Hunk #3 succeeded at 311 (offset -39 lines). patching file vendor/github.com/ProtonMail/go-crypto/openpgp/internal/algorithm/cipher.go patching file vendor/github.com/ProtonMail/go-crypto/openpgp/s2k/s2k.go patching file vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetrically_encrypted_aead.go patching file vendor/github.com/ProtonMail/go-crypto/openpgp/read.go patching file vendor/github.com/google/s2a-go/internal/record/internal/aeadcrypter/chachapoly.go patching file vendor/github.com/google/s2a-go/internal/record/internal/halfconn/halfconn.go patching file vendor/github.com/google/s2a-go/internal/record/internal/halfconn/expander.go patching file vendor/github.com/Masterminds/sprig/v3/crypto.go patching file vendor/github.com/microsoft/go-mssqldb/integratedauth/ntlm/ntlm.go patching file vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/client_certificate_credential.go patching file vendor/github.com/Azure/go-autorest/autorest/adal/persist.go patching file vendor/github.com/Azure/go-ntlmssp/nlmp.go patching file vendor/github.com/ory/fosite/hash_bcrypt.go patching file vendor/filippo.io/age/internal/stream/stream.go patching file vendor/filippo.io/age/primitives.go patching file vendor/filippo.io/age/scrypt.go patching file vendor/filippo.io/age/x25519.go patching file vendor/gopkg.in/square/go-jose.v2/asymmetric.go patching file vendor/gopkg.in/square/go-jose.v2/jwk.go patching file vendor/gopkg.in/square/go-jose.v2/signing.go patching file vendor/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope.go patching file vendor/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes_extended_nonce.go patching file vendor/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope.go patching file vendor/k8s.io/apiserver/pkg/storage/value/encrypt/secretbox/secretbox.go patching file vendor/k8s.io/apiserver/pkg/server/config.go Patch #3502 (1002-vendor-Redacted-Url-in-logs.patch): + echo 'Patch #3502 (1002-vendor-Redacted-Url-in-logs.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file vendor/github.com/hashicorp/go-retryablehttp/client.go Patch #3503 (1003-vendor-grafana-plugin-sdk-go-Remove-repo-info-from-binary.patch): + echo 'Patch #3503 (1003-vendor-grafana-plugin-sdk-go-Remove-repo-info-from-binary.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file vendor/github.com/grafana/grafana-plugin-sdk-go/build/common.go patching file vendor/github.com/grafana/grafana-plugin-sdk-go/build/info.go Patch #3504 (1004-Update-victorops-to-support-loading-url-from-secrets.patch): + echo 'Patch #3504 (1004-Update-victorops-to-support-loading-url-from-secrets.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file vendor/github.com/grafana/alerting/notify/receivers.go Hunk #1 succeeded at 491 (offset 96 lines). patching file vendor/github.com/grafana/alerting/receivers/victorops/config.go + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8HTPc2 + umask 022 + cd /builddir/build/BUILD + cd grafana-10.2.6 + export GOEXPERIMENT=boringcrypto + GOEXPERIMENT=boringcrypto + export 'LDFLAGS=-X main.version=10.2.6 -X main.buildstamp=' + LDFLAGS='-X main.version=10.2.6 -X main.buildstamp=' + for cmd in grafana grafana-cli grafana-server ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + GO111MODULE=auto + go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -ldflags '-X main.version=10.2.6 -X main.buildstamp= -B 0x0d6c99439810e7dd786f89ffbe863f80cf34d3e6 -compressdwarf=false -linkmode=external -extldflags '\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 '\''' -a -v -x -o /builddir/build/BUILD/bin/grafana ./pkg/cmd/grafana WORK=/tmp/go-build3960538540