forked from pool/infinipath-psm
Accepting request 328062 from OFED:Factory
Download URI has changed OBS-URL: https://build.opensuse.org/request/show/328062 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/infinipath-psm?expand=0&rev=5
This commit is contained in:
parent
60785519c2
commit
65e0231ddb
31
infinipath-non_executable_stack.patch
Normal file
31
infinipath-non_executable_stack.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
ipath/ipath_dwordcpy-i386.S | 5 +++++
|
||||||
|
ipath/ipath_dwordcpy-x86_64-fast.S | 5 +++++
|
||||||
|
2 files changed, 10 insertions(+)
|
||||||
|
|
||||||
|
Index: ipath/ipath_dwordcpy-i386.S
|
||||||
|
===================================================================
|
||||||
|
--- ipath/ipath_dwordcpy-i386.S.orig 2014-10-10 23:07:04.000000000 +0200
|
||||||
|
+++ ipath/ipath_dwordcpy-i386.S 2015-08-19 07:41:52.628711854 +0200
|
||||||
|
@@ -56,3 +56,8 @@ ipath_dwordcpy:
|
||||||
|
mov %eax,%edi
|
||||||
|
mov %edx,%esi
|
||||||
|
ret
|
||||||
|
+
|
||||||
|
+// Mark stack unexecutable
|
||||||
|
+#if defined(__linux__) && defined(__ELF__)
|
||||||
|
+.section .note.GNU-stack,"",%progbits
|
||||||
|
+#endif
|
||||||
|
Index: ipath/ipath_dwordcpy-x86_64-fast.S
|
||||||
|
===================================================================
|
||||||
|
--- ipath/ipath_dwordcpy-x86_64-fast.S.orig 2014-10-10 23:07:04.000000000 +0200
|
||||||
|
+++ ipath/ipath_dwordcpy-x86_64-fast.S 2015-08-19 07:41:51.293742890 +0200
|
||||||
|
@@ -49,3 +49,8 @@ ipath_dwordcpy:
|
||||||
|
rep
|
||||||
|
movsd
|
||||||
|
ret
|
||||||
|
+
|
||||||
|
+// Mark stack unexecutable
|
||||||
|
+#if defined(__linux__) && defined(__ELF__)
|
||||||
|
+.section .note.GNU-stack,"",%progbits
|
||||||
|
+#endif
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:18f96e1412ec62c775663396f81232140b12d4f5f9539bbf86d6763f0f3de429
|
|
||||||
size 363401
|
|
3
infinipath-psm-3.3-2_g6f42cdb_open.tar.gz
Normal file
3
infinipath-psm-3.3-2_g6f42cdb_open.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:60e244f1594bd3b35d0c6dd9bf6594c4d2371ecef72822d84bfefe80997de533
|
||||||
|
size 390708
|
@ -1,21 +1,35 @@
|
|||||||
---
|
---
|
||||||
buildflags.mak | 4 ++--
|
buildflags.mak | 6 ++----
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
Index: buildflags.mak
|
Index: buildflags.mak
|
||||||
===================================================================
|
===================================================================
|
||||||
--- buildflags.mak.orig 2014-01-08 22:33:34.000000000 +0100
|
--- buildflags.mak.orig 2014-10-10 23:07:04.000000000 +0200
|
||||||
+++ buildflags.mak 2014-01-17 14:58:34.775548741 +0100
|
+++ buildflags.mak 2015-05-29 13:40:24.855086640 +0200
|
||||||
@@ -108,10 +108,10 @@ else
|
@@ -61,7 +61,7 @@ ifdef SCIF_ROOT_DIR
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
ifeq (${CCARCH},gcc)
|
PSM_HAVE_SCIF ?= $(shell printf '\#include <scif.h>\nint main(void){return(0);}\n' | \
|
||||||
- CFLAGS += $(BASECFLAGS) -Wno-strict-aliasing
|
- $(CC) $(CFLAGS) $(LDFLAGS) -x c - -o /dev/null &> /dev/null && echo 1 || echo 0)
|
||||||
+ CFLAGS += $(BASECFLAGS) $(RPM_OPT_FLAGS)
|
+ $(CC) $(CFLAGS) $(RPM_OPT_FLAGS) $(LDFLAGS) -x c - -o /dev/null &> /dev/null && echo 1 || echo 0)
|
||||||
else
|
|
||||||
ifeq (${CCARCH},gcc4)
|
ifeq (1,$(PSM_HAVE_SCIF))
|
||||||
- CFLAGS += $(BASECFLAGS)
|
SCIF_INCLUDE_FLAGS += -DPSM_HAVE_SCIF=1
|
||||||
+ CFLAGS += $(BASECFLAGS) $(RPM_OPT_FLAGS)
|
@@ -72,7 +72,7 @@ WERROR := -Werror
|
||||||
else
|
INCLUDES := -I. -I$(top_srcdir)/include -I$(top_srcdir)/mpspawn \
|
||||||
$(error Unknown compiler arch "${CCARCH}")
|
-I$(top_srcdir)/include/$(os)-$(arch) $(SCIF_INCLUDE_FLAGS)
|
||||||
endif # gcc4
|
BASECFLAGS += $(BASE_FLAGS) $(if $(MIC:0=),$(if $(filter $(CC),icc),-mmic,-D__MIC__)) \
|
||||||
|
- -Wall $(WERROR) $(if $(MIC:0=),-Wno-unused) -fpic -fPIC -D_GNU_SOURCE \
|
||||||
|
+ -Wall $(WERROR) $(RPM_OPT_FLAGS) $(if $(MIC:0=),-Wno-unused) -fpic -fPIC -D_GNU_SOURCE \
|
||||||
|
$(if $(filter $(CC),icc),,-funwind-tables) $(if $(PSM_PROFILE:0=),-DPSM_PROFILE) \
|
||||||
|
${IPATH_CFLAGS}
|
||||||
|
ASFLAGS += $(BASE_FLAGS) $(if $(MIC:0=),$(if $(filter $(CC),icc),-mmic,-D__MIC__)) -g3 -fpic
|
||||||
|
@@ -85,8 +85,6 @@ LDFLAGS += $(SCIF_LINK_FLAGS)
|
||||||
|
ifneq (,${PSM_DEBUG})
|
||||||
|
BASECFLAGS += -O -g3 -DPSM_DEBUG $(if $(filter $(CC),icc),,-funit-at-a-time) \
|
||||||
|
-Wp,-D_FORTIFY_SOURCE=2
|
||||||
|
-else
|
||||||
|
- BASECFLAGS += -O3 -g3
|
||||||
|
endif
|
||||||
|
ifeq (1,${PSM_USE_SYS_UUID})
|
||||||
|
BASECFLAGS += -DPSM_USE_SYS_UUID
|
||||||
|
@ -12,16 +12,16 @@ Install headers as normal files.
|
|||||||
|
|
||||||
Index: Makefile
|
Index: Makefile
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Makefile.orig 2014-01-17 14:54:38.418004126 +0100
|
--- Makefile.orig 2015-05-29 11:12:00.395739876 +0200
|
||||||
+++ Makefile 2014-01-17 14:55:35.516686291 +0100
|
+++ Makefile 2015-05-29 11:13:00.555359945 +0200
|
||||||
@@ -149,8 +149,8 @@ install: all
|
@@ -188,8 +188,8 @@ install: all
|
||||||
(cd ${DESTDIR}${INSTALL_LIB_TARG} ; \
|
|
||||||
ln -sf ${TARGLIB}.so.${MAJOR}.${MINOR} ${TARGLIB}.so.${MAJOR} ; \
|
ln -sf ${TARGLIB}.so.${MAJOR}.${MINOR} ${TARGLIB}.so.${MAJOR} ; \
|
||||||
ln -sf ${TARGLIB}.so.${MAJOR} ${TARGLIB}.so)
|
ln -sf ${TARGLIB}.so.${MAJOR} ${TARGLIB}.so) ; \
|
||||||
- install -D psm.h ${DESTDIR}/usr/include/psm.h
|
if [ X$(MIC) != X1 ]; then \
|
||||||
- install -D psm_mq.h ${DESTDIR}/usr/include/psm_mq.h
|
- install -D psm.h ${DESTDIR}/usr/include/psm.h ; \
|
||||||
+ install -D -m 644 psm.h ${DESTDIR}/usr/include/psm.h
|
- install -D psm_mq.h ${DESTDIR}/usr/include/psm_mq.h ; \
|
||||||
+ install -D -m 644 psm_mq.h ${DESTDIR}/usr/include/psm_mq.h
|
+ install -D -m 644 psm.h ${DESTDIR}/usr/include/psm.h ; \
|
||||||
|
+ install -D -m 644 psm_mq.h ${DESTDIR}/usr/include/psm_mq.h ; \
|
||||||
specfile:
|
else \
|
||||||
sed \
|
filelist=/opt/intel/mic/psm/psm.filelist ; \
|
||||||
|
sed -e 's!%IPATHMAJOR%!$(IPATH_LIB_MAJOR)!g' \
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
|
|
||||||
Index: buildflags.mak
|
Index: buildflags.mak
|
||||||
===================================================================
|
===================================================================
|
||||||
--- buildflags.mak.orig 2014-01-17 14:58:19.301905910 +0100
|
--- buildflags.mak.orig 2015-05-29 11:10:57.686178275 +0200
|
||||||
+++ buildflags.mak 2014-01-17 14:58:19.318905518 +0100
|
+++ buildflags.mak 2015-05-29 11:11:35.955300481 +0200
|
||||||
@@ -71,7 +71,7 @@ ASFLAGS += $(BASE_FLAGS)
|
@@ -72,7 +72,7 @@ WERROR := -Werror
|
||||||
|
INCLUDES := -I. -I$(top_srcdir)/include -I$(top_srcdir)/mpspawn \
|
||||||
WERROR := -Werror
|
-I$(top_srcdir)/include/$(os)-$(arch) $(SCIF_INCLUDE_FLAGS)
|
||||||
INCLUDES := -I. -I$(top_srcdir)/include -I$(top_srcdir)/mpspawn -I$(top_srcdir)/include/$(os)-$(arch)
|
BASECFLAGS += $(BASE_FLAGS) $(if $(MIC:0=),$(if $(filter $(CC),icc),-mmic,-D__MIC__)) \
|
||||||
-BASECFLAGS +=-Wall $(WERROR)
|
- -Wall $(WERROR) $(RPM_OPT_FLAGS) $(if $(MIC:0=),-Wno-unused) -fpic -fPIC -D_GNU_SOURCE \
|
||||||
+BASECFLAGS +=-Wall -Wno-attributes
|
+ -Wall -Wno-attributes $(RPM_OPT_FLAGS) $(if $(MIC:0=),-Wno-unused) -fpic -fPIC -D_GNU_SOURCE \
|
||||||
ifneq (,${PSM_DEBUG})
|
$(if $(filter $(CC),icc),,-funwind-tables) $(if $(PSM_PROFILE:0=),-DPSM_PROFILE) \
|
||||||
BASECFLAGS += -O0 -g3 -DPSM_DEBUG -funit-at-a-time -Wp,-D_FORTIFY_SOURCE=2
|
${IPATH_CFLAGS}
|
||||||
else
|
ASFLAGS += $(BASE_FLAGS) $(if $(MIC:0=),$(if $(filter $(CC),icc),-mmic,-D__MIC__)) -g3 -fpic
|
||||||
|
@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 31 07:40:43 CEST 2015 - pth@suse.de
|
||||||
|
|
||||||
|
- Fix source URI.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 25 10:11:14 CEST 2015 - pth@suse.de
|
||||||
|
|
||||||
|
- Set libdir when calling make for installing.
|
||||||
|
- Add infinipath-non_executable_stack.patch to mark the stack
|
||||||
|
unexecutable (bsc#942689).
|
||||||
|
- Remove bogus line in spec file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 10 12:49:19 CEST 2015 - pth@suse.de
|
||||||
|
|
||||||
|
- Fix name of libdir.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 29 11:13:39 CEST 2015 - pth@suse.de
|
||||||
|
|
||||||
|
- Adapt patches to changed sources.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 31 15:09:00 UTC 2014 - Led <ledest@gmail.com>
|
Fri Oct 31 15:09:00 UTC 2014 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package infinipath-psm
|
# spec file for package infinipath-psm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,22 +16,24 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define my_release 2_ga8c3e3e_open
|
%define my_release -2_g6f42cdb
|
||||||
|
|
||||||
Name: infinipath-psm
|
Name: infinipath-psm
|
||||||
Version: 3.2
|
Version: 3.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: QLogic PSM Libraries
|
Summary: QLogic PSM Libraries
|
||||||
License: BSD-2-Clause or GPL-2.0
|
License: BSD-2-Clause or GPL-2.0
|
||||||
Group: Productivity/Networking/System
|
Group: Productivity/Networking/System
|
||||||
Url: http://www.qlogic.com/
|
Url: http://www.qlogic.com/
|
||||||
Source0: %{name}-%{version}-%{my_release}.tar.gz
|
Source0: http://downloads.openfabrics.org/downloads/infinipath-psm/%{name}-%{version}%{my_release}_open.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM infinipath-psm-cflags.patch pth@suse.de
|
# PATCH-FIX-UPSTREAM infinipath-psm-cflags.patch pth@suse.de
|
||||||
Patch0: infinipath-psm-cflags.patch
|
Patch0: infinipath-psm-cflags.patch
|
||||||
# PATCH-FIX-UPSTREAM infinipath-psm-no_werror.patch pth@suse.de
|
# PATCH-FIX-UPSTREAM infinipath-psm-no_werror.patch pth@suse.de
|
||||||
Patch1: infinipath-psm-no_werror.patch
|
Patch1: infinipath-psm-no_werror.patch
|
||||||
# PATCH-FIX-UPSTREAM infinipath-psm-executable_headers.patch pth@suse.de
|
# PATCH-FIX-UPSTREAM infinipath-psm-executable_headers.patch pth@suse.de
|
||||||
Patch3: infinipath-psm-executable_headers.patch
|
Patch3: infinipath-psm-executable_headers.patch
|
||||||
|
# PATCH-FIX-UPSTREAM infinipath-non_executable_stack.patch pth@suse.de
|
||||||
|
Patch4: infinipath-non_executable_stack.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Conflicts: infinipath-libs
|
Conflicts: infinipath-libs
|
||||||
ExclusiveArch: %ix86 x86_64
|
ExclusiveArch: %ix86 x86_64
|
||||||
@ -69,26 +71,26 @@ necessary to implement higher level communications
|
|||||||
interfaces in parallel environments.
|
interfaces in parallel environments.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n infinipath-psm-%{version}-%{my_release}
|
%setup -q -n infinipath-psm-%{version}%{my_release}_open
|
||||||
%patch0
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch3
|
%patch3
|
||||||
|
%patch4
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version} >= 1150
|
%if 0%{?suse_version} >= 1150
|
||||||
export RPM_OPT_FLAGS="%{optflags} -Wno-unused-but-set-variable"
|
export RPM_OPT_FLAGS="%{optflags} -Wno-unused-but-set-variable"
|
||||||
%endif
|
%endif
|
||||||
make USE_PSM_UUID=1 %{?_smp_mflags}
|
make USE_PSM_UUID=1 libdir=%{_libdir} %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
make USE_PSM_UUID=1 libdir=%{_libdir} DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
%post -n %{lname} -p /sbin/ldconfig
|
%post -n %{lname} -p /sbin/ldconfig
|
||||||
%postun -n %{lname} -p /sbin/ldconfig
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{lname}
|
%files -n %{lname}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING
|
|
||||||
%{_libdir}/libpsm_infinipath.so.*
|
%{_libdir}/libpsm_infinipath.so.*
|
||||||
%{_libdir}/libinfinipath.so.*
|
%{_libdir}/libinfinipath.so.*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user