From e9ee8348023b83eb46299720f0dc93f5fa202920 Mon Sep 17 00:00:00 2001 From: Dave Young Date: Thu, 2 Jul 2015 10:14:02 +0800 Subject: [PATCH] Release 2.0.9-2 Koji build add extra cflags automaticlly, this cause wrong kexec purgatory Pre Peter Robinson's suggestion, add below in spec file: %undefine _hardened_build Also removes extra -FPIC ldflags since there's no such options in upstream makedumpfile. Resolves: bz1236456 Signed-off-by: Dave Young --- kexec-tools.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kexec-tools.spec b/kexec-tools.spec index c3e8e80..087f925 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -1,6 +1,6 @@ Name: kexec-tools Version: 2.0.9 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: Applications/System Summary: The kexec/kdump userspace component @@ -52,6 +52,8 @@ BuildRequires: systemd-units Obsoletes: diskdumputils netdump kexec-tools-eppic %endif +%undefine _hardened_build + ExcludeArch: aarch64 #START INSERT @@ -128,7 +130,7 @@ cp %{SOURCE21} . make %ifarch %{ix86} x86_64 ppc64 s390x ppc64le make -C eppic/libeppic -make -C makedumpfile-1.5.8 LINKTYPE=dynamic USELZO=on USESNAPPY=on LDFLAGS="-fPIC" +make -C makedumpfile-1.5.8 LINKTYPE=dynamic USELZO=on USESNAPPY=on make -C makedumpfile-1.5.8 LDFLAGS="-I../eppic/libeppic -L../eppic/libeppic" eppic_makedumpfile.so %endif make -C kdump-anaconda-addon/po @@ -306,6 +308,10 @@ done %doc %changelog +* Thu Jul 2 2015 Dave Young - 2.0.9-2 +- Resolve bug 1236456, kexec load fail because koji add extra gcc flags. +- Remove -FPIC for makedumpfile since it is not necessary without harden build + * Tue Jun 23 2015 Dave Young - 2.0.9-1 - Rebase kexec-tools 2.0.9 - Rebase makedumpfile 1.5.8