work around unset SAGE_ROOT in Debian Sage package
authorJohn Scott <jscott@posteo.net>
Wed, 19 May 2021 07:16:20 +0000 (16:16 +0900)
committerNorbert Preining <norbert@preining.info>
Wed, 19 May 2021 07:16:20 +0000 (16:16 +0900)
commit52656c935bbbee09057ab3fb1fb8779ef718eef9
treed630110f78d5f5bc9b2574772ba3faed1437c704
parent8ff27a8eb815ad2e451f9936b5ca6c140a009db0
work around unset SAGE_ROOT in Debian Sage package

Bug-Debian: https://bugs.debian.org/972346
Forwarded: https://bugs.kde.org/show_bug.cgi?id=408176#c19
Last-Update: 2021-01-17

In this shell script, '$1' refers to the Sage binary that is to
be used. The script is needlessly complex to accommodate for old
versions of Sage, and perhaps the author is unaware of Sage's
new command-line arguments.

Debian's `sage --root` is an empty string, so Cantor fails to
start it. This patch is more succinct by starting the Sage shell
which sets all variables appropriately, then starting
'sage-ipython' as desired. This way, as opposed to having
'#!/usr/bin/sage --sh' as the shebang, still permits usage of
local Sage copies.

Gbp-Pq: Name work-around-Sage-no-root.diff
src/backends/sage/cantor-execsage