Ensure GAP (and PYTHON) uses an absolute path
fingolfin opened this issue · 1 comments
fingolfin commented
If a user does GAP=./some/relative/path/to/gap
then it works for the initial sanity check, but no more once we changed into tmp/pkgdir/
.
We should handle this. Either by rejecting such paths, or (nicer) by turning them into absolute ones.
But be careful to still handle actual absolute paths, and also things like gap
which are relative to PATH
.
Perhaps this simple rule would already work: if there is a slash in $GAP
but not at the start, then it is a relative path; fix that by prepending $PWD/
.