[Pkg-ofed-commits] [infiniband-diags] 05/07: Imported Debian patch 1.4.4-20090314-1.2
Ana Beatriz Guerrero López
ana at moszumanska.debian.org
Tue Jul 1 07:17:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
ana pushed a commit to branch master
in repository infiniband-diags.
commit 1f1dbdd2f54555ca08b58950bc9ca1c22af7ac8e
Author: Michael Gilbert <mgilbert at debian.org>
Date: Mon Oct 22 17:47:02 2012 -0400
Imported Debian patch 1.4.4-20090314-1.2
---
debian/changelog | 7 +++++++
debian/patches/35-set_nodedesc-bashisms.patch | 30 +++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 38 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index cdba52f..3ca35cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+infiniband-diags (1.4.4-20090314-1.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix bashisms in scripts/set_nodedesc.sh (closes: #581113).
+
+ -- Michael Gilbert <mgilbert at debian.org> Mon, 22 Oct 2012 17:47:02 -0400
+
infiniband-diags (1.4.4-20090314-1.1) unstable; urgency=low
* Non-maintainer upload.
diff --git a/debian/patches/35-set_nodedesc-bashisms.patch b/debian/patches/35-set_nodedesc-bashisms.patch
new file mode 100644
index 0000000..0c29fe8
--- /dev/null
+++ b/debian/patches/35-set_nodedesc-bashisms.patch
@@ -0,0 +1,30 @@
+Index: infiniband-diags-1.4.4-20090314/scripts/set_nodedesc.sh
+===================================================================
+--- infiniband-diags-1.4.4-20090314.orig/scripts/set_nodedesc.sh 2009-07-29 08:58:00.000000000 -0400
++++ infiniband-diags-1.4.4-20090314/scripts/set_nodedesc.sh 2012-10-22 17:45:41.907645641 -0400
+@@ -5,21 +5,21 @@
+ fi
+
+ ib_sysfs="/sys/class/infiniband"
+-newname="$HOSTNAME"
++newname="$(/bin/hostname)"
+
+
+-function usage
++usage ()
+ {
+ echo "Usage: `basename $0` [-hv] [<name>]"
+ echo " set the node_desc field of all hca's found in \"$ib_sysfs\""
+ echo " -h this help"
+ echo " -v view all node descriptors"
+ echo " [<name>] set name to name specified."
+- echo " Default is to use the hostname: \"$HOSTNAME\""
++ echo " Default is to use the hostname: \"$newname\""
+ exit 2
+ }
+
+-function viewall
++viewall ()
+ {
+ for hca in `ls $ib_sysfs`; do
+ if [ -f $ib_sysfs/$hca/node_desc ]; then
diff --git a/debian/patches/series b/debian/patches/series
index cba9ea8..a647909 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -16,3 +16,4 @@
30-ibhosts-bashisms.patch
32-ibrouters-bashisms.patch
34-ibswitches-bashisms.patch
+35-set_nodedesc-bashisms.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/infiniband-diags.git
More information about the Pkg-ofed-commits
mailing list