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-19590-4257/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.11-2.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-19590-4257/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.ARjgl7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/grafana-7.5.11.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-7.5.11 + /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.11-1.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-7.5.11 + /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.11-1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-7.5.11 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (001-wrappers-grafana-cli.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 Patch #1 (001-wrappers-grafana-cli.patch): 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 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 #11 (011-CVE-2021-43813.patch): + echo 'Patch #11 (011-CVE-2021-43813.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pkg/plugins/plugins.go + mkdir -p /builddir/build/BUILD/src/github.com/grafana + ln -s /builddir/build/BUILD/grafana-7.5.11 /builddir/build/BUILD/src/github.com/grafana/grafana + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OBnho4 + umask 022 + cd /builddir/build/BUILD + cd grafana-7.5.11 + cd /builddir/build/BUILD/src/github.com/grafana/grafana + export GOPATH=/builddir/build/BUILD + GOPATH=/builddir/build/BUILD + export 'LDFLAGS=-X main.version=7.5.11 -X main.buildstamp=' + LDFLAGS='-X main.version=7.5.11 -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.11 -X main.buildstamp= -B 0xfe9713c9e792160b48888abba38df8c5dbaeef81 -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-build311061015 vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go:22:2: cannot find package "." in: /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/crypto/boring error: Bad exit status from /var/tmp/rpm-tmp.OBnho4 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.OBnho4 (%build) 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