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 aarch64 --nodeps /builddir/build/SPECS/kexec-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-274241-64202/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/kexec-tools.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/kexec-tools-2.0.24-6.0.4.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/kexec-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-274241-64202/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/kexec-tools.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tRem4Y + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kexec-tools-2.0.24 + /usr/bin/xz -dc /builddir/build/SOURCES/kexec-tools-2.0.24.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd kexec-tools-2.0.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir -p -m755 kcp + tar -z -x -v -f /builddir/build/SOURCES/1.7.1.tar.gz makedumpfile-1.7.1/ makedumpfile-1.7.1/.gitignore makedumpfile-1.7.1/COPYING makedumpfile-1.7.1/IMPLEMENTATION makedumpfile-1.7.1/Makefile makedumpfile-1.7.1/README makedumpfile-1.7.1/arch/ makedumpfile-1.7.1/arch/arm.c makedumpfile-1.7.1/arch/arm64.c makedumpfile-1.7.1/arch/ia64.c makedumpfile-1.7.1/arch/mips64.c makedumpfile-1.7.1/arch/ppc.c makedumpfile-1.7.1/arch/ppc64.c makedumpfile-1.7.1/arch/s390x.c makedumpfile-1.7.1/arch/sparc64.c makedumpfile-1.7.1/arch/x86.c makedumpfile-1.7.1/arch/x86_64.c makedumpfile-1.7.1/cache.c makedumpfile-1.7.1/cache.h makedumpfile-1.7.1/common.h makedumpfile-1.7.1/detect_cycle.c makedumpfile-1.7.1/detect_cycle.h makedumpfile-1.7.1/diskdump_mod.h makedumpfile-1.7.1/dwarf_info.c makedumpfile-1.7.1/dwarf_info.h makedumpfile-1.7.1/elf_info.c makedumpfile-1.7.1/elf_info.h makedumpfile-1.7.1/eppic_scripts/ makedumpfile-1.7.1/eppic_scripts/README makedumpfile-1.7.1/eppic_scripts/ap_messages_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/dir_names_3_10_to_3_13.c makedumpfile-1.7.1/eppic_scripts/dir_names_3_14_to_4_8.c makedumpfile-1.7.1/eppic_scripts/keyring_3_10_to_4_3.c makedumpfile-1.7.1/eppic_scripts/keyring_4_4_to_4_8.c makedumpfile-1.7.1/eppic_scripts/proc_names_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/tcp_sk_buf_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/udp_sk_buf_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/unix_sk_buff_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/vhost_net_buffers_3_10_to_3_18.c makedumpfile-1.7.1/eppic_scripts/vhost_net_buffers_3_19_to_4_8.c makedumpfile-1.7.1/eppic_scripts/vhost_scsi_buffers_3_10_to_4_8.c makedumpfile-1.7.1/erase_info.c makedumpfile-1.7.1/erase_info.h makedumpfile-1.7.1/extension_eppic.c makedumpfile-1.7.1/extension_eppic.h makedumpfile-1.7.1/makedumpfile-R.pl makedumpfile-1.7.1/makedumpfile.8.in makedumpfile-1.7.1/makedumpfile.c makedumpfile-1.7.1/makedumpfile.conf makedumpfile-1.7.1/makedumpfile.conf.5.in makedumpfile-1.7.1/makedumpfile.h makedumpfile-1.7.1/makedumpfile.spec makedumpfile-1.7.1/print_info.c makedumpfile-1.7.1/print_info.h makedumpfile-1.7.1/printk.c makedumpfile-1.7.1/sadump_info.c makedumpfile-1.7.1/sadump_info.h makedumpfile-1.7.1/sadump_mod.h makedumpfile-1.7.1/tools.c + tar -z -x -v -f /builddir/build/SOURCES/eppic_050615.tar.gz eppic/ eppic/libeppic/ eppic/libeppic/eppic_func.c eppic/libeppic/eppic_node.c eppic/libeppic/eppic_stat.c eppic/libeppic/eppicpp-lsed eppic/libeppic/eppic_member.c eppic/libeppic/eppic_alloc.c eppic/libeppic/eppic_type.c eppic/libeppic/eppic_input.c eppic/libeppic/eppic_api.c eppic/libeppic/eppic_var.c eppic/libeppic/eppic_print.c eppic/libeppic/eppic_define.c eppic/libeppic/eppic_num.c eppic/libeppic/eppic_case.c eppic/libeppic/eppic_util.c eppic/libeppic/eppicpp.y eppic/libeppic/eppic-lsed eppic/libeppic/README eppic/libeppic/eppic.l eppic/libeppic/eppic.y eppic/libeppic/eppicpp.l eppic/libeppic/mkbaseop.c eppic/libeppic/Makefile eppic/libeppic/eppic.h eppic/libeppic/eppic_str.c eppic/libeppic/eppic_builtin.c eppic/libeppic/eppic_op.c eppic/libeppic/eppic_api.h eppic/applications/ eppic/applications/crash/ eppic/applications/crash/code/ eppic/applications/crash/code/shm.c eppic/applications/crash/code/idr.c eppic/applications/crash/code/sem.c eppic/applications/crash/code/util.c eppic/applications/crash/code/msg.c eppic/applications/crash/code/include/ eppic/applications/crash/code/include/ipc/ eppic/applications/crash/code/include/ipc/util.h eppic/applications/crash/code/include/ipc/~util.h eppic/applications/crash/code/include/kernel.h eppic/applications/crash/code/include/rculist.h eppic/applications/crash/code/include/shm.h eppic/applications/crash/code/include/idr.h eppic/applications/crash/code/include/stddef.h eppic/applications/crash/code/include/list.h eppic/applications/crash/code/include/page.h eppic/applications/crash/code/include/ipcs.h eppic/applications/crash/code/ipcs.c eppic/applications/crash/README.code eppic/applications/crash/eppic.mk eppic/applications/crash/eppic.c Patch #601 (rhelonly-kexec-tools-2.0.16-koji-build-fail-workaround.patch): + echo 'Patch #601 (rhelonly-kexec-tools-2.0.16-koji-build-fail-workaround.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file purgatory/Makefile + echo 'Patch #602 (rhelonly-kexec-tools-2.0.18-eppic-fix-issues-with-hardening-flags.patch):' Patch #602 (rhelonly-kexec-tools-2.0.18-eppic-fix-issues-with-hardening-flags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file eppic/libeppic/Makefile + echo 'Patch #603 (kexec-tools-2.0.24-Add-LoongArch-support.patch):' Patch #603 (kexec-tools-2.0.24-Add-LoongArch-support.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file config/config.guess patching file config/config.sub patching file configure patching file configure.ac patching file include/elf.h patching file include/image.h patching file kexec/Makefile patching file kexec/arch/loongarch/Makefile patching file kexec/arch/loongarch/crashdump-loongarch.c patching file kexec/arch/loongarch/crashdump-loongarch.h patching file kexec/arch/loongarch/image-header.h patching file kexec/arch/loongarch/include/arch/options.h patching file kexec/arch/loongarch/iomem.h patching file kexec/arch/loongarch/kexec-elf-loongarch.c patching file kexec/arch/loongarch/kexec-elf-rel-loongarch.c patching file kexec/arch/loongarch/kexec-loongarch.c patching file kexec/arch/loongarch/kexec-loongarch.h patching file kexec/arch/loongarch/kexec-pei-loongarch.c patching file kexec/kexec-syscall.h patching file kexec/kexec.c patching file kexec/kexec.h patching file purgatory/Makefile patching file purgatory/arch/loongarch/Makefile patching file purgatory/arch/loongarch/console-loongarch.c patching file purgatory/arch/loongarch/purgatory-loongarch.c patching file purgatory/arch/loongarch/purgatory-loongarch.h + echo 'Patch #604 (kexec-tools-2.0.24-Reduce-kdump-memory-consumption-by-only-installing-n.patch):' Patch #604 (kexec-tools-2.0.24-Reduce-kdump-memory-consumption-by-only-installing-n.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 can't find file to patch at input line 59 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From a65dde2d1083a57824aecd1840dea417c98c553d Mon Sep 17 00:00:00 2001 |From: Coiby Xu |Date: Thu, 19 May 2022 11:39:25 +0800 |Subject: [PATCH] Reduce kdump memory consumption by only installing needed NIC | drivers | |Even after having asked NM to stop managing a unneeded NIC, a NIC driver |may still waste memory. For example, mlx5_core uses a substantial amount |of memory during driver initialization, | |======== Report format module_summary: ======== |Module mlx5_core using 350.2MB (89650 pages), peak allocation 367.4MB (94056 pages) |Module squashfs using 13.1MB (3360 pages), peak allocation 13.1MB (3360 pages) |Module overlay using 2.1MB (550 pages), peak allocation 2.2MB (555 pages) |Module dns_resolver using 0.9MB (219 pages), peak allocation 5.2MB (1338 pages) |Module mlxfw using 0.7MB (172 pages), peak allocation 5.3MB (1349 pages) |======== Report format module_summary END ======== | |======== Report format module_top: ======== |Top stack usage of module mlx5_core: | (null) Pages: 89650 (peak: 94056) | ret_from_fork (0xffffda088b4165f8) Pages: 60007 (peak: 60007) | kthread (0xffffda088b4bd7e4) Pages: 60007 (peak: 60007) | worker_thread (0xffffda088b4b48d0) Pages: 60007 (peak: 60007) | process_one_work (0xffffda088b4b3f40) Pages: 60007 (peak: 60007) | work_for_cpu_fn (0xffffda088b4aef00) Pages: 53906 (peak: 53906) | local_pci_probe (0xffffda088b9e1e44) Pages: 53906 (peak: 53906) | probe_one mlx5_core (0xffffda084f899cc8) Pages: 53518 (peak: 53518) | mlx5_init_one mlx5_core (0xffffda084f8994ac) Pages: 49756 (peak: 49756) | mlx5_function_setup.constprop.0 mlx5_core (0xffffda084f899100) Pages: 44434 (eak: 44434) | mlx5_satisfy_startup_pages mlx5_core (0xffffda084f8a4f24) Pages: 44434 (peak: 44434) | mlx5_function_setup.constprop.0 mlx5_core (0xffffda084f899078) Pages: 5285 (peak: 5285) | mlx5_cmd_init mlx5_core (0xffffda084f89e414) Pages: 4818 (peak: 4818) | mlx5_alloc_cmd_msg mlx5_core (0xffffda084f89aaa0) Pages: 4403 (peak: 4403) | |This memory consumption is completely unnecessary when kdump doesn't need |this NIC. Only install needed NIC drivers to prevent this kind of waste. | |Note |1. this patch depends on [1] to ask dracut to not install NIC drivers. |2. "ethtool -i" somehow fails to get the vlan driver |3. team.ko doesn't depend on the team mode drivers so we need to install | the team mode drivers manually. | |[1] https://github.com/dracutdevs/dracut/pull/1789 | |Signed-off-by: Coiby Xu |Reviewed-by: Thomas Haller |Reviewed-by: Philipp Rudo |--- | dracut-module-setup.sh | 31 +++++++++++++++++++++++++++++++ | mkdumprd | 2 +- | 2 files changed, 32 insertions(+), 1 deletion(-) | |diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh |index f4a026a..9ed8487 100755 |--- a/dracut-module-setup.sh |+++ b/dracut-module-setup.sh -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 108 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mkdumprd b/mkdumprd |index 7b843a8..a069f92 100644 |--- a/mkdumprd |+++ b/mkdumprd -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.tRem4Y (%prep) Bad exit status from /var/tmp/rpm-tmp.tRem4Y (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/kexec-tools.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: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/kexec-tools.spec