Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/shim.spec'], chrootPath='/var/lib/mock/fedora-38-x86_64-1681982564.283550/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l2bbmb50:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l2bbmb50:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '5dcd61f0182f499d891a2d9679e3f6a9', '-D', '/var/lib/mock/fedora-38-x86_64-1681982564.283550/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l2bbmb50:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/shim.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1657152000 Wrote: /builddir/build/SRPMS/shim-15.6-3.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/shim.spec'], chrootPath='/var/lib/mock/fedora-38-x86_64-1681982564.283550/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l2bbmb50:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l2bbmb50:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '309f30cc74a6476cb86e35165f72391a', '-D', '/var/lib/mock/fedora-38-x86_64-1681982564.283550/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.l2bbmb50:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/shim.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1657152000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Zbellm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shim-15.6 + mkdir shim-15.6 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pbtZ8U + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd shim-15.6 + '[' no = yes ']' + cp /builddir/build/SOURCES/shimia32.efi shimia32.efi + '[' no = yes ']' + '[' no = no ']' + '[' no = yes ']' + cp -av /usr/share/shim/15.6-3/ia32/mmia32.efi mmia32-unsigned.efi '/usr/share/shim/15.6-3/ia32/mmia32.efi' -> 'mmia32-unsigned.efi' + /usr/libexec/pesign/pesign-rpmbuild-helper x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in mmia32-unsigned.efi --out mmia32-signed.efi --sign + main x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in mmia32-unsigned.efi --out mmia32-signed.efi --sign + [[ 20 -lt 3 ]] + local target_cpu=x86_64 + shift + local bin=/usr/bin/pesign + shift + local client=/usr/bin/pesign-client + shift + local rhelcafile= + local rhelcertfile= + certout=() + local certout + sattrout=() + local sattrout + input=() + local input + output=() + local output + client_token=() + local client_token + client_cert=() + local client_cert + token=() + local token + cert=() + local cert + rhelcert=() + local rhelcert + local rhelver=0 + local sign= + local arch= + local vendor= + local HOSTNAME= + [[ 17 -ge 2 ]] + case " ${1} " in + client_token[0]=-t + client_token[1]='OpenSC Card (Fedora Signer)' + shift + shift + [[ 15 -ge 2 ]] + case " ${1} " in + client_cert[0]=-c + client_cert[1]='/CN=Fedora Secure Boot Signer' + shift + shift + [[ 13 -ge 2 ]] + case " ${1} " in + cert[0]=-c + cert[1]='Red Hat Test Certificate' + shift + shift + [[ 11 -ge 2 ]] + case " ${1} " in + HOSTNAME=copr-hv-x86-64-03-prod-01570583-20230420-091724 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user gloriouseggroll' + shift + shift + [[ 7 -ge 2 ]] + case " ${1} " in + rhelcert[0]=-c + rhelcert[1]='Red Hat Test Certificate' + shift + shift + [[ 5 -ge 2 ]] + case " ${1} " in + input[0]=-i + input[1]=mmia32-unsigned.efi + shift + shift + [[ 3 -ge 2 ]] + case " ${1} " in + output[0]=-o + output[1]=mmia32-signed.efi + shift + shift + [[ 1 -ge 2 ]] + [[ 1 -ge 1 ]] + [[ --sign = --sign ]] + sign=-s + shift + [[ 0 -ge 1 ]] + [[ -z x86_64 ]] + target_cpu=x86_64 + target_cpu=x64 + target_cpu=x64 + target_cpu=x64 + local nssdir=/etc/pki/pesign + [[ 2 -eq 2 ]] + [[ Red Hat Test Certificate == \R\e\d\ \H\a\t\ \T\e\s\t\ \C\e\r\t\i\f\i\c\a\t\e ]] + nssdir=/etc/pki/pesign-rh-test + [[ -x /usr/bin/pesign ]] + is_efi_arch x64 + local arch=x64 + arches=('aa64' 'ia32' 'x64') + local arches + local x + for x in "${arches[@]}" + [[ x64 = \a\a\6\4 ]] + for x in "${arches[@]}" + [[ x64 = \i\a\3\2 ]] + for x in "${arches[@]}" + [[ x64 = \x\6\4 ]] + return 0 ++ id -un + USERNAME=mockbuild + local socket= + [[ -S /run/pesign/socket ]] + [[ -S /var/run/pesign/socket ]] + grep -q ID=fedora /etc/os-release + [[ 0 -lt 7 ]] + [[ mockbuild = \m\o\c\k\b\u\i\l\d ]] + [[ Fedora Copr - user gloriouseggroll = \F\e\d\o\r\a\ \P\r\o\j\e\c\t ]] + [[ 0 -ge 7 ]] + [[ -n '' ]] + /usr/bin/pesign --certdir /etc/pki/pesign-rh-test -c 'Red Hat Test Certificate' -s -i mmia32-unsigned.efi -o mmia32-signed.efi + [[ 2 -eq 2 ]] + error_on_empty mmia32-signed.efi + local f=mmia32-signed.efi + [[ ! -s mmia32-signed.efi ]] + mv mmia32-signed.efi mmia32.efi + cp -av /usr/share/shim/15.6-3/ia32/fbia32.efi fbia32-unsigned.efi '/usr/share/shim/15.6-3/ia32/fbia32.efi' -> 'fbia32-unsigned.efi' + /usr/libexec/pesign/pesign-rpmbuild-helper x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in fbia32-unsigned.efi --out fbia32-signed.efi --sign + main x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in fbia32-unsigned.efi --out fbia32-signed.efi --sign + [[ 20 -lt 3 ]] + local target_cpu=x86_64 + shift + local bin=/usr/bin/pesign + shift + local client=/usr/bin/pesign-client + shift + local rhelcafile= + local rhelcertfile= + certout=() + local certout + sattrout=() + local sattrout + input=() + local input + output=() + local output + client_token=() + local client_token + client_cert=() + local client_cert + token=() + local token + cert=() + local cert + rhelcert=() + local rhelcert + local rhelver=0 + local sign= + local arch= + local vendor= + local HOSTNAME= + [[ 17 -ge 2 ]] + case " ${1} " in + client_token[0]=-t + client_token[1]='OpenSC Card (Fedora Signer)' + shift + shift + [[ 15 -ge 2 ]] + case " ${1} " in + client_cert[0]=-c + client_cert[1]='/CN=Fedora Secure Boot Signer' + shift + shift + [[ 13 -ge 2 ]] + case " ${1} " in + cert[0]=-c + cert[1]='Red Hat Test Certificate' + shift + shift + [[ 11 -ge 2 ]] + case " ${1} " in + HOSTNAME=copr-hv-x86-64-03-prod-01570583-20230420-091724 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user gloriouseggroll' + shift + shift + [[ 7 -ge 2 ]] + case " ${1} " in + rhelcert[0]=-c + rhelcert[1]='Red Hat Test Certificate' + shift + shift + [[ 5 -ge 2 ]] + case " ${1} " in + input[0]=-i + input[1]=fbia32-unsigned.efi + shift + shift + [[ 3 -ge 2 ]] + case " ${1} " in + output[0]=-o + output[1]=fbia32-signed.efi + shift + shift + [[ 1 -ge 2 ]] + [[ 1 -ge 1 ]] + [[ --sign = --sign ]] + sign=-s + shift + [[ 0 -ge 1 ]] + [[ -z x86_64 ]] + target_cpu=x86_64 + target_cpu=x64 + target_cpu=x64 + target_cpu=x64 + local nssdir=/etc/pki/pesign + [[ 2 -eq 2 ]] + [[ Red Hat Test Certificate == \R\e\d\ \H\a\t\ \T\e\s\t\ \C\e\r\t\i\f\i\c\a\t\e ]] + nssdir=/etc/pki/pesign-rh-test + [[ -x /usr/bin/pesign ]] + is_efi_arch x64 + local arch=x64 + arches=('aa64' 'ia32' 'x64') + local arches + local x + for x in "${arches[@]}" + [[ x64 = \a\a\6\4 ]] + for x in "${arches[@]}" + [[ x64 = \i\a\3\2 ]] + for x in "${arches[@]}" + [[ x64 = \x\6\4 ]] + return 0 ++ id -un + USERNAME=mockbuild + local socket= + [[ -S /run/pesign/socket ]] + [[ -S /var/run/pesign/socket ]] + grep -q ID=fedora /etc/os-release + [[ 0 -lt 7 ]] + [[ mockbuild = \m\o\c\k\b\u\i\l\d ]] + [[ Fedora Copr - user gloriouseggroll = \F\e\d\o\r\a\ \P\r\o\j\e\c\t ]] + [[ 0 -ge 7 ]] + [[ -n '' ]] + /usr/bin/pesign --certdir /etc/pki/pesign-rh-test -c 'Red Hat Test Certificate' -s -i fbia32-unsigned.efi -o fbia32-signed.efi + [[ 2 -eq 2 ]] + error_on_empty fbia32-signed.efi + local f=fbia32-signed.efi + [[ ! -s fbia32-signed.efi ]] + mv fbia32-signed.efi fbia32.efi + rm -vf mmia32-unsigned.efi fbia32-unsigned.efi shimia32-unsigned.efi removed 'mmia32-unsigned.efi' removed 'fbia32-unsigned.efi' + '[' yes = yes ']' + pesign -i /builddir/build/SOURCES/shimx64.efi -h -P ++ cat shim.hash ++ cut -d ' ' -f 1 + hash0=8653878d599c622096ae8ec690765ef3f821a2aa94a6c23dcd5813195a206b89 ++ cat /usr/share/shim/15.6-3/x64/shimx64.hash ++ cut -d ' ' -f 1 + hash1=8653878d599c622096ae8ec690765ef3f821a2aa94a6c23dcd5813195a206b89 + [[ 8653878d599c622096ae8ec690765ef3f821a2aa94a6c23dcd5813195a206b89 != \8\6\5\3\8\7\8\d\5\9\9\c\6\2\2\0\9\6\a\e\8\e\c\6\9\0\7\6\5\e\f\3\f\8\2\1\a\2\a\a\9\4\a\6\c\2\3\d\c\d\5\8\1\3\1\9\5\a\2\0\6\b\8\9 ]] + cp /builddir/build/SOURCES/shimx64.efi shimx64.efi + '[' no = yes ']' + '[' yes = no ']' + cp -av /usr/share/shim/15.6-3/x64/mmx64.efi mmx64-unsigned.efi '/usr/share/shim/15.6-3/x64/mmx64.efi' -> 'mmx64-unsigned.efi' + /usr/libexec/pesign/pesign-rpmbuild-helper x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in mmx64-unsigned.efi --out mmx64-signed.efi --sign + main x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in mmx64-unsigned.efi --out mmx64-signed.efi --sign + [[ 20 -lt 3 ]] + local target_cpu=x86_64 + shift + local bin=/usr/bin/pesign + shift + local client=/usr/bin/pesign-client + shift + local rhelcafile= + local rhelcertfile= + certout=() + local certout + sattrout=() + local sattrout + input=() + local input + output=() + local output + client_token=() + local client_token + client_cert=() + local client_cert + token=() + local token + cert=() + local cert + rhelcert=() + local rhelcert + local rhelver=0 + local sign= + local arch= + local vendor= + local HOSTNAME= + [[ 17 -ge 2 ]] + case " ${1} " in + client_token[0]=-t + client_token[1]='OpenSC Card (Fedora Signer)' + shift + shift + [[ 15 -ge 2 ]] + case " ${1} " in + client_cert[0]=-c + client_cert[1]='/CN=Fedora Secure Boot Signer' + shift + shift + [[ 13 -ge 2 ]] + case " ${1} " in + cert[0]=-c + cert[1]='Red Hat Test Certificate' + shift + shift + [[ 11 -ge 2 ]] + case " ${1} " in + HOSTNAME=copr-hv-x86-64-03-prod-01570583-20230420-091724 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user gloriouseggroll' + shift + shift + [[ 7 -ge 2 ]] + case " ${1} " in + rhelcert[0]=-c + rhelcert[1]='Red Hat Test Certificate' + shift + shift + [[ 5 -ge 2 ]] + case " ${1} " in + input[0]=-i + input[1]=mmx64-unsigned.efi + shift + shift + [[ 3 -ge 2 ]] + case " ${1} " in + output[0]=-o + output[1]=mmx64-signed.efi + shift + shift + [[ 1 -ge 2 ]] + [[ 1 -ge 1 ]] + [[ --sign = --sign ]] + sign=-s + shift + [[ 0 -ge 1 ]] + [[ -z x86_64 ]] + target_cpu=x86_64 + target_cpu=x64 + target_cpu=x64 + target_cpu=x64 + local nssdir=/etc/pki/pesign + [[ 2 -eq 2 ]] + [[ Red Hat Test Certificate == \R\e\d\ \H\a\t\ \T\e\s\t\ \C\e\r\t\i\f\i\c\a\t\e ]] + nssdir=/etc/pki/pesign-rh-test + [[ -x /usr/bin/pesign ]] + is_efi_arch x64 + local arch=x64 + arches=('aa64' 'ia32' 'x64') + local arches + local x + for x in "${arches[@]}" + [[ x64 = \a\a\6\4 ]] + for x in "${arches[@]}" + [[ x64 = \i\a\3\2 ]] + for x in "${arches[@]}" + [[ x64 = \x\6\4 ]] + return 0 ++ id -un + USERNAME=mockbuild + local socket= + [[ -S /run/pesign/socket ]] + [[ -S /var/run/pesign/socket ]] + grep -q ID=fedora /etc/os-release + [[ 0 -lt 7 ]] + [[ mockbuild = \m\o\c\k\b\u\i\l\d ]] + [[ Fedora Copr - user gloriouseggroll = \F\e\d\o\r\a\ \P\r\o\j\e\c\t ]] + [[ 0 -ge 7 ]] + [[ -n '' ]] + /usr/bin/pesign --certdir /etc/pki/pesign-rh-test -c 'Red Hat Test Certificate' -s -i mmx64-unsigned.efi -o mmx64-signed.efi + [[ 2 -eq 2 ]] + error_on_empty mmx64-signed.efi + local f=mmx64-signed.efi + [[ ! -s mmx64-signed.efi ]] + mv mmx64-signed.efi mmx64.efi + cp -av /usr/share/shim/15.6-3/x64/fbx64.efi fbx64-unsigned.efi '/usr/share/shim/15.6-3/x64/fbx64.efi' -> 'fbx64-unsigned.efi' + /usr/libexec/pesign/pesign-rpmbuild-helper x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in fbx64-unsigned.efi --out fbx64-signed.efi --sign + main x86_64 /usr/bin/pesign /usr/bin/pesign-client --client-token 'OpenSC Card (Fedora Signer)' --client-cert '/CN=Fedora Secure Boot Signer' --cert 'Red Hat Test Certificate' --hostname copr-hv-x86-64-03-prod-01570583-20230420-091724 --vendor 'Fedora Copr - user gloriouseggroll' --rhelcert 'Red Hat Test Certificate' --in fbx64-unsigned.efi --out fbx64-signed.efi --sign + [[ 20 -lt 3 ]] + local target_cpu=x86_64 + shift + local bin=/usr/bin/pesign + shift + local client=/usr/bin/pesign-client + shift + local rhelcafile= + local rhelcertfile= + certout=() + local certout + sattrout=() + local sattrout + input=() + local input + output=() + local output + client_token=() + local client_token + client_cert=() + local client_cert + token=() + local token + cert=() + local cert + rhelcert=() + local rhelcert + local rhelver=0 + local sign= + local arch= + local vendor= + local HOSTNAME= + [[ 17 -ge 2 ]] + case " ${1} " in + client_token[0]=-t + client_token[1]='OpenSC Card (Fedora Signer)' + shift + shift + [[ 15 -ge 2 ]] + case " ${1} " in + client_cert[0]=-c + client_cert[1]='/CN=Fedora Secure Boot Signer' + shift + shift + [[ 13 -ge 2 ]] + case " ${1} " in + cert[0]=-c + cert[1]='Red Hat Test Certificate' + shift + shift + [[ 11 -ge 2 ]] + case " ${1} " in + HOSTNAME=copr-hv-x86-64-03-prod-01570583-20230420-091724 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user gloriouseggroll' + shift + shift + [[ 7 -ge 2 ]] + case " ${1} " in + rhelcert[0]=-c + rhelcert[1]='Red Hat Test Certificate' + shift + shift + [[ 5 -ge 2 ]] + case " ${1} " in + input[0]=-i + input[1]=fbx64-unsigned.efi + shift + shift + [[ 3 -ge 2 ]] + case " ${1} " in + output[0]=-o + output[1]=fbx64-signed.efi + shift + shift + [[ 1 -ge 2 ]] + [[ 1 -ge 1 ]] + [[ --sign = --sign ]] + sign=-s + shift + [[ 0 -ge 1 ]] + [[ -z x86_64 ]] + target_cpu=x86_64 + target_cpu=x64 + target_cpu=x64 + target_cpu=x64 + local nssdir=/etc/pki/pesign + [[ 2 -eq 2 ]] + [[ Red Hat Test Certificate == \R\e\d\ \H\a\t\ \T\e\s\t\ \C\e\r\t\i\f\i\c\a\t\e ]] + nssdir=/etc/pki/pesign-rh-test + [[ -x /usr/bin/pesign ]] + is_efi_arch x64 + local arch=x64 + arches=('aa64' 'ia32' 'x64') + local arches + local x + for x in "${arches[@]}" + [[ x64 = \a\a\6\4 ]] + for x in "${arches[@]}" + [[ x64 = \i\a\3\2 ]] + for x in "${arches[@]}" + [[ x64 = \x\6\4 ]] + return 0 ++ id -un + USERNAME=mockbuild + local socket= + [[ -S /run/pesign/socket ]] + [[ -S /var/run/pesign/socket ]] + grep -q ID=fedora /etc/os-release + [[ 0 -lt 7 ]] + [[ mockbuild = \m\o\c\k\b\u\i\l\d ]] + [[ Fedora Copr - user gloriouseggroll = \F\e\d\o\r\a\ \P\r\o\j\e\c\t ]] + [[ 0 -ge 7 ]] + [[ -n '' ]] + /usr/bin/pesign --certdir /etc/pki/pesign-rh-test -c 'Red Hat Test Certificate' -s -i fbx64-unsigned.efi -o fbx64-signed.efi + [[ 2 -eq 2 ]] + error_on_empty fbx64-signed.efi + local f=fbx64-signed.efi + [[ ! -s fbx64-signed.efi ]] + mv fbx64-signed.efi fbx64.efi + rm -vf mmx64-unsigned.efi fbx64-unsigned.efi shimx64-unsigned.efi removed 'mmx64-unsigned.efi' removed 'fbx64-unsigned.efi' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.d8f2ak + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/shim-15.6-3.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/shim-15.6-3.x86_64 ++ dirname /builddir/build/BUILDROOT/shim-15.6-3.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/shim-15.6-3.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + rm -rf /builddir/build/BUILDROOT/shim-15.6-3.x86_64 + cd shim-15.6 + install -D -d -m 0755 /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/BOOT/ + install -m 0700 shimx64.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/shimx64.efi + install -m 0700 mmx64.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/mmx64.efi + install -m 0700 /builddir/build/SOURCES/BOOTX64.CSV /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/BOOTX64.CSV + install -m 0700 shimx64.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/BOOT/BOOTX64.EFI + install -m 0700 fbx64.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/BOOT/fbx64.efi + install -m 0700 shimia32.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/shimia32.efi + install -m 0700 mmia32.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/mmia32.efi + install -m 0700 /builddir/build/SOURCES/BOOTIA32.CSV /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/BOOTIA32.CSV + install -m 0700 shimia32.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/BOOT/BOOTIA32.EFI + install -m 0700 fbia32.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/BOOT/fbia32.efi + install -m 0700 /builddir/build/SOURCES/shimx64.efi /builddir/build/BUILDROOT/shim-15.6-3.x86_64/boot/efi/EFI/fedora/shim.efi + install -D -d -m 0755 /builddir/build/BUILDROOT/shim-15.6-3.x86_64/etc/dnf/protected.d/ + install -m 0644 /builddir/build/SOURCES/shim.conf /builddir/build/BUILDROOT/shim-15.6-3.x86_64/etc/dnf/protected.d/ + sed -e 's/\./\^/' -e 's,^\\\./,.*/,' -e 's,$,$,' + cd /builddir/build/BUILDROOT/shim-15.6-3.x86_64 + find ./boot/efi -type f + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs --files-from /builddir/build/BUILD/shim-x64-15.6-3.x86_64-shebangs.txt + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: shim-x64-15.6-3.x86_64 Provides: bundled(openssl) = 1.0.2j shim = 15.6-3 shim-signed = 15.6-3 shim-signed-x64 = 15.6-3 shim-x64 = 15.6-3 shim-x64(x86-64) = 15.6-3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Conflicts: fwupd < 1.5.8 grub2-efi-x64 < 2.06~rc1 Obsoletes: shim < 15.6-3 shim-signed < 15.6-3 Processing files: shim-ia32-15.6-3.x86_64 Provides: bundled(openssl) = 1.0.2j shim-ia32 = 15.6-3 shim-ia32(x86-64) = 15.6-3 shim-signed-ia32 = 15.6-3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Conflicts: fwupd < 1.5.8 grub2-efi-ia32 < 2.06~rc1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/shim-15.6-3.x86_64 Wrote: /builddir/build/RPMS/shim-ia32-15.6-3.x86_64.rpm Wrote: /builddir/build/RPMS/shim-x64-15.6-3.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.EO67Yl + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/shim-15.6-3.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.8jcnlw + umask 022 + cd /builddir/build/BUILD + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0