- makedumpfile-PN_XNUM.patch: Define PN_XNUM if missing.
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/makedumpfile?expand=0&rev=139
This commit is contained in:
committed by
Git OBS Bridge
parent
4fd334b12f
commit
e5cb729eea
24
makedumpfile-PN_XNUM.patch
Normal file
24
makedumpfile-PN_XNUM.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From: Petr Tesarik <ptesarik@suse.com>
|
||||
Subject: Define PN_XNUM if missing
|
||||
Upstream: never, build fix for old distros
|
||||
|
||||
Older elfutils did not define this constant.
|
||||
|
||||
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
||||
---
|
||||
elf_info.h | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
--- a/elf_info.h
|
||||
+++ b/elf_info.h
|
||||
@@ -19,6 +19,10 @@
|
||||
#include <elf.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
+#ifndef PN_XNUM
|
||||
+#define PN_XNUM 0xffff
|
||||
+#endif
|
||||
+
|
||||
#define KEXEC_CORE_NOTE_NAME "CORE"
|
||||
#define KEXEC_CORE_NOTE_NAME_BYTES sizeof(KEXEC_CORE_NOTE_NAME)
|
||||
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 29 11:51:27 UTC 2020 - Petr Tesařík <ptesarik@suse.com>
|
||||
|
||||
- makedumpfile-PN_XNUM.patch: Define PN_XNUM if missing.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 27 11:37:03 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@@ -42,6 +42,7 @@ Source: https://sourceforge.net/projects/makedumpfile/files/makedumpfile
|
||||
Source99: %{name}-rpmlintrc
|
||||
Patch1: %{name}-override-libtinfo.patch
|
||||
Patch2: %{name}-ppc64-VA-range-SUSE.patch
|
||||
Patch3: %{name}-PN_XNUM.patch
|
||||
BuildRequires: libdw-devel
|
||||
BuildRequires: libelf-devel
|
||||
BuildRequires: libeppic-devel
|
||||
@@ -70,6 +71,7 @@ via gdb or crash utility.
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
|
Reference in New Issue
Block a user