From ab754938838124ebb2f8a6df46bf55357059be67 Mon Sep 17 00:00:00 2001 From: Christopher L Duston Date: Sat, 9 May 2020 07:45:33 +0700 Subject: academic/sage: Fix post-installation path. Signed-off-by: Willy Sudiarto Raharjo --- academic/sage/sage.SlackBuild | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'academic') 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 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 -- cgit v1.2.3