Skip to content

Avoid excessive interpolation in pari gphelp script. #40028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emmanuelthome
Copy link
Contributor

Currently sage does not build if SAGE_LOCAL contains an @ sign. While admittedly not common, it should not cause failure.

The offender is pari. pari itself compiles fine, but cypari calls gphelp -raw Catalan to see if everything works alright, and this fails.

The reason is that gphelp is malformed, and can't find its data directory. Primarily, this is based on the following erroneous perl construct:

$datadir= "@datadir@";

which is found near the top of the doc/gphelp.in file.

This goes obviously amiss if @datadir@ contains an @ sign, because of the double quotes. AFAIK, the best perl-ish way to be robust to semi-crap that can be found in paths is to use a quoted here-doc, which is what this patch does.

Also reported upstream https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2621

This is a blocker if one wants to build sage and have for example an @ sign in SAGE_LOCAL. While admittedly not common, it should not cause failure.
Copy link

Documentation preview for this PR (built with commit 34e4e85; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant