Mock Version: 1.4.13 Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/f32-build-118917-36336/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=432000uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --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 BUILDSTDERR: warning: extra tokens at the end of %else directive in line 665: %else # released_kernel BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 674: %endif # released_kernel BUILDSTDERR: warning: Macro expanded in comment on line 748: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: warning: Macro expanded in comment on line 749: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: warning: Macro expanded in comment on line 757: %{rpmversion}-redhat.patch BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 999: %endif # with_perf BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1054: %endif # with_tools BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1075: %endif # with_bpftool BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2258: %endif #turbostat/x86_energy_perf_policy BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2480: %endif #turbostat/x86_energy_perf_policy BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2741: %endif # with_perf BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2762: %endif # cpupowerarchs BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2786: %endif # with_tools Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1576108800 BUILDSTDERR: error: Bad file: /builddir/build/SOURCES/0002-SiFive-Unleashed-CPUFreq.patch: No such file or directory RPM build errors: BUILDSTDERR: extra tokens at the end of %else directive in line 665: %else # released_kernel BUILDSTDERR: extra tokens at the end of %endif directive in line 674: %endif # released_kernel BUILDSTDERR: Macro expanded in comment on line 748: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: Macro expanded in comment on line 749: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: Macro expanded in comment on line 757: %{rpmversion}-redhat.patch BUILDSTDERR: extra tokens at the end of %endif directive in line 999: %endif # with_perf BUILDSTDERR: extra tokens at the end of %endif directive in line 1054: %endif # with_tools BUILDSTDERR: extra tokens at the end of %endif directive in line 1075: %endif # with_bpftool BUILDSTDERR: extra tokens at the end of %endif directive in line 2258: %endif #turbostat/x86_energy_perf_policy BUILDSTDERR: extra tokens at the end of %endif directive in line 2480: %endif #turbostat/x86_energy_perf_policy BUILDSTDERR: extra tokens at the end of %endif directive in line 2741: %endif # with_perf BUILDSTDERR: extra tokens at the end of %endif directive in line 2762: %endif # cpupowerarchs BUILDSTDERR: extra tokens at the end of %endif directive in line 2786: %endif # with_tools BUILDSTDERR: Bad file: /builddir/build/SOURCES/0002-SiFive-Unleashed-CPUFreq.patch: No such file or directory Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/kernel.spec