Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/grafana.spec'], chrootPath='/var/lib/mock/dist-oc8-build-37116-12253/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 --target x86_64 --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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/grafana-7.5.15-4.oc8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps --nocheck /builddir/build/SPECS/grafana.spec'], chrootPath='/var/lib/mock/dist-oc8-build-37116-12253/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 -bb --target x86_64 --nodeps --nocheck /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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9l2rE0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/grafana-7.5.15.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-7.5.15 + /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-7.5.15-1.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-7.5.15 + /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-7.5.15-1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-7.5.15 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (001-wrappers-grafana-cli.patch):' Patch #1 (001-wrappers-grafana-cli.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file packaging/wrappers/grafana-cli Patch #2 (002-manpages.patch): + echo 'Patch #2 (002-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 (003-fix-dashboard-abspath-test.patch): + echo 'Patch #3 (003-fix-dashboard-abspath-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/services/provisioning/dashboards/file_reader_linux_test.go patching file pkg/services/provisioning/dashboards/file_reader_test.go Patch #5 (005-remove-unused-dependencies.patch): + echo 'Patch #5 (005-remove-unused-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 #6 (006-fix-gtime-test-32bit.patch): + echo 'Patch #6 (006-fix-gtime-test-32bit.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/components/gtime/gtime_test.go Patch #8 (008-remove-unused-frontend-crypto.patch): + echo 'Patch #8 (008-remove-unused-frontend-crypto.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file package.json patching file scripts/webpack/webpack.common.js patching file yarn.lock Patch #9 (009-patch-unused-backend-crypto.patch): + echo 'Patch #9 (009-patch-unused-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 Patch #10 (010-fips.patch): + echo 'Patch #10 (010-fips.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/internal/boring/openssl_pbkdf2.h patching file vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go Patch #12 (012-support-go1.18.patch): + echo 'Patch #12 (012-support-go1.18.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file go.mod patching file go.sum Patch #13 (013-CVE-2021-23648.patch): + echo 'Patch #13 (013-CVE-2021-23648.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file package.json patching file packages/grafana-data/package.json patching file yarn.lock Patch #14 (014-CVE-2022-21698.patch): + echo 'Patch #14 (014-CVE-2022-21698.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file go.mod patching file go.sum Patch #15 (015-CVE-2022-21698.vendor.patch): + echo 'Patch #15 (015-CVE-2022-21698.vendor.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file vendor/github.com/grafana/loki/pkg/logcli/client/client.go Patch #16 (016-fix-CVE-2022-31107.patch): + echo 'Patch #16 (016-fix-CVE-2022-31107.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/api/ldap_debug.go patching file pkg/api/login_oauth.go patching file pkg/login/ldap_login.go patching file pkg/models/user_auth.go patching file pkg/services/contexthandler/authproxy/authproxy.go patching file pkg/services/login/login.go patching file pkg/services/login/login_test.go patching file pkg/services/sqlstore/user_auth.go patching file pkg/services/sqlstore/user_auth_test.go patching file pkg/services/sqlstore/user_test.go Patch #17 (017-fix-CVE-2022-39229.patch): + echo 'Patch #17 (017-fix-CVE-2022-39229.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/services/sqlstore/user.go patching file pkg/services/sqlstore/user_test.go + mkdir -p /builddir/build/BUILD/src/github.com/grafana + ln -s /builddir/build/BUILD/grafana-7.5.15 /builddir/build/BUILD/src/github.com/grafana/grafana + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vyXdNa + umask 022 + cd /builddir/build/BUILD + cd grafana-7.5.15 + cd /builddir/build/BUILD/src/github.com/grafana/grafana + export GOPATH=/builddir/build/BUILD + GOPATH=/builddir/build/BUILD + export GOEXPERIMENT=boringcrypto + GOEXPERIMENT=boringcrypto + export 'LDFLAGS=-X main.version=7.5.15 -X main.buildstamp=' + LDFLAGS='-X main.version=7.5.15 -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 -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags '-linkmode=external -compressdwarf=false -X main.version=7.5.15 -X main.buildstamp= -B 0xbb23e2feeeb815ac8807cc3bc004b44ddb70b972 -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 go: unknown GOEXPERIMENT boringcrypto error: Bad exit status from /var/tmp/rpm-tmp.vyXdNa (%build) Bad exit status from /var/tmp/rpm-tmp.vyXdNa (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] 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 --target x86_64 --nodeps --nocheck /builddir/build/SPECS/grafana.spec