rPath regression, avoid strict alliasing due to type punning code
This commit is contained in:
parent
dee667f1d6
commit
35ceb22efa
@ -5,7 +5,7 @@
|
|||||||
Summary: IPMI (Intelligent Platform Management Interface) library and tools
|
Summary: IPMI (Intelligent Platform Management Interface) library and tools
|
||||||
Name: OpenIPMI
|
Name: OpenIPMI
|
||||||
Version: 2.0.19
|
Version: 2.0.19
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: LGPLv2+ and GPLv2+ or BSD
|
License: LGPLv2+ and GPLv2+ or BSD
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://sourceforge.net/projects/openipmi/
|
URL: http://sourceforge.net/projects/openipmi/
|
||||||
@ -78,6 +78,7 @@ Group: Development/Libraries
|
|||||||
Summary: The development environment for the OpenIPMI project
|
Summary: The development environment for the OpenIPMI project
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The OpenIPMI-devel package contains the development libraries and header files
|
The OpenIPMI-devel package contains the development libraries and header files
|
||||||
@ -89,7 +90,7 @@ of the OpenIPMI project.
|
|||||||
%patch2 -p1 -b .manscan
|
%patch2 -p1 -b .manscan
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="-fPIC $RPM_OPT_FLAGS"
|
export CFLAGS="-fPIC $RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
|
|
||||||
# aarch64 workaround remove once released package's config.sub contains aarch64
|
# aarch64 workaround remove once released package's config.sub contains aarch64
|
||||||
%{__libtoolize} --copy --force --automake
|
%{__libtoolize} --copy --force --automake
|
||||||
@ -106,9 +107,10 @@ export CFLAGS="-fPIC $RPM_OPT_FLAGS"
|
|||||||
--disable-static \
|
--disable-static \
|
||||||
--with-tkinter=no
|
--with-tkinter=no
|
||||||
|
|
||||||
# get rid of rpath
|
# https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Beware_of_Rpath
|
||||||
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
# get rid of rpath still present in OpenIPMI-perl package
|
||||||
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
make # not %{?_smp_mflags} safe
|
make # not %{?_smp_mflags} safe
|
||||||
|
|
||||||
@ -205,6 +207,10 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/modprobe.d/OpenIPMI.conf
|
%config(noreplace) %{_sysconfdir}/modprobe.d/OpenIPMI.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 19 2013 Ledvinka Ales <aledvink@redhat.com> - 2.0.19-7
|
||||||
|
- Hint compilation to avoid strict aliasing and prevent type-punned pointer issues.
|
||||||
|
- Fix rPath regression for OpenIPMI-perl library.
|
||||||
|
|
||||||
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.0.19-6
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.0.19-6
|
||||||
- Perl 5.18 rebuild
|
- Perl 5.18 rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user