[Slackbuilds-users] tsocks is broken on Slackware64

mancha mancha1 at hush.com
Thu Sep 26 20:23:23 UTC 2013


On Wed, 25 Sep 2013 20:26:07 +0000 "Ben Mendis" wrote:
>After a little bit of troubleshooting I figured out that
>the problem was an incorrect library path being added to
>LD_PRELOAD.

You are right. The tsocks SBo package needs to be fixed for
64-bit systems. I agree adding the utilities: inspectsocks
& validateconf as well as sample configurations would be an
improvement.

The attached patch (tsocks-1.8beta5-64bit.diff) can be placed
in the build directory along with changes to the SlackBuild
script below.

--mancha
 
======

--- tsocks.SlackBuild.orig
+++ tsocks.SlackBuild	
@@ -43,7 +43,7 @@
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
-DOCS="COPYING ChangeLog FAQ"
+DOCS="COPYING ChangeLog FAQ tsocks.conf.simple.example 
tsocks.conf.complex.example"
 
 if [ "$ARCH" = "i486" ]; then
   SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -74,6 +74,10 @@
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -
o -perm 400 \) \
  -exec chmod 644 {} \;
 
+if [ "$ARCH" = "x86_64" ]; then
+  patch -p1 --verbose < $CWD/tsocks-1.8beta5-64bit.diff || exit 1
+fi
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
@@ -86,6 +90,7 @@
 
 make
 make install DESTDIR=$PKG
+/usr/bin/install -m755 inspectsocks validateconf $PKG/usr/bin
 
 find $PKG | xargs file | grep -e "executable" -e "shared object" | 
grep ELF \
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || 
true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tsocks-1.8beta5-64bit.diff
Type: application/octet-stream
Size: 1414 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20130926/a1225eed/attachment.obj>


More information about the SlackBuilds-users mailing list