Accepting request 711807 from home:marxin:branches:Virtualization
- Add sanlock-lto-disable-fpie.patch in order to handle boo#1138836. Extra -fPIE is stripped. OBS-URL: https://build.opensuse.org/request/show/711807 OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=55
This commit is contained in:
parent
c7a785ce92
commit
8a6b3be298
16
sanlock-lto-disable-fpie.patch
Normal file
16
sanlock-lto-disable-fpie.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Do not mix -fPIC and -FPIE, it is causing issue in LTO mode
|
||||||
|
(boo#1138836).
|
||||||
|
|
||||||
|
diff --git a/python/setup.py b/python/setup.py
|
||||||
|
index 91311a8..91b8b2f 100644
|
||||||
|
--- a/python/setup.py
|
||||||
|
+++ b/python/setup.py
|
||||||
|
@@ -11,7 +11,7 @@ sanlock = Extension(name='sanlock',
|
||||||
|
sources=['sanlock.c'],
|
||||||
|
include_dirs=['../src'],
|
||||||
|
library_dirs=['../src'],
|
||||||
|
- extra_link_args=['-fPIE', '-Wl,-z,relro,-z,now'],
|
||||||
|
+ extra_link_args=['-Wl,-z,relro,-z,now'],
|
||||||
|
libraries=sanlocklib)
|
||||||
|
|
||||||
|
version = None
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jun 24 14:49:15 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Add sanlock-lto-disable-fpie.patch in order to handle
|
||||||
|
boo#1138836. Extra -fPIE is stripped.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 17 21:45:36 UTC 2019 - Jim Fehlig <jfehlig@suse.com>
|
Mon Jun 17 21:45:36 UTC 2019 - Jim Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ Patch100: sanlock-SCHED_RESET_ON_FORK-undefined.patch
|
|||||||
Patch101: sanlock-python-prefix.patch
|
Patch101: sanlock-python-prefix.patch
|
||||||
Patch102: suse-systemd.patch
|
Patch102: suse-systemd.patch
|
||||||
Patch103: suse-no-date-time.patch
|
Patch103: suse-no-date-time.patch
|
||||||
|
Patch104: sanlock-lto-disable-fpie.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: libaio-devel
|
BuildRequires: libaio-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
@ -129,6 +130,7 @@ common sanlock lockspace.
|
|||||||
%patch101
|
%patch101
|
||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
%patch103 -p1
|
%patch103 -p1
|
||||||
|
%patch104 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# upstream does not require configure
|
# upstream does not require configure
|
||||||
|
Loading…
Reference in New Issue
Block a user