Accepting request 904612 from science:HPC

OBS-URL: https://build.opensuse.org/request/show/904612
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mstflint?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2021-07-07 16:30:44 +00:00 committed by Git OBS Bridge
commit 1a262e5127
3 changed files with 22 additions and 0 deletions

14
PIE.patch Normal file
View File

@ -0,0 +1,14 @@
Index: mstflint-4.16.0/configure.ac
===================================================================
--- mstflint-4.16.0.orig/configure.ac
+++ mstflint-4.16.0/configure.ac
@@ -58,6 +58,9 @@ LDL=""
default_en_inband=""
LDFLAGS="${LDFLAGS} -L/usr/lib64 -L/usr/local/lib -L/usr/local/lib64"
+if test "$host_cpu" != "s390x"; then
+ LDFLAGS="${LDFLAGS} -pie"
+fi
CXXFLAGS="${CXXFLAGS} -isystem /usr/local/include"
if test "x$OS" = "xFreeBSD"; then
AC_MSG_NOTICE(FreeBSD Build)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 25 16:58:42 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Link as position independent executables (bsc#1184124).
- Added PIE.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 7 11:52:58 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com> Wed Apr 7 11:52:58 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>

View File

@ -30,6 +30,7 @@ Source: https://github.com/Mellanox/mstflint/releases/download/v%{versio
Patch1: Remove-date-time-info-from-build.patch Patch1: Remove-date-time-info-from-build.patch
Patch4: Fix-gcc7-and-gcc8.patch Patch4: Fix-gcc7-and-gcc8.patch
Patch5: fix-race-condition-during-install.patch Patch5: fix-race-condition-during-install.patch
Patch6: PIE.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: infiniband-diags-devel BuildRequires: infiniband-diags-devel
BuildRequires: libibverbs-devel BuildRequires: libibverbs-devel
@ -52,6 +53,7 @@ the downloads page at the Mellanox web site.
%patch1 %patch1
%patch4 %patch4
%patch5 %patch5
%patch6 -p1
%build %build
./autogen.sh ./autogen.sh