diff options
-rw-r--r-- | development/tklib/tklib.SlackBuild | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/development/tklib/tklib.SlackBuild b/development/tklib/tklib.SlackBuild index 75d1db83d1..97e3b6bef2 100644 --- a/development/tklib/tklib.SlackBuild +++ b/development/tklib/tklib.SlackBuild @@ -4,11 +4,15 @@ # Based on slackbuild script written by Paul Wisehart wise@lupulin.net +# 20241006 bkw: Modified by SlackBuilds.org, v0.6 BUILD=2: +# - remove /usr/bin/dia from the package. see comments below +# for explanation. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tklib VERSION=${VERSION:-0.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -20,9 +24,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -73,6 +74,14 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +# 20241006 bkw: The 'dia' script conflicts with /usr/bin/dia from the +# graphics/dia package. Also, it doesn't even run (has #!bin/bash at +# the top, which causes a 'bad interpreter' error). Whatever it does, +# obviously nobody has ever needed to do it, or else we would have +# gotten a bug report about it sometime in the last 10 years. +# Thanks to samtux on libera #slackbuilds for finding this issue. +rm -f $PKG/usr/bin/dia + 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 |