Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/java-1.8.0-openjdk.spec'], chrootPath='/mnt/mock/kojid//dist-an23-build-483688-74313/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=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/java-1.8.0-openjdk.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 Package nss was not found in the pkg-config search path. Perhaps you should add the directory containing `nss.pc' to the PKG_CONFIG_PATH environment variable Package 'nss', required by 'virtual:world', not found Package nss-softokn was not found in the pkg-config search path. Perhaps you should add the directory containing `nss-softokn.pc' to the PKG_CONFIG_PATH environment variable Package 'nss-softokn', required by 'virtual:world', not found Package nss-softokn was not found in the pkg-config search path. Perhaps you should add the directory containing `nss-softokn.pc' to the PKG_CONFIG_PATH environment variable Package 'nss-softokn', required by 'virtual:world', not found Package nss was not found in the pkg-config search path. Perhaps you should add the directory containing `nss.pc' to the PKG_CONFIG_PATH environment variable Package 'nss', required by 'virtual:world', not found warning: %patchN is deprecated (18 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1762300800 Wrote: /builddir/build/SRPMS/java-1.8.0-openjdk-1.8.0.472.b08-1.an23.src.rpm RPM build warnings: %patchN is deprecated (18 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/java-1.8.0-openjdk.spec'], chrootPath='/mnt/mock/kojid//dist-an23-build-483688-74313/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=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/java-1.8.0-openjdk.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 warning: %patchN is deprecated (18 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1762300800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Nc1EbX + umask 022 CPU: riscv64, arch install directory: riscv64, SystemTap install directory: + cd /builddir/build/BUILD + echo 'CPU: riscv64, arch install directory: riscv64, SystemTap install directory: ' + '[' 1 -eq 0 -o 1 -eq 1 ']' include_normal_build is 1 include_debug_build is 1 include_fastdebug_build is 1 + echo 'include_normal_build is 1' + '[' 1 -eq 0 -o 1 -eq 1 ']' + echo 'include_debug_build is 1' + '[' 1 -eq 0 -o 1 -eq 1 ']' + echo 'include_fastdebug_build is 1' + '[' 1 -eq 0 -a 1 -eq 0 -a 1 -eq 0 ']' + echo 'Update version: 472' + echo 'Build number: b08' + echo 'Milestone: fcs' + cd /builddir/build/BUILD + rm -rf java-1.8.0-openjdk-1.8.0.472.b08-1.an23.riscv64 Update version: 472 Build number: b08 Milestone: fcs + /usr/bin/mkdir -p java-1.8.0-openjdk-1.8.0.472.b08-1.an23.riscv64 + cd java-1.8.0-openjdk-1.8.0.472.b08-1.an23.riscv64 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/shenandoah8u472-b08.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . ++ expr length 1800472 + prioritylength=7 + '[' 7 -ne 7 ']' + ln -s shenandoah8u472-b08 jdk8 + cp /builddir/build/SOURCES/README.md . + cp /builddir/build/SOURCES/config.guess shenandoah8u472-b08/common/autoconf/build-aux/ + cp /builddir/build/SOURCES/config.sub shenandoah8u472-b08/common/autoconf/build-aux/ Patch #1 (rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch): + echo 'Patch #1 (rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file jdk8/jdk/src/share/classes/java/awt/Toolkit.java Patch #3 (rh1648644-java_access_bridge_privileged_security.patch): + echo 'Patch #3 (rh1648644-java_access_bridge_privileged_security.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 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 --git openjdk.orig/jdk/src/share/lib/security/java.security-linux openjdk/jdk/src/share/lib/security/java.security-linux |--- openjdk.orig/jdk/src/share/lib/security/java.security-linux |+++ openjdk/jdk/src/share/lib/security/java.security-linux -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored error: Bad exit status from /var/tmp/rpm-tmp.Nc1EbX (%prep) %patchN is deprecated (18 usages found), use %patch N (or %patch -P N) RPM build warnings: RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Nc1EbX (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/java-1.8.0-openjdk.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 riscv64 --nodeps /builddir/build/SPECS/java-1.8.0-openjdk.spec