This is not a maintainable build solution. Revert and come back when you
have one.
(It's always okay to say "I've gotten this far in implementation but hit
a snag". Just don't commit until you resolve the snag.)
Allison
FYI, $(YACC) and $(LEX) are set to useful values when "--maintainer" is
passed to Configure.pl. If apply a patch as part of the build processes
is really the only option then a conditional could be added to root.in
to only apply the patch when --maintainer is in effect.
-J
--
> aud...@cvs.perl.org wrote:
> This is not a maintainable build solution. Revert and come back
> when you have one.
Reverted.
Audrey
Please clarify: What, exactly, is not maintainable? The presence of
a .diff file, or the fact that it needs to be applied manually?
If the latter, an extra line of Makefile rule suffices. If the
former, a bison post-processor wrapper is needed.
Thanks,
Audrey
Assuming both were considered unmaintainable, fixed them, and
committed again as r13348.
I'd be willing to revert r13348 again if you find anything wrong with
it, but a more specific response would be appreciated.
Thanks,
Audrey
The obvious wrong thing with it is that it doesn't come with a check
for flex >= 2.5.33. Joshua on #parrot said he'll fix that in the
morning.
Another obvious point was the resilience of the post processor
against bison outputs. Fortunately, it appears that with bison >=
2.2, multiple %lex-param is supported (though they need to be
declared in separate lines, unlike %parse-param), and multiple %parse-
param is also made available to all functions including the
destructor. Hence if we can bump the version dependency of bison
too, then this can work without source-level patching at all
(committed as .
So, is this maintainer-side dependency (bison 2.2+, flex 2.5.33+;
does not affect the user) a reasonable cost for IMCC reentrancy?
Thanks,
Audrey
Both.
>> Assuming both were considered unmaintainable, fixed them, and
>> committed again as r13348.
Excellent! :)
> The obvious wrong thing with it is that it doesn't come with a check for
> flex >= 2.5.33. Joshua on #parrot said he'll fix that in the morning.
Also good. Please add a check for the bison version too.
> Another obvious point was the resilience of the post processor against
> bison outputs. Fortunately, it appears that with bison >= 2.2, multiple
> %lex-param is supported (though they need to be declared in separate
> lines, unlike %parse-param), and multiple %parse-param is also made
> available to all functions including the destructor. Hence if we can
> bump the version dependency of bison too, then this can work without
> source-level patching at all (committed as .
Agreed, I prefer this to a post-processor on the bison output.
> So, is this maintainer-side dependency (bison 2.2+, flex 2.5.33+; does
> not affect the user) a reasonable cost for IMCC reentrancy?
Yes. Periodically upgrading the tools we use is a good idea anyway.
Allison