Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/grub2.spec'], chrootPath='/var/lib/mock/dist-an23-build-python3.11-373752-71565/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=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r3xeyiki:/etc/resolv.conf', '--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=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r3xeyiki:/etc/resolv.conf', '--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', '031dd19d2bae49af87f2d717490e229a', '-D', '/var/lib/mock/dist-an23-build-python3.11-373752-71565/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.r3xeyiki:/etc/resolv.conf', '--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', '--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 --noclean --target noarch --nodeps /builddir/build/SPECS/grub2.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 warning: Macro expanded in comment on line 11: %{_exec_prefix}/lib warning: Macro expanded in comment on line 35: %{nil} sh: line 1: %{drop_cflag_rules}: command not found warning: Macro expanded in comment on line 37: %(echo %{build_cflags} %{?_hardening_cflags} | %{drop_cflag_rules}) warning: Macro expanded in comment on line 38: (echo %{host_cflags} | sed -e 's/-m64//g' -e 's/-mcpu=power[[:alnum:]]\\+/-mcpu=power6/g') warning: Macro expanded in comment on line 39: (echo %{host_cflags}) sh: line 1: %{drop_cflag_rules}: command not found warning: Macro expanded in comment on line 41: %(echo %{build_cflags} | %{drop_cflag_rules}) warning: Macro expanded in comment on line 42: (echo %{target_cflags} | sed -e 's/-m64//g' -e 's/-mcpu=power[[:alnum:]]\\+/-mcpu=power6/g') warning: Macro expanded in comment on line 43: (echo %{target_cflags}) sh: line 1: %{drop_ldflags_rules}: command not found warning: Macro expanded in comment on line 49: %(echo %{build_ldflags} %{?_hardening_ldflags} | %{drop_ldflags_rules}) warning: Macro expanded in comment on line 50: (echo %{host_ldflags}) warning: Macro expanded in comment on line 51: (echo %{host_ldflags}) sh: line 1: %{drop_ldflags_rules}: command not found warning: Macro expanded in comment on line 53: %(echo %{build_ldflags} -static | %{drop_ldflags_rules}) warning: Macro expanded in comment on line 54: (echo %{target_ldflags}) warning: Macro expanded in comment on line 55: (echo %{target_ldflags}) warning: Macro expanded in comment on line 62: %{_arch} warning: Macro expanded in comment on line 63: %{nil} warning: Macro expanded in comment on line 64: %{nil} warning: Macro expanded in comment on line 69: %{_arch} warning: Macro expanded in comment on line 71: %{_arch} warning: Macro expanded in comment on line 77: %{efi_arch} warning: Macro expanded in comment on line 91: %{_arch} warning: Macro expanded in comment on line 92: %{_arch}-efi warning: Macro expanded in comment on line 117: %{efi_arch} warning: Macro expanded in comment on line 11: %{?_with_ccache: 1}%{?!_with_ccache: 0} warning: Macro expanded in comment on line 12: %{_lib}/ccache/gcc warning: Macro expanded in comment on line 14: %{__cc} warning: Macro expanded in comment on line 50: %{nil} sh: line 1: %{cflags_sed}: command not found warning: Macro expanded in comment on line 52: %{expand:%%(echo %{build_cflags} %{?_hardening_cflags} | %{cflags_sed})} sh: -c: line 6: syntax error: unexpected end of file warning: Macro expanded in comment on line 59: %global legacy_host_cflags \\\ # %{expand:%%(echo %{host_cflags} | \\\ # %{cflags_sed} \\\ # -e 's/-m64//g' \\\ # -e 's/-mcpu=power[[:alnum:]]\\+/-mcpu=power6/g' \\\ # )} warning: Macro expanded in comment on line 61: %{expand:%%(echo %{host_cflags})} sh: line 1: %{cflags_sed}: command not found warning: Macro expanded in comment on line 64: %{expand:%%(echo %{build_cflags} | %{cflags_sed})} sh: line 2: \#: command not found warning: Macro expanded in comment on line 71: %{expand:%%(echo %{target_cflags} | \\\ # %{cflags_sed} \\\ # -e 's/-m64//g' \\\ # -e 's/-mcpu=power[[:alnum:]]\\+/-mcpu=power6/g' \\\ # )} warning: Macro expanded in comment on line 73: %{expand:%%(echo %{target_cflags})} warning: Macro expanded in comment on line 80: %{nil} sh: line 1: %{ldflags_sed}: command not found warning: Macro expanded in comment on line 84: %global host_ldflags %{expand:%%(echo %{build_ldflags} %{?_hardening_ldflags} | %{ldflags_sed})} sh: line 2: \#: command not found warning: Macro expanded in comment on line 89: %{expand:%%(echo %{host_ldflags} | \\\ # %{ldflags_sed} \\\ # )} warning: Macro expanded in comment on line 91: %{expand:%%(echo %{host_ldflags})} sh: line 1: %{ldflags_sed}: command not found warning: Macro expanded in comment on line 94: %{expand:%%(echo %{build_ldflags} -static | %{ldflags_sed})} sh: line 2: \#: command not found warning: Macro expanded in comment on line 99: %{expand:%%(echo %{target_ldflags} | \\\ # %{ldflags_sed} \\\ # )} warning: Macro expanded in comment on line 101: %{expand:%%(echo %{target_ldflags})} warning: Macro expanded in comment on line 108: %{_arch} warning: Macro expanded in comment on line 109: %{nil} warning: Macro expanded in comment on line 110: %{nil} warning: Macro expanded in comment on line 120: %{sparc} warning: Macro expanded in comment on line 122: %{_vendor}-%{_target_os}%{?_gnu} warning: Macro expanded in comment on line 123: %{_arch} warning: Macro expanded in comment on line 131: %{_arch} warning: Macro expanded in comment on line 133: %{_arch} warning: Macro expanded in comment on line 135: %{_vendor}-%{_target_os}%{?_gnu} warning: Macro expanded in comment on line 148: %{arm} riscv64 loongarch64 warning: Macro expanded in comment on line 150: %{efi_arch} warning: Macro expanded in comment on line 160: %global without_efi_arch 0} warning: Macro expanded in comment on line 161: %global without_efi_arch 1} warning: Macro expanded in comment on line 162: %global without_efi_only 0} warning: Macro expanded in comment on line 163: %global without_efi_only 1} warning: Macro expanded in comment on line 180: %{arm} riscv64 warning: Macro expanded in comment on line 184: %{ix86} warning: Macro expanded in comment on line 235: %{arm} sh: line 2: \#%: command not found warning: Macro expanded in comment on line 246: %{expand:%%(echo %{optflags} | \\\ #% %{cflags_sed} \\\ # -e 's/-march=armv7-a[[:alnum:]+-]*/&+nofp/g' \\\ # -e 's/-mfpu=[[:alnum:]-]\\+//g' \\\ # -e 's/-mfloat-abi=[[:alpha:]]\\+/-mfloat-abi=soft/g' \\\ # )} warning: Macro expanded in comment on line 257: %{_vendor}-%{_target_os}%{?_gnu} warning: Macro expanded in comment on line 258: %{_vendor}-%{_target_os}%{?_gnu} warning: Macro expanded in comment on line 274: %{?alt_efi_arch:1} warning: Macro expanded in comment on line 289: %{version}-%{release} warning: Macro expanded in comment on line 345: %{name} = %{evr} \ #Obsoletes: %{name} < %{evr} \ #Requires: %{name}-common = %{evr} \ #Requires: %{name}-tools-minimal = %{evr} \ #Requires: %{name}-%{1}-modules = %{evr} \ #Requires: gettext which file \ #Requires: %{name}-tools-extra = %{evr} \ #Requires: %{name}-tools = %{evr} \ #Requires(pre): dracut \ #Requires(post): dracut \ #%%{expand:%%description %%{1}} \ #%%{desc} \ #This subpackage provides support for %{1} systems. \ # \ #%%{expand:%%{?!buildsubdir:%%define buildsubdir grub-%%{1}-%{tarversion}}}\ #%%{expand:%%if 0%%{with_legacy_modules} \ #%%package %%{1}-modules \ #%Summary: Modules used to build custom grub images \ #Group: System Environment/Base \ #BuildArch: noarch \ #Requires: %%{name}-common = %%{evr} \ #%%description %%{1}-modules \ #%%{desc} \ #This subpackage provides support for rebuilding your own grub.efi. \ #%%endif \ #} \ # \ #%%{expand:%%{?!buildsubdir:%%define buildsubdir grub-%%{1}-%{tarversion}}}\ #%%{expand:%%package %%{1}-tools} \ #Summary: Support tools for GRUB. \ #Group: System Environment/Base \ #Requires: gettext os-prober which file system-logos \ #Requires: %{name}-common = %{evr} \ #Requires: %{name}-tools-minimal = %{evr} \ #Requires: os-prober >= 1.58-11 \ #Requires: gettext which file \ # \ #%%{expand:%%description %%{1}-tools} \ #%%{desc} \ #This subpackage provides tools for support of %%{1} platforms. \ #%%{nil} warning: Macro expanded in comment on line 401: %{name}-common = %{evr} \ #Requires: %{name}-tools-minimal >= %{evr} \ #Requires: %{name}-tools-extra = %{evr} \ #Requires: %{name}-tools = %{evr} \ #Requires(pre): %{name}-tools = %{evr} \ #Requires(postun): %{name}-tools = %{evr} \ #Provides: %{name}-efi = %{evr} \ #%%{?legacy_provides:Provides: %{name} = %{evr}} \ #%%{-o:Obsoletes: %{name}-efi < %{evr}} \ # \ #%%{expand:%%description %{1}} \ #%%{desc} \ #This subpackage provides support for %{1} systems. \ #%%pre %{1} \ #res=$(grub2-probe /boot) \ #if [ "xvfat" != "x$res" -a "xfat" != "x$res" ]; then \ # ln -sf ../efi/EFI/%{efi_vendor}/grubenv /boot/grub2/grubenv \ #fi \ # \ #%%postun %{1} \ #if [ "x0" == "x$1" ]; then \ # res=$(grub2-probe /boot) \ # if [ "xvfat" != "x$res" -a "xfat" != "x$res" ]; then \ # rm -f /boot/grub2/grubenv \ # fi \ #fi \ # \ #%%{expand:%%{?!buildsubdir:%%define buildsubdir grub-%{1}-%{tarversion}}}\ #%%{expand:%if 0%{?with_efi_modules} \ #%%{expand:%%package %{1}-modules} \ #Summary: Modules used to build custom grub.efi images \ #Group: System Environment/Base \ #BuildArch: noarch \ #Requires: %{name}-common = %{evr} \ #Provides: %{name}-efi-modules = %{evr} \ #Obsoletes: %{name}-efi-modules < %{evr} \ #%%{expand:%%description %{1}-modules} \ #%%{desc} \ #This subpackage provides support for rebuilding your own grub.efi. \ #%%endif} \ # \ #%%{expand:%%package %{1}-cdboot} \ #Summary: Files used to boot removeable media with EFI \ #Group: System Environment/Base \ #Requires: %{name}-common = %{evr} \ #Provides: %{name}-efi-cdboot = %{evr} \ #%%{expand:%%description %{1}-cdboot} \ #%%{desc} \ #This subpackage provides optional components of grub used with removeable media on %{1} systems.\ #%%{nil} error: no such patch \ 2< (%error) error: lua script failed: [string "autopatch"]:21: error expanding macro 1< (%lua) 0< (%autopatch) %setup -n grub-2.12 -q /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 "grub2-2.12 base" /usr/bin/git checkout --track -b rpm-build rm -fv docs/*.info \ cp /builddir/build/SOURCES/bootstrap bootstrap \ cp /builddir/build/SOURCES/bootstrap.conf bootstrap.conf \ cp /builddir/build/SOURCES/gnulib-9f48fb992a3d7e96610c4ce8be969cff2d61a01b.tar.gz gnulib-9f48fb992a3d7e96610c4ce8be969cff2d61a01b.tar.gz \ tar -zxf gnulib-9f48fb992a3d7e96610c4ce8be969cff2d61a01b.tar.gz \ mv gnulib-9f48fb992a3d7e96610c4ce8be969cff2d61a01b gnulib \ git add . \ git commit -aqm "modify done" \ Building target platforms: noarch Building for target noarch Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 031dd19d2bae49af87f2d717490e229a -D /var/lib/mock/dist-an23-build-python3.11-373752-71565/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.r3xeyiki:/etc/resolv.conf --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 --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 --noclean --target noarch --nodeps /builddir/build/SPECS/grub2.spec\n', 1)] 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 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 031dd19d2bae49af87f2d717490e229a -D /var/lib/mock/dist-an23-build-python3.11-373752-71565/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.r3xeyiki:/etc/resolv.conf --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 --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 --noclean --target noarch --nodeps /builddir/build/SPECS/grub2.spec