summaryrefslogtreecommitdiff
path: root/libraries/tsocks/tsocks-1.8beta5-64bit.diff
diff options
context:
space:
mode:
authormancha <mancha1@hush.com>2013-10-30 23:23:58 -0500
committerRobby Workman <rworkman@slackbuilds.org>2013-10-31 00:01:08 -0500
commit0979f839ec7f1e2c2e10fb81597e3926d91bd533 (patch)
tree3cf9232fafdb447e69d25ee14f7580f708207da3 /libraries/tsocks/tsocks-1.8beta5-64bit.diff
parent88b213ed9db076344ee658010e789b5557e7ddbc (diff)
downloadslackbuilds-0979f839ec7f1e2c2e10fb81597e3926d91bd533.tar.gz
libraries/tsocks: fix incorrect LD_PRELOAD paths on x86_64
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/tsocks/tsocks-1.8beta5-64bit.diff')
-rw-r--r--libraries/tsocks/tsocks-1.8beta5-64bit.diff43
1 files changed, 43 insertions, 0 deletions
diff --git a/libraries/tsocks/tsocks-1.8beta5-64bit.diff b/libraries/tsocks/tsocks-1.8beta5-64bit.diff
new file mode 100644
index 0000000000..d6ba336108
--- /dev/null
+++ b/libraries/tsocks/tsocks-1.8beta5-64bit.diff
@@ -0,0 +1,43 @@
+From 433c41f4a23130a079ed6e681e7016c0b187fb61 Mon Sep 17 00:00:00 2001
+From: mancha <mancha1@hush.com>
+Date: Thu, 26 Sep 2013
+Subject: Use appropriate path on x86_64 systems
+
+ tsocks | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+--- a/tsocks 2013-09-26
++++ b/tsocks 2013-09-26
+@@ -46,14 +46,14 @@ case "$1" in
+ on)
+ if [ -z "$LD_PRELOAD" ]
+ then
+- export LD_PRELOAD="/usr/lib/libtsocks.so"
++ export LD_PRELOAD="/usr/lib64/libtsocks.so"
+ else
+- echo $LD_PRELOAD | grep -q "/usr/lib/libtsocks\.so" || \
+- export LD_PRELOAD="/usr/lib/libtsocks.so $LD_PRELOAD"
++ echo $LD_PRELOAD | grep -q "/usr/lib64/libtsocks\.so" || \
++ export LD_PRELOAD="/usr/lib64/libtsocks.so $LD_PRELOAD"
+ fi
+ ;;
+ off)
+- export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib\/libtsocks.so \?//'`
++ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib64\/libtsocks.so \?//'`
+ if [ -z "$LD_PRELOAD" ]
+ then
+ unset LD_PRELOAD
+@@ -68,10 +68,10 @@ case "$1" in
+ *)
+ if [ -z "$LD_PRELOAD" ]
+ then
+- export LD_PRELOAD="/usr/lib/libtsocks.so"
++ export LD_PRELOAD="/usr/lib64/libtsocks.so"
+ else
+- echo $LD_PRELOAD | grep -q "/usr/lib/libtsocks\.so" || \
+- export LD_PRELOAD="/usr/lib/libtsocks.so $LD_PRELOAD"
++ echo $LD_PRELOAD | grep -q "/usr/lib64/libtsocks\.so" || \
++ export LD_PRELOAD="/usr/lib64/libtsocks.so $LD_PRELOAD"
+ fi
+
+ if [ $# = 0 ]