Changes between Version 23 and Version 24 of Ticket #5852
 Timestamp:
 08/23/11 13:22:14 (10 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #5852 – Description
v23 v24 3 3  If the sage executable is a symbolic link, then `readlink n` returns the link itself, not the canonicalized name. Example: if `/usr/local/sage4.7.1/sage` is a symbolic link to `sagefoo`, then `SAGE_ROOT` would become `sagefoo` when `'/usr/local/sage4.7.1/sagefoo` is intended. 4 4  The symlink expansion may not be completely done, and {{{$SAGE_ROOT}}} could end up with a noncanonical dirname, which leads to issues with testing. 5  The code to detect `SAGE_ROOT` inside `sageenv` does not canonicalize the pathname at all. This should be fixed as well. (The only case where `sageenv` is run without `SAGE_ROOT` being set is when testing Sage from the `Makefile`, i.e. when running `make ptest` or similar.) 5 6 6 7 Note that we should do this in a portable way, without using `realpath`, `readlink f` or the likes. See attachments for two bash scripts to solve this problem (either of them should suffice).