Subject: [alpine-aports] [PATCH 2/4] testing/hping: add tcl 8.5 and 8.6

From: Corentin Henry <[email-masked]>
Date: Tue, 19 Jan 2016 11:50:39 +0000

---
 testing/hping/10-add_tcl_version.patch | 72 ++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 testing/hping/10-add_tcl_version.patch

diff --git a/testing/hping/10-add_tcl_version.patch b/testing/hping/10-add_tcl_version.patch
new file mode 100644
index 0000000..9e6eae2
--- /dev/null
+++ b/testing/hping/10-add_tcl_version.patch
@@ -0,0 +1,72 @@
+From ab6a1f2d7d0b064514ee7cbf575b8ef4dd039d73 Mon Sep 17 00:00:00 2001
+From: Carsten Grohmann <[email-masked]>
+Date: Tue, 19 May 2015 17:55:42 +0200
+Subject: [PATCH] Quote variables and add new TCL versions "8.5" and "8.6"
+
+---
+ configure | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+diff --git a/configure b/configure
+index dab04ab..047712d 100755
+--- a/configure
++++ b/configure
+@@ -44,11 +44,11 @@ if [ ! "$CONFIGOSTYPE" ]; then
+ fi
+ 
+ # for BSD/OS use the historical name as it doesn't include '/'
+-if [  $CONFIGOSTYPE = "BSD/OS" ]; then
++if [  "$CONFIGOSTYPE" = "BSD/OS" ]; then
+ 	CONFIGOSTYPE=BSDI
+ fi
+ 
+-case $CONFIGOSTYPE in
++case "$CONFIGOSTYPE" in
+   SUNOS)
+     SOLARISLIB="-lsocket -lresolv -lnsl"
+     BUG='/* #define STUPID_SOLARIS_CHECKSUM_BUG */'
+@@ -63,31 +63,31 @@ esac
+ #
+ for TCLPATH_TRY in "/usr/bin/" "/usr/local/bin/" "/bin/"
+ do
+-	for TCLVER_TRY in "8.4" "8.3" "8.2" "8.1" "8.0"
++	for TCLVER_TRY in "8.6" "8.5" "8.4" "8.3" "8.2" "8.1" "8.0"
+ 	do
+-		if [ -z $TCLSH ]
++		if [ -z "$TCLSH" ]
+ 		then
+-			TCLSH_TRY=${TCLPATH_TRY}tclsh${TCLVER_TRY}
+-			if [ -f $TCLSH_TRY ]
++			TCLSH_TRY="${TCLPATH_TRY}tclsh${TCLVER_TRY}"
++			if [ -f "$TCLSH_TRY" ]
+ 			then
+-				TCLSH=$TCLSH_TRY
++				TCLSH="$TCLSH_TRY"
+ 				echo "===> Found Tclsh in: $TCLSH"
+ 			fi
+ 		fi
+ 	done
+ done
+-if [ -f $TCLSH ]
++if [ -f "$TCLSH" ]
+ then
+ 	TCL_VER=`echo puts \\$tcl_version | $TCLSH -`
+-	USE_TCL='-DUSE_TCL'
++	USE_TCL="-DUSE_TCL"
+ 	TCL_LIB="-ltcl${TCL_VER}"
+-	if [ -e /usr/include/tcl${TCL_VER} ]
++	if [ -e "/usr/include/tcl${TCL_VER}" ]
+ 	then
+ 		TCL_INC="-I/usr/include/tcl${TCL_VER}"
+-	elif [ -e /usr/include/tcl.h ]
++	elif [ -e "/usr/include/tcl.h" ]
+ 	then
+ 		TCL_INC=""
+-	elif [ -e /usr/local/include/tcl${TCL_VER} ]
++	elif [ -e "/usr/local/include/tcl${TCL_VER}" ]
+ 	then
+ 		TCL_INC="-I/usr/local/include/tcl${TCL_VER}"
+ 	else
+-- 
+2.7.0
+
-- 
2.7.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---