[sagemath] 01/02: Fix another paths: this one helps Jupyter not crash at runtime

Ximin Luo infinity0 at debian.org
Mon Oct 17 10:34:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository sagemath.

commit 3c43211d5c06c1a9bcebb251945ac39ae916b7c8
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Oct 17 12:15:44 2016 +0200

    Fix another paths: this one helps Jupyter not crash at runtime
---
 debian/patches/fixsage-allow-override-sage-local.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/patches/fixsage-allow-override-sage-local.patch b/debian/patches/fixsage-allow-override-sage-local.patch
index 4d11a38..cb8acf4 100644
--- a/debian/patches/fixsage-allow-override-sage-local.patch
+++ b/debian/patches/fixsage-allow-override-sage-local.patch
@@ -6,6 +6,17 @@ Author: Ximin Luo <infinity0 at debian.org>
 Forwarded: TODO
 ---
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/sage
++++ b/sage
+@@ -134,6 +134,8 @@
+     exec "$SAGE_ROOT/src/bin/sage" "$@"
+ elif [ -x "$SAGE_ROOT/local/bin/sage" ]; then # if in a stripped binary
+     exec "$SAGE_ROOT/local/bin/sage" "$@"
++elif [ -x "$SAGE_LOCAL/bin/sage" ]; then # if in a stripped binary
++    exec "$SAGE_LOCAL/bin/sage" "$@"
+ else
+     echo >&2 "$0: no Sage installation found in \$SAGE_ROOT=$SAGE_ROOT"
+     exit 1
 --- a/sage/src/bin/sage-env
 +++ b/sage/src/bin/sage-env
 @@ -245,11 +245,11 @@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list