#12627: The spkg/bin/sage script engraves paths to executables
--------------------------------+-------------------------------------------
Reporter: Snark | Owner: leif
Type: defect | Status: needs_info
Priority: major | Milestone: sage-5.11
Component: scripts | Resolution:
Keywords: rd2 | Work issues:
Report Upstream: N/A | Reviewers: R. Andrew Ohana
Authors: Julien Puydt | Merged in:
Dependencies: | Stopgaps:
--------------------------------+-------------------------------------------
Comment (by felixs):
The build system proposed in http://wiki.sagemath.org/BuildSystemSEP
(#14796), provides options to disable packages (and falling back to
already installed things outside of sage). also sage (the library) needs
to work without the distribution.
Finally, under some circumstances, sage --PROGRAM needs to just use plain
$PATH. And it always should.
So lets solve this problem at its root:
* sage (the distribution) places a dummy into $SAGE_LOCAL/bin/p for all
enabled packages p, if such a file doesnt exist (or more dummies if
needed)
* installation of a package will replace these dummies
* sage (the distribution) clears these dummies upon disabling a package
(which also triggers uninstall)
* sage (the environment) just sets PATH=$(SAGE_LOCAL)/bin:$PATH (as it
currently does)
* sage (the library) works outside sage (the distribution) without
headache
To deal with even more paranoia, sage (the distribution) could also
include a list of header and library locations for each package. Placed in
a similar way, respective files could make sure gcc won't fall back to
/usr/include or /usr/lib without your consent.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12627#comment:28>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.