Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/grafana-pcp.spec'], chrootPath='/var/lib/mock/dist-an8.4-build-23263-12816/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/grafana-pcp.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-pcp-3.0.2-1.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/grafana-pcp.spec'], chrootPath='/var/lib/mock/dist-an8.4-build-23263-12816/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/grafana-pcp.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.eI3IBt + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/grafana-pcp-3.0.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-pcp-3.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + /usr/bin/xz -dc /builddir/build/SOURCES/grafana-pcp-vendor-3.0.2.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-pcp-3.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/grafana-pcp-webpack-3.0.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grafana-pcp-3.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1000 (0001-grafana-pcp-anolis-rebrand.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 Patch #1000 (0001-grafana-pcp-anolis-rebrand.patch): can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -Nuar grafana-pcp-1.0.5/node_modules/platform/platform.js grafana-pcp-1.0.5.orig/node_modules/platform/platform.js |--- grafana-pcp-1.0.5/node_modules/platform/platform.js 2019-08-02 21:18:19.000000000 +0800 |+++ grafana-pcp-1.0.5.orig/node_modules/platform/platform.js 2021-02-01 05:43:31.373790115 +0800 -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file node_modules/ua-parser-js/dist/ua-parser.min.js Hunk #1 FAILED at 6. 1 out of 1 hunk FAILED -- saving rejects to file node_modules/ua-parser-js/dist/ua-parser.min.js.rej patching file node_modules/ua-parser-js/dist/ua-parser.pack.js Hunk #1 FAILED at 6. 1 out of 1 hunk FAILED -- saving rejects to file node_modules/ua-parser-js/dist/ua-parser.pack.js.rej patching file node_modules/ua-parser-js/src/ua-parser.js Hunk #1 succeeded at 748 (offset 32 lines). Hunk #2 succeeded at 762 (offset 32 lines). patching file node_modules/ua-parser-js/test/os-test.json Hunk #1 succeeded at 477 (offset 9 lines). error: Bad exit status from /var/tmp/rpm-tmp.eI3IBt (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.eI3IBt (%prep) 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 600, 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 /builddir/build/SPECS/grafana-pcp.spec