summaryrefslogtreecommitdiffstats
path: root/academic/wise
diff options
context:
space:
mode:
author Petar Petrov <slackalaxy@gmail.com>2023-09-21 22:44:05 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-23 08:42:56 +0700
commit3e0f2ef5f44e1af2f3f151f39353afb2b25ba436 (patch)
tree3a4aec657a5fd64ab9d034ea7df5a21eaf33994c /academic/wise
parent5b5e1ea07db92534c05bf5c18ef37de50148a38d (diff)
downloadslackbuilds-3e0f2ef5f44e1af2f3f151f39353afb2b25ba436.tar.gz
slackbuilds-3e0f2ef5f44e1af2f3f151f39353afb2b25ba436.tar.xz
academic/wise: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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" \