From 39aad2d2b96ace1f268dd1ea232f4883054112d9 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 1 Jan 2013 20:03:42 +0000 Subject: Needed a -fPIC patch --- unrar/build/unrar.SlackBuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'unrar') diff --git a/unrar/build/unrar.SlackBuild b/unrar/build/unrar.SlackBuild index c694c2a0..b6eecf63 100755 --- a/unrar/build/unrar.SlackBuild +++ b/unrar/build/unrar.SlackBuild @@ -50,7 +50,8 @@ # 4.0.7-1: 13/may/2011 by Eric Hameleers # * Update. # 4.2.4-1: 01/jan/2013 by Eric Hameleers -# * Update. +# * Update. Apply patch to allow the shared library +# to be linked on 64-bit: # # Run 'sh unrar.SlackBuild' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -162,9 +163,15 @@ echo "Extracting the source archive(s) for $PRGNAM..." tar -xvf ${SOURCE} cd ${PRGNAM} +touch $OUTPUT/patch-$PRGNAM.log + +# Allow the shared library to be linked on 64-bit: +cat $SRCDIR/unrar.pic.diff | patch -p1 --verbose \ + 2>&1 | tee -a $OUTPUT/patch-$PRGNAM.log + # Fix error converting .CBR in calibre: cat $SRCDIR/unrar.missing_sym.diff | patch -p1 --verbose \ - 2>&1 | tee $OUTPUT/patch-$PRGNAM.log + 2>&1 | tee -a $OUTPUT/patch-$PRGNAM.log chown -R root:root . chmod -R u+w,go+r-w,a+X-s . -- cgit v1.2.3-65-gdbad