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 <dyoung@redhat.com>
This commit is contained in:
Dave Young 2015-07-02 10:14:02 +08:00
parent d74d13c425
commit e9ee834802
1 changed files with 8 additions and 2 deletions

View File

@ -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 <dyoung@redhat.com> - 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 <dyoung@redhat.com> - 2.0.9-1
- Rebase kexec-tools 2.0.9
- Rebase makedumpfile 1.5.8