Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/grafana.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-363966-45061/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --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-12.4.3-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/grafana.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-363966-45061/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.meiLRb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf grafana-12.4.3-security-02 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/grafana-12.4.3-security-02.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/grafana-12.4.3-security-02.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-12.4.3-security-02 + /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-12.4.3-1.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-12.4.3-security-02 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf plugins-bundled + cd /builddir/build/BUILD + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/grafana-webpack-12.4.3-1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-12.4.3-security-02 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #3002 (0002-add-manpages.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 Patch #3002 (0002-add-manpages.patch): 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 Hunk #3 succeeded at 515 (offset 2 lines). patching file pkg/extensions/enterprise_imports.go 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 #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/wrappers/grafana patching file packaging/wrappers/grafana-cli patching file packaging/wrappers/grafana-server patching file packaging/rpm/systemd/grafana-server.service Patch #3013 (0013-fix-CVE-2025-4123.patch): + echo 'Patch #3013 (0013-fix-CVE-2025-4123.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file conf/defaults.ini Patch #3501 (CVE-2026-27136-and-CVE-2026-39831-upgrade-x-net-and-x-crypto.patch): + echo 'Patch #3501 (CVE-2026-27136-and-CVE-2026-39831-upgrade-x-net-and-x-crypto.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file go.mod patching file go.sum Patch #3504 (0004-fix-promlib-vendor-replace.patch): + echo 'Patch #3504 (0004-fix-promlib-vendor-replace.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file go.mod patching file go.sum Patch #3505 (1001-vendor-patch-removed-backend-crypto.patch): + echo 'Patch #3505 (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/argon2/argon2.go patching file vendor/golang.org/x/crypto/bcrypt/bcrypt.go patching file vendor/golang.org/x/crypto/cast5/cast5.go patching file vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305.go patching file vendor/golang.org/x/crypto/cryptobyte/cryptobyte.go patching file vendor/golang.org/x/crypto/curve25519/curve25519.go patching file vendor/golang.org/x/crypto/hkdf/hkdf.go patching file vendor/golang.org/x/crypto/md4/md4.go patching file vendor/golang.org/x/crypto/nacl/box/box.go patching file vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go patching file vendor/golang.org/x/crypto/pkcs12/pkcs12.go patching file vendor/golang.org/x/crypto/scrypt/scrypt.go patching file vendor/golang.org/x/crypto/sha3/sha3.go patching file vendor/modernc.org/sqlite/lib/lib.go /usr/bin/patch: **** malformed patch at line 270: diff --git a/vendor/modernc.org/sqlite/sqlite.go b/vendor/modernc.org/sqlite/sqlite.go error: Bad exit status from /var/tmp/rpm-tmp.meiLRb (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.meiLRb (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/grafana.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 597, 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 x86_64 --nodeps /builddir/build/SPECS/grafana.spec