Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/shim-signed.spec'], chrootPath='/var/lib/mock/shim-signed-12-1.el7.centos.0.1-20180425153924-24345/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1006) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/shim-signed.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/shim-signed-12-1.el7.centos.0.1.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/shim-signed.spec'], chrootPath='/var/lib/mock/shim-signed-12-1.el7.centos.0.1-20180425153924-24345/root'shell=Falseuid=1006env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/shim-signed.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eB2a6m + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shim-signed-12 + /usr/bin/mkdir -p shim-signed-12 + cd shim-signed-12 + /usr/bin/gzip -dc /builddir/build/SOURCES/mokutil-0.3.0.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + git init Initialized empty Git repository in /builddir/build/BUILD/shim-signed-12/.git/ + git config user.email example@example.com + git config user.name 'rpmbuild -bp' + git add . + git commit -a -q -m '12 baseline.' + cd mokutil-0.3.0 + git am --ignore-whitespace --directory=mokutil-0.3.0 /builddir/build/SOURCES/0001-Fix-the-potential-buffer-overflow.patch /builddir/build/SOURCES/0002-Fix-the-32bit-signedness-comparison.patch /builddir/build/SOURCES/0003-Build-with-fshort-wchar-so-toggle-passwords-work-rig.patch /builddir/build/SOURCES/0004-Don-t-allow-sha1-on-the-mokutil-command-line.patch /builddir/build/SOURCES/0005-Make-all-efi_guid_t-const.patch /builddir/build/SOURCES/0006-mokutil-be-explicit-about-file-modes-in-all-cases.patch /builddir/build/SOURCES/0007-Add-bash-completion-file.patch Applying: Fix the potential buffer overflow Applying: Fix the 32bit signedness comparison Applying: Build with -fshort-wchar so toggle passwords work right. Applying: Don't allow sha1 on the mokutil command line. Applying: Make all efi_guid_t const Applying: mokutil: be explicit about file modes in all cases. Applying: Add bash completion file. + git config --unset user.email + git config --unset user.name + cd .. + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ibIana + umask 022 + cd /builddir/build/BUILD + cd shim-signed-12 + pesign -i /builddir/build/SOURCES/shimx64.efi -h -P + cmp shimx64.hash /usr/share/shim/x64-12-1.el7.centos/shimx64.hash shimx64.hash /usr/share/shim/x64-12-1.el7.centos/shimx64.hash differ: char 8, line 1 + echo Invalid 'signature!' Invalid signature! ++ cat /usr/share/shim/x64-12-1.el7.centos/shimx64.hash + echo saved hash is hash: e7157ca89c4323645f2ed6b91fb6d2180272e21add6cccaecfc9d8b180464a28 saved hash is hash: e7157ca89c4323645f2ed6b91fb6d2180272e21add6cccaecfc9d8b180464a28 ++ cat shimx64.hash + echo shimx64.efi hash is hash: eb86fa1386fe6e4533b8b938dcc1250616d2f1c14c15e2fcf80834a161018a0a shimx64.efi hash is hash: eb86fa1386fe6e4533b8b938dcc1250616d2f1c14c15e2fcf80834a161018a0a + exit 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.ibIana (%build) Bad exit status from /var/tmp/rpm-tmp.ibIana (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/shim-signed.spec