From 2aaffdf63f1fd62f476b303eb20a2412aea103d0 Mon Sep 17 00:00:00 2001 From: Lichen Liu Date: Thu, 18 Jul 2024 15:19:14 +0800 Subject: [PATCH] Add build dependencies on needed libraries Resolves: RHEL-49401 commit 9ade09f00f4e65a4a40686cf77f003f8f8d7ecdf Author: Coiby Xu Date: Tue Jul 9 16:58:46 2024 +0800 Add build dependencies on needed libraries Resolves: https://github.com/rhkdump/kdump-utils/issues/22 As found by Dave, built kexec-tools wasn't linked to libraries like libz.so.1, # ldd /sbin/kexec linux-vdso.so.1 (0x0000ffff8cfa1000) libc.so.6 => /lib64/libc.so.6 (0x0000ffff8cd10000) /lib/ld-linux-aarch64.so.1 (0x0000ffff8cf54000) As a consequence, kexec fails to load the aarch64 kernel. Previous version of /sbin/kexec is linked to liblzma.so and libz.so, # ldd /sbin/kexec linux-vdso.so.1 (0x00007f28d392c000) liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f28d37e7000) libz.so.1 => /lib64/libz.so.1 (0x00007f28d37c6000) libc.so.6 => /lib64/libc.so.6 (0x00007f28d35d4000) /lib64/ld-linux-x86-64.so.2 (0x00007f28d392e000) So add build dependencies on those needed libraries. Fixes: 28ced79 ("Split out kdump-utils and makedumpfile") Reported-by: Jean Baptiste Trystram Signed-off-by: Coiby Xu Reviewed-by: Pingfan Liu Signed-off-by: Lichen Liu --- kexec-tools.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kexec-tools.spec b/kexec-tools.spec index b45529e..3611211 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -12,6 +12,8 @@ BuildRequires: automake BuildRequires: autoconf BuildRequires: libtool BuildRequires: gcc +BuildRequires: xz-devel +BuildRequires: zlib-devel #START INSERT