Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-221906-62163/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/kernel.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: noarch Building for target noarch Wrote: /builddir/build/SRPMS/kernel-4.18.0-425.13.1.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-221906-62163/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/kernel.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: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xArkY5 + umask 022 + cd /builddir/build/BUILD + patch_command='patch -p1 -F1 -s' + cd /builddir/build/BUILD + rm -rf kernel-4.18.0-425.13.1.el8_7 + /usr/bin/mkdir -p kernel-4.18.0-425.13.1.el8_7 + cd kernel-4.18.0-425.13.1.el8_7 + /usr/bin/xz -dc /builddir/build/SOURCES/linux-4.18.0-425.13.1.el8_7.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv linux-4.18.0-425.13.1.el8_7 linux-4.18.0-425.13.1.0.1.an8.noarch + cd linux-4.18.0-425.13.1.0.1.an8.noarch + ApplyOptionalPatch linux-kernel-test.patch + local patch=linux-kernel-test.patch + shift + '[' '!' -f /builddir/build/SOURCES/linux-kernel-test.patch ']' ++ wc -l /builddir/build/SOURCES/linux-kernel-test.patch ++ awk '{print $1}' + local C=0 + '[' 0 -gt 9 ']' + ApplyOptionalPatch repair-dwarves-causes-kernel-compilation-to-fail.patch + local patch=repair-dwarves-causes-kernel-compilation-to-fail.patch + shift + '[' '!' -f /builddir/build/SOURCES/repair-dwarves-causes-kernel-compilation-to-fail.patch ']' ++ wc -l /builddir/build/SOURCES/repair-dwarves-causes-kernel-compilation-to-fail.patch ++ awk '{print $1}' + local C=11 + '[' 11 -gt 9 ']' + ApplyPatch repair-dwarves-causes-kernel-compilation-to-fail.patch + local patch=repair-dwarves-causes-kernel-compilation-to-fail.patch + shift + '[' '!' -f /builddir/build/SOURCES/repair-dwarves-causes-kernel-compilation-to-fail.patch ']' Patch1000: repair-dwarves-causes-kernel-compilation-to-fail.patch + case "$patch" in + patch -p1 -F1 -s The text leading up to this was: -------------------------- |--- Makefile.orig 2022-10-07 22:45:37.000000000 +0800 |+++ Makefile 2023-02-22 15:37:33.069118145 +0800 -------------------------- File to patch: Skip this patch? [y] 1 out of 1 hunk ignored error: Bad exit status from /var/tmp/rpm-tmp.xArkY5 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.xArkY5 (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/kernel.spec\n', 1)] 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 --noclean --target noarch --nodeps /builddir/build/SPECS/kernel.spec