Bugfix for older Parse::RecDescent versions - #868
Conversation
|
@brucemiller can you check if this works on your problematic systems before merging? |
|
No, I actually mean -e inside the perl code to check if the given file exists.
… On 30. Aug 2017, at 15:39, Deyan Ginev ***@***.***> wrote:
@dginev commented on this pull request.
In Makefile.PL:
> @@ -175,6 +175,9 @@ pure_all :: $(INST_LIBDIR)/LaTeXML/MathGrammar.pm
$(INST_LIBDIR)/LaTeXML/MathGrammar.pm: lib/LaTeXML/MathGrammar
$(PERLRUN) -MParse::RecDescent - lib/LaTeXML/MathGrammar LaTeXML::MathGrammar Parse::RecDescent
+ @$(PERLRUN) -e 'exit -e ("$(INST_LIBDIR)/LaTeXML/MathGrammar.pm") ? 0 : 1;' || \
exit -e ? Don't you mean perl -e?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
|
||
| $(INST_LIBDIR)/LaTeXML/MathGrammar.pm: lib/LaTeXML/MathGrammar | ||
| $(PERLRUN) -MParse::RecDescent - lib/LaTeXML/MathGrammar LaTeXML::MathGrammar Parse::RecDescent | ||
| @$(PERLRUN) -e 'exit -e ("$(INST_LIBDIR)/LaTeXML/MathGrammar.pm") ? 0 : 1;' || \ |
There was a problem hiding this comment.
the leading @ on this line confused me enough to lose sight of the perlrun for my older question. What does leading @ do?
There was a problem hiding this comment.
Prevents the command from being echoed out. I added that to keep users from being confused by a 'fallback' message in the command, even though it is not relevant when not called.
There was a problem hiding this comment.
I see, thanks for educating me!
There was a problem hiding this comment.
I remember having known this years ago and then forgetting it, as bash syntax often goes.
fead8f6 to
0e174e5
Compare
|
OK, I managed to test this on an older machine, and need to make one more change for this to work. |
Older versions of Parse::RecDescent did not support the third argument to parser pre-compilation introduced in b5aa3d0. This caused installation problems for LaTeXML on older systems. This commit fixes the problem by introducing a fallback that does not use the third argument. This only gets triggered when the MathGrammar is not created.
0e174e5 to
556aaa4
Compare
Older versions of Parse::RecDescent did not support the third argument
to parser pre-compilation introduced in
b5aa3d0. This caused installation
problems for LaTeXML on older systems.
This PR fixes the problem by introducing a fallback that does not
use the third argument. This only gets triggered when the MathGrammar is
not created.