[Slackbuilds-users] essential patch for afdko SB

Duncan Roe duncan_roe at acslink.net.au
Mon May 15 01:13:52 UTC 2017


Hi moderators,

The afdko SB needs this patch to work. Without it, the programs in it will
loop indefinitely, looking for the Tools directory.

Please apply when circumstances permit,

Cheers ... Duncan.

-----------------------------8<------------------------------

diff -u /usr/src/slackbuilds/system/afdko/afdko.SlackBuild ./afdko.SlackBuild
--- /usr/src/slackbuilds/system/afdko/afdko.SlackBuild	2017-05-13 11:33:55.000000000 +1000
+++ ./afdko.SlackBuild	2017-05-13 21:22:39.000000000 +1000
@@ -24,7 +24,7 @@

 PRGNAM=afdko
 VERSION=${VERSION:-2.5.65322}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG:-_SBo}

 if [ -z "$ARCH" ]; then
@@ -81,12 +81,12 @@
 cd ../..

 # Replacement for make install
-mkdir -p $PKG/opt/$PRGNAM
-mv Tools/linux Tools/SharedData $PKG/opt/$PRGNAM
+mkdir -p $PKG/opt/$PRGNAM/Tools
+mv Tools/linux Tools/SharedData $PKG/opt/$PRGNAM/Tools

-mkdir -p $PKG/opt/$PRGNAM/linux/Python/Current/bin
+mkdir -p $PKG/opt/$PRGNAM/Tools/linux/Python/Current/bin
 ln -s $(readlink -f $(type -p python)) \
-  $PKG/opt/$PRGNAM/linux/Python/Current/bin/python2.7
+  $PKG/opt/$PRGNAM/Tools/linux/Python/Current/bin/python2.7

 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff -u /usr/src/slackbuilds/system/afdko/afdko.csh ./afdko.csh
--- /usr/src/slackbuilds/system/afdko/afdko.csh	2017-05-13 11:33:55.000000000 +1000
+++ ./afdko.csh	2017-05-13 21:22:39.000000000 +1000
@@ -1,5 +1,5 @@
 #!/bin/csh
-setenv FDK_EXE /opt/afdko/linux
+setenv FDK_EXE /opt/afdko/Tools/linux
 if ( $?PATH ) then
   echo :${PATH}: | grep -q :${FDK_EXE}: || setenv PATH ${PATH}:${FDK_EXE}
 else
diff -u /usr/src/slackbuilds/system/afdko/afdko.sh ./afdko.sh
--- /usr/src/slackbuilds/system/afdko/afdko.sh	2017-05-13 11:33:55.000000000 +1000
+++ ./afdko.sh	2017-05-13 21:22:39.000000000 +1000
@@ -1,5 +1,5 @@
 #!/bin/sh
-FDK_EXE="/opt/afdko/linux"
+FDK_EXE="/opt/afdko/Tools/linux"
 if [ ! "$PATH" = "" ]; then
   echo :$PATH: | grep -q :$FDK_EXE: || PATH=$PATH:$FDK_EXE
 else



More information about the SlackBuilds-users mailing list