Mock Version: 3.1 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-rawhide-x86_64-1660759173.993107/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.pon6330c:/etc/resolv.conf', '--bind=/dev/btrfs-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=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pon6330c:/etc/resolv.conf', '--bind=/dev/btrfs-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', '0bc680070383401f90c9d8e89e53a1b9', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1660759173.993107/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pon6330c:/etc/resolv.conf', '--bind=/dev/btrfs-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=1660694400 Wrote: /builddir/build/SRPMS/shim-15.6-202.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-rawhide-x86_64-1660759173.993107/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.pon6330c:/etc/resolv.conf', '--bind=/dev/btrfs-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=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pon6330c:/etc/resolv.conf', '--bind=/dev/btrfs-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', '327821d803a04f87a3e1138e1f5671bf', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1660759173.993107/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pon6330c:/etc/resolv.conf', '--bind=/dev/btrfs-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=1660694400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WxySYg + 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.2QbPg8 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -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,-D_FORTIFY_SOURCE=2 -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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + 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 -Wl,-dT,/builddir/build/BUILD/.package_note-shim-15.6-202.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' + /usr/lib/rpm/generate-rpm-note.sh shim 15.6-202 x86_64 + 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-1/ia32/mmia32.efi mmia32-unsigned.efi '/usr/share/shim/15.6-1/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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user rharwood' + 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 rharwood = \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-1/ia32/fbia32.efi fbia32-unsigned.efi '/usr/share/shim/15.6-1/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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user rharwood' + 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 rharwood = \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 + read file0 hash0 + read file1 hash1 + '[' 2d78d880ab1b08b8757b5bdd52104ae1fc38421e22b1e7a18d84e3c6000dc305 = 2d78d880ab1b08b8757b5bdd52104ae1fc38421e22b1e7a18d84e3c6000dc305 ']' + cp /builddir/build/SOURCES/shimx64.efi shimx64.efi + '[' no = yes ']' + '[' yes = no ']' + cp -av /usr/share/shim/15.6-1/x64/mmx64.efi mmx64-unsigned.efi '/usr/share/shim/15.6-1/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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user rharwood' + 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 rharwood = \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-1/x64/fbx64.efi fbx64-unsigned.efi '/usr/share/shim/15.6-1/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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 --vendor 'Fedora Copr - user rharwood' --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-02-prod-02028884-20220817-174013 + shift + shift + [[ 9 -ge 2 ]] + case " ${1} " in + vendor='Fedora Copr - user rharwood' + 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 rharwood = \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.KpRoEv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/shim-15.6-202.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/shim-15.6-202.x86_64 ++ dirname /builddir/build/BUILDROOT/shim-15.6-202.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/shim-15.6-202.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -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,-D_FORTIFY_SOURCE=2 -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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + 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 -Wl,-dT,/builddir/build/BUILD/.package_note-shim-15.6-202.x86_64.ld' + 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-202.x86_64 + cd shim-15.6 + install -D -d -m 0755 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/boot/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/boot/efi/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/boot/efi/EFI/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/boot/efi/EFI/fedora/ + install -D -d -m 0700 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/boot/efi/EFI/BOOT/ + install -D -m 0755 /builddir/build/SOURCES/shim-booted.service -t /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/systemd/system/ + install -d -m 0755 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/systemd/system/multi-user.target.wants + ln -s ../shim-booted.service /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/systemd/system/multi-user.target.wants + install -d -m 0755 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/libexec + install -m 0700 /builddir/build/SOURCES/shimctl /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/libexec/shimctl-x64-15.6-202 + mkdir -pm 0700 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202 + install -m 0700 shimx64.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/shimx64.efi + install -m 0700 mmx64.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/mmx64.efi + install -m 0700 /builddir/build/SOURCES/BOOTX64.CSV /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/BOOTX64.CSV + install -m 0700 shimx64.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/BOOTX64.EFI + install -m 0700 fbx64.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/fbx64.efi + mkdir -pm 0700 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202 + install -m 0700 shimia32.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/shimia32.efi + install -m 0700 mmia32.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/mmia32.efi + install -m 0700 /builddir/build/SOURCES/BOOTIA32.CSV /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/BOOTIA32.CSV + install -m 0700 shimia32.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/BOOTIA32.EFI + install -m 0700 fbia32.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/fbia32.efi + install -m 0700 /builddir/build/SOURCES/shimx64.efi /builddir/build/BUILDROOT/shim-15.6-202.x86_64/usr/lib/shim-x64-15.6-202/shim.efi + install -D -d -m 0755 /builddir/build/BUILDROOT/shim-15.6-202.x86_64/etc/dnf/protected.d/ + install -m 0644 /builddir/build/SOURCES/shim.conf /builddir/build/BUILDROOT/shim-15.6-202.x86_64/etc/dnf/protected.d/ + cd /builddir/build/BUILDROOT/shim-15.6-202.x86_64 + sed -e 's/\./\^/' -e 's,^\\\./,.*/,' -e 's,$,$,' + 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-202.x86_64-shebangs.txt *** WARNING: ./usr/lib/shim-x64-15.6-202/BOOTIA32.CSV is executable but has no shebang, removing executable bit *** WARNING: ./usr/lib/shim-x64-15.6-202/BOOTX64.CSV is executable but has no shebang, removing executable bit *** WARNING: ./usr/lib/systemd/system/shim-booted.service is executable but has no shebang, removing executable bit + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: shim-x64-15.6-202.x86_64 Provides: bundled(openssl) = 1.0.2j shim = 15.6-202 shim-signed = 15.6-202 shim-signed-x64 = 15.6-202 shim-x64 = 15.6-202 shim-x64(x86-64) = 15.6-202 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Requires: /usr/bin/python3 Conflicts: fwupd < 1.5.8 grub2-efi-x64 < 2.06~rc1 Processing files: shim-ia32-15.6-202.x86_64 Provides: bundled(openssl) = 1.0.2j shim-ia32 = 15.6-202 shim-ia32(x86-64) = 15.6-202 shim-signed-ia32 = 15.6-202 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 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-202.x86_64 Wrote: /builddir/build/RPMS/shim-ia32-15.6-202.x86_64.rpm Wrote: /builddir/build/RPMS/shim-x64-15.6-202.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.I5Tk4H + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/shim-15.6-202.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.bLSbRA + umask 022 + cd /builddir/build/BUILD + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0