[Pkg-ofed-commits] r403 - in /branches/sid-uploads/infiniband-diags/trunk/debian...

opensides-guest at alioth.debian.org opensides-guest at alioth.debian.org
Sun Aug 2 21:51:08 UTC 2009


Author: opensides-guest
Date: Sun Aug  2 21:51:08 2009
New Revision: 403

URL: http://svn.debian.org/wsvn/pkg-ofed/?sc=1&rev=403
Log:
- Added remove for rpath as per recommendation debian
- http://lintian.debian.org/tags/binary-or-shlib-defines-rpath.html


Added:
    branches/sid-uploads/infiniband-diags/trunk/debian/patches/
    branches/sid-uploads/infiniband-diags/trunk/debian/patches/00list
    branches/sid-uploads/infiniband-diags/trunk/debian/patches/01_remove_rpath.dpatch   (with props)
Modified:
    branches/sid-uploads/infiniband-diags/trunk/debian/control
    branches/sid-uploads/infiniband-diags/trunk/debian/rules

Modified: branches/sid-uploads/infiniband-diags/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-ofed/branches/sid-uploads/infiniband-diags/trunk/debian/control?rev=403&op=diff
==============================================================================
--- branches/sid-uploads/infiniband-diags/trunk/debian/control (original)
+++ branches/sid-uploads/infiniband-diags/trunk/debian/control Sun Aug  2 21:51:08 2009
@@ -2,7 +2,7 @@
 Section: net
 Priority: extra
 Maintainer: Guy Coates <gmpc at sanger.ac.uk>
-Build-Depends: debhelper (>= 7), autotools-dev, libibcommon-dev, libibumad-dev, libibmad-dev, libopensm2-dev (>=3.2.5)
+Build-Depends: debhelper (>= 7), autotools-dev, dpatch, libibcommon-dev, libibumad-dev, libibmad-dev, libopensm2-dev (>=3.2.5)
 Standards-Version: 3.8.0
 Homepage: http://www.openfabircs.org
 

Added: branches/sid-uploads/infiniband-diags/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-ofed/branches/sid-uploads/infiniband-diags/trunk/debian/patches/00list?rev=403&op=file
==============================================================================
--- branches/sid-uploads/infiniband-diags/trunk/debian/patches/00list (added)
+++ branches/sid-uploads/infiniband-diags/trunk/debian/patches/00list Sun Aug  2 21:51:08 2009
@@ -1,0 +1,1 @@
+01_remove_rpath

Added: branches/sid-uploads/infiniband-diags/trunk/debian/patches/01_remove_rpath.dpatch
URL: http://svn.debian.org/wsvn/pkg-ofed/branches/sid-uploads/infiniband-diags/trunk/debian/patches/01_remove_rpath.dpatch?rev=403&op=file
==============================================================================
--- branches/sid-uploads/infiniband-diags/trunk/debian/patches/01_remove_rpath.dpatch (added)
+++ branches/sid-uploads/infiniband-diags/trunk/debian/patches/01_remove_rpath.dpatch Sun Aug  2 21:51:08 2009
@@ -1,0 +1,42 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_remove_rpath.dpatch by  <benoit at catbert.opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove the rpath parameter from Makefile.am
+
+ at DPATCH@
+
+--- trunk/Makefile.am	2009-07-29 14:58:01.000000000 +0200
++++ trunk/Makefile.am	2009-07-31 23:35:56.000000000 +0200
+@@ -37,7 +37,6 @@
+ 
+ src_ibnetdiscover_SOURCES = src/ibnetdiscover.c src/grouping.c src/ibdiag_common.c
+ src_ibnetdiscover_CFLAGS = -Wall $(DBGFLAGS)
+-src_ibnetdiscover_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_ibping_SOURCES = src/ibping.c src/ibdiag_common.c
+ src_ibping_CFLAGS = -Wall $(DBGFLAGS)
+@@ -56,7 +55,6 @@
+ 
+ src_ibtracert_SOURCES = src/ibtracert.c src/ibdiag_common.c
+ src_ibtracert_CFLAGS = -Wall $(DBGFLAGS)
+-src_ibtracert_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_perfquery_SOURCES = src/perfquery.c src/ibdiag_common.c
+ src_perfquery_CFLAGS = -Wall $(DBGFLAGS)
+@@ -69,15 +67,12 @@
+ 
+ src_smpquery_SOURCES = src/smpquery.c src/ibdiag_common.c
+ src_smpquery_CFLAGS = -Wall $(DBGFLAGS)
+-src_smpquery_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_saquery_SOURCES = src/saquery.c src/ibdiag_common.c
+ src_saquery_CFLAGS = -Wall -DOSM_VENDOR_INTF_OPENIB -DVENDOR_RMPP_SUPPORT -DDUAL_SIDED_RMPP $(DBGFLAGS)
+-src_saquery_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_ibsendtrap_SOURCES = src/ibsendtrap.c src/ibdiag_common.c
+ src_ibsendtrap_CFLAGS = -Wall $(DBGFLAGS)
+-src_ibsendtrap_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_vendstat_SOURCES = src/vendstat.c src/ibdiag_common.c
+ src_vendstat_CFLAGS = -Wall $(DBGFLAGS)

Propchange: branches/sid-uploads/infiniband-diags/trunk/debian/patches/01_remove_rpath.dpatch
------------------------------------------------------------------------------
    svn:executable = *

Modified: branches/sid-uploads/infiniband-diags/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ofed/branches/sid-uploads/infiniband-diags/trunk/debian/rules?rev=403&op=diff
==============================================================================
--- branches/sid-uploads/infiniband-diags/trunk/debian/rules (original)
+++ branches/sid-uploads/infiniband-diags/trunk/debian/rules Sun Aug  2 21:51:08 2009
@@ -22,7 +22,7 @@
 
 
 
-config.status: configure
+config.status: patch configure
 	dh_testdir
 	# Add here commands to configure the package.
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
@@ -31,7 +31,7 @@
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 	cp -f /usr/share/misc/config.guess config.guess
 endif
-	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" --with-perl-installdir=/usr/share/perl5 --sbindir=/usr/sbin
+	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" --with-perl-installdir=/usr/share/perl5 --sbindir=/usr/sbin
 
 
 build: build-stamp
@@ -45,7 +45,8 @@
 
 	touch $@
 
-clean: 
+clean: clean-patched unpatch
+clean-patched:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp 
@@ -55,6 +56,16 @@
 	rm -f config.sub config.guess
 
 	dh_clean 
+
+
+patch: patch-stamp
+patch-stamp:
+	dpatch apply-all
+	dpatch cat-all >patch-stamp
+
+unpatch:
+	dpatch deapply-all
+	rm -rf patch-stamp debian/patched
 
 install: build
 	dh_testdir




More information about the Pkg-ofed-commits mailing list