SA Bugzilla – Bug 8254
t/sa_compile.t does not run if re2c is not in /usr/bin/
Last modified: 2024-05-06 08:21:19 UTC
If I run Makefile.PL as: perl Makefile.PL RE2C_BIN=/usr/local/cpanel/3rdparty/bin/re2c t/sa_compile.t doesn't seem to know about this and does not find re2c. Even if you fake re2c_version_new_enough that it's there, it still fails later in a compile. Somehow re2c location should be passed through?
I see another place in t/sa_compile.t where it needs to use the path for re2c that is compiled into sa-compile in addition to the one where you tried a fake re2c_version_new_enough. I'll put together a patch for the test that reads the compiled sa-compile file to get RE2C_BIN.
% svn ci -m "bug 8254 - fix sa-compile test to work with Makefile.PL RE2C_BIN option" t/sa_compile.t Sending t/sa_compile.t Transmitting file data .done Committing transaction... Committed revision 1917531.