Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/edk2.spec'], chrootPath='/var/lib/mock/dist-an23-build-168450-58839/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/edk2.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1663632000 Wrote: /builddir/build/SRPMS/edk2-20220826gitba0e0e4c6a17-1.an23.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/edk2.spec'], chrootPath='/var/lib/mock/dist-an23-build-168450-58839/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/edk2.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1663632000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.J6oqJ2 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf edk2-ba0e0e4c6a17 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/edk2-ba0e0e4c6a17.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd edk2-ba0e0e4c6a17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + PATCHCOUNT=20 + PATCHLIST=/tmp/lua_aJaZ6A + git init -q + git config user.name rpm-build + git config user.email rpm-build + git config core.whitespace cr-at-eol + git config am.keepcr true + git add -A . + git commit -q -a --author 'rpm-build ' -m 'edk2-ba0e0e4c6a17 base' ++ grep '\.patch$' /tmp/lua_aJaZ6A ++ wc -l + COUNT=20 + '[' 20 -ne 20 ']' + '[' 20 -gt 0 ']' ++ cat /tmp/lua_aJaZ6A + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0001-BaseTools-do-not-build-BrotliCompress-RH-only.patch warning: quoted CRLF detected Applying: BaseTools: do not build BrotliCompress (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0002-MdeModulePkg-remove-package-private-Brotli-include-p.patch warning: quoted CRLF detected Applying: MdeModulePkg: remove package-private Brotli include path (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0003-OvmfPkg-increase-max-debug-message-length-to-512-RHE.patch warning: quoted CRLF detected Applying: OvmfPkg: increase max debug message length to 512 (RHEL only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0005-MdeModulePkg-TerminalDxe-set-xterm-resolution-on-mod.patch warning: quoted CRLF detected Applying: MdeModulePkg: TerminalDxe: set xterm resolution on mode change (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0006-OvmfPkg-take-PcdResizeXterm-from-the-QEMU-command-li.patch warning: quoted CRLF detected Applying: OvmfPkg: take PcdResizeXterm from the QEMU command line (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0007-ArmVirtPkg-take-PcdResizeXterm-from-the-QEMU-command.patch warning: quoted CRLF detected Applying: ArmVirtPkg: take PcdResizeXterm from the QEMU command line (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0008-OvmfPkg-allow-exclusion-of-the-shell-from-the-firmwa.patch warning: quoted CRLF detected Applying: OvmfPkg: allow exclusion of the shell from the firmware image (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0009-ArmPlatformPkg-introduce-fixed-PCD-for-early-hello-m.patch warning: quoted CRLF detected Applying: ArmPlatformPkg: introduce fixed PCD for early hello message (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0010-ArmPlatformPkg-PrePeiCore-write-early-hello-message-.patch warning: quoted CRLF detected Applying: ArmPlatformPkg: PrePeiCore: write early hello message to the serial port (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0011-ArmVirtPkg-set-early-hello-message-RH-only.patch warning: quoted CRLF detected Applying: ArmVirtPkg: set early hello message (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0013-OvmfPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuVide.patch warning: quoted CRLF detected Applying: OvmfPkg: silence DEBUG_VERBOSE (0x00400000) in QemuVideoDxe/QemuRamfbDxe (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0014-ArmVirtPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuR.patch warning: quoted CRLF detected Applying: ArmVirtPkg: silence DEBUG_VERBOSE (0x00400000) in QemuRamfbDxe (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0015-OvmfPkg-QemuRamfbDxe-Do-not-report-DXE-failure-on-Aa.patch warning: quoted CRLF detected Applying: OvmfPkg: QemuRamfbDxe: Do not report DXE failure on Aarch64 silent builds (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0016-OvmfPkg-silence-EFI_D_VERBOSE-0x00400000-in-NvmExpre.patch warning: quoted CRLF detected Applying: OvmfPkg: silence EFI_D_VERBOSE (0x00400000) in NvmExpressDxe (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0017-CryptoPkg-OpensslLib-list-RHEL8-specific-OpenSSL-fil.patch warning: quoted CRLF detected Applying: CryptoPkg/OpensslLib: list RHEL8-specific OpenSSL files in the INFs (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0018-OvmfPkg-QemuKernelLoaderFsDxe-suppress-error-on-no-k.patch warning: quoted CRLF detected Applying: OvmfPkg/QemuKernelLoaderFsDxe: suppress error on no "-kernel" in silent aa64 build (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0019-SecurityPkg-Tcg2Dxe-suppress-error-on-no-swtpm-in-si.patch warning: quoted CRLF detected Applying: SecurityPkg/Tcg2Dxe: suppress error on no swtpm in silent aa64 build (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0020-Tweak-the-tools_def-to-support-cross-compiling.patch warning: quoted CRLF detected Applying: Tweak the tools_def to support cross-compiling. Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0021-tools_def-add-fno-omit-frame-pointer-to-GCC48_-IA32-.patch warning: quoted CRLF detected Applying: tools_def: add -fno-omit-frame-pointer to GCC48_{IA32,X64}_CC_FLAGS Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0022-OvmfPkg-QemuVideoDxe-fix-bochs-mode-init.patch warning: quoted CRLF detected Applying: OvmfPkg/QemuVideoDxe: fix bochs mode init Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + echo 'Applied 20 patches' Applied 20 patches + rm -f /tmp/lua_aJaZ6A + cd /builddir/build/BUILD + cd edk2-ba0e0e4c6a17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'edk2-20220826gitba0e0e4c6a17 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-BaseTools-do-not-build-BrotliCompress-RH-only.patch + /usr/bin/git am --reject -q warning: quoted CRLF detected Checking patch BaseTools/Source/C/GNUmakefile... error: while searching for: LIBRARIES = Common? VFRAUTOGEN = VfrCompile/VfrLexer.h? APPLICATIONS = \? BrotliCompress \? VfrCompile \? EfiRom \? GenFfs \? error: patch failed: BaseTools/Source/C/GNUmakefile:48 Patch failed at 0001 BaseTools: do not build BrotliCompress (RH only) When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". Applying patch BaseTools/Source/C/GNUmakefile with 1 reject... Rejected hunk #1. hint: Use 'git am --show-current-patch=diff' to see the failed patch RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.J6oqJ2 (%prep) Bad exit status from /var/tmp/rpm-tmp.J6oqJ2 (%prep) Child return code was: 1 EXCEPTION: [Error()] 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 600, 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 --target x86_64 --nodeps /builddir/build/SPECS/edk2.spec