summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorChristopher L Duston <christopher.duston@protonmail.com>2020-05-09 07:45:33 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-10 08:36:53 +0700
commitab754938838124ebb2f8a6df46bf55357059be67 (patch)
tree10ab2c1cbf107e88a82374a63adf2354a48c0aab /academic
parent03b7991591ab0975d51bb9ca7cb473ef7fb2d366 (diff)
downloadslackbuilds-ab754938838124ebb2f8a6df46bf55357059be67.tar.gz
academic/sage: Fix post-installation path.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/sage/sage.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/academic/sage/sage.SlackBuild b/academic/sage/sage.SlackBuild
index 2ee5996dc9..afa2702101 100644
--- a/academic/sage/sage.SlackBuild
+++ b/academic/sage/sage.SlackBuild
@@ -45,8 +45,12 @@ LIBDIRSUFFIX=""
fi
####
+# SAGE_ROOT/bin/sage points to the build directory, which can't be
+# in the /tmp folder if we want it to remain after installation.
+# So we'll put it in /var/tmp. Maybe just sticking it in /usr is better.
+
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/var/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -79,14 +83,9 @@ patch -p1 < $CWD/sage-build-root.patch
# Thanks to Philip Lacroix <slackph@posteo.de>
rm build/pkgs/python2/patches/sys_path_security-issue_16202.patch
-# Test Fix - this did not work.
-# sed -i "s|/lib|/lib${LIBDIRSUFFIX}|" build/pkgs/iml/spkg-install
-
-
-
# The docs do not build correctly, so instead of make, do the following:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
-make build
+ make build
# test all examples in the documentation (over 93,000 line of input)
[ "${TEST:-no}" = "yes" ] && make test