Add build dependencies on needed libraries

Resolves: RHEL-49401

commit 9ade09f00f4e65a4a40686cf77f003f8f8d7ecdf
Author: Coiby Xu <coxu@redhat.com>
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 <jbtrystram@redhat.com>
    Signed-off-by: Coiby Xu <coxu@redhat.com>
    Reviewed-by: Pingfan Liu <piliu@redhat.com>

Signed-off-by: Lichen Liu <lichliu@redhat.com>
This commit is contained in:
Lichen Liu 2024-07-18 15:19:14 +08:00
parent d5198e30fe
commit 2aaffdf63f
No known key found for this signature in database
GPG Key ID: 2ED8215EF57B3D6C

View File

@ -12,6 +12,8 @@ BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: gcc
BuildRequires: xz-devel
BuildRequires: zlib-devel
#START INSERT