summaryrefslogtreecommitdiffstats
path: root/academic/wise
diff options
context:
space:
mode:
Diffstat (limited to 'academic/wise')
-rw-r--r--academic/wise/wise.SlackBuild15
1 files changed, 14 insertions, 1 deletions
diff --git a/academic/wise/wise.SlackBuild b/academic/wise/wise.SlackBuild
index c4c9dc56c9..84230832be 100644
--- a/academic/wise/wise.SlackBuild
+++ b/academic/wise/wise.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wise
VERSION=${VERSION:-2.4.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -86,6 +86,19 @@ patch -p1 -i $CWD/patches/11_consistent_manual_dates.patch
patch -p1 -i $CWD/patches/spelling.patch
patch -p1 -i $CWD/patches/cross.patch
+# This prevents some weird build breaks. Thanks to Urchlay. His explanation:
+#
+# The .c files that are in the tarball, were already built from the .dy
+# files. However, some of them get patched, e.g. wisefile.c and wisefile.dy
+# both have a modification time of the current time/date, which is why make
+# thinks it needs to rebuild the wisefile.c. When make is run, it looks at
+# the timestamps and decided wisefile.c is older than wisefile.dy (which it
+# is, ever so slightly, assuming the filesystem's timestamp resolution is
+# fine enough). What the solution does is force the timestamp on all the
+# .dy files to be older than the generated .c files, so make won't think it
+# needs to run dyc to generate the .c files.
+find src -name \*.dy -print0 | xargs -0 touch -d '2000-01-01'
+
cd src
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \