From 6e90b14cc15690e24f35117b35649be1989144fc Mon Sep 17 00:00:00 2001 From: dsomero Date: Mon, 13 Jan 2014 22:14:24 -0500 Subject: network/torsocks: Fix lib path in torsocks. Added a patch to fix a symbol warning. Thanks to crumb on irc for the report. Signed-off-by: dsomero --- network/torsocks/symbol_lookup.patch | 16 ++++++++++++++++ network/torsocks/torsocks.SlackBuild | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 network/torsocks/symbol_lookup.patch (limited to 'network/torsocks') diff --git a/network/torsocks/symbol_lookup.patch b/network/torsocks/symbol_lookup.patch new file mode 100644 index 000000000000..ba8e62ec3665 --- /dev/null +++ b/network/torsocks/symbol_lookup.patch @@ -0,0 +1,16 @@ +--- src/tsocks.c 2011-10-25 17:49:50.000000000 -0400 ++++ src/tsocks.c 2012-02-21 11:09:20.000000000 -0500 +@@ -175,9 +175,9 @@ + #define LOAD_ERROR(s,l) { \ + char *error; \ + error = dlerror(); \ +- show_msg(l, "The symbol %s() was not found in any shared " \ +- "library. The error reported was: %s!\n", s, \ +- (error)?error:"not found"); \ ++ if (error) \ ++ show_msg(l, "The symbol %s() was not found in any shared " \ ++ "library. The error reported was: %s!\n", s, error); \ + dlerror(); \ + } + pthread_mutex_lock(&torsocks_init_mutex); + diff --git a/network/torsocks/torsocks.SlackBuild b/network/torsocks/torsocks.SlackBuild index 2255db54ced5..3f34263f135f 100644 --- a/network/torsocks/torsocks.SlackBuild +++ b/network/torsocks/torsocks.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=torsocks VERSION=${VERSION:-1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -53,6 +53,8 @@ find -L . \ # Fix a hardcoded lib path. sed -i -e 's|@prefix@/lib|@libdir@|' src/Makefile.in +sed -i -e 's|@prefix@/lib|@libdir@|' src/torsocks.in +patch -p0 < $CWD/symbol_lookup.patch CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -- cgit v1.2.3