[Slackbuilds-users] Error in wxGTK3 buildscript

King Beowulf kingbeowulf at gmail.com
Mon Aug 13 02:10:03 UTC 2018


When creating the /usr/bin/wx-config symlink, code needs to be added in
case the user compiles with STATIC=yes


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

--- /data/slackware/builds/libraries/wxGTK3/wxGTK3.SlackBuild	2018-03-24
17:19:40.661155000 -0700
+++ /tmp/medit-1-tmpdir-2d497bf8/tmpfile-001	2018-08-12
19:06:53.356083390 -0700
@@ -119,8 +119,13 @@ find $PKG -print0 | xargs -0 file | grep
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

 # Now let's fix the broken symlink created by the package
-ln -fs /usr/lib${LIBDIRSUFFIX}/wx/config/gtk2-unicode-3.0 \
+if [ "${STATIC:-no}" = "yes" ]; then
+ln -fs /usr/lib${LIBDIRSUFFIX}/wx/config/gtk2-unicode-static-3.0 \
        $PKG/usr/bin/wx-config
+else
+  ln -fs /usr/lib${LIBDIRSUFFIX}/wx/config/gtk2-unicode-3.0 \
+       $PKG/usr/bin/wx-config
+fi

 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION

--------->8--------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180812/5142eb6a/attachment-0001.asc>


More information about the SlackBuilds-users mailing list