On Tue, 24 Nov 2026 09:01:06 GMT, Andreas Chmielewski 
<[email protected]> wrote:

> > The new script uses m4 as well as shell tools like sed and grep directly 
> > from the path, bypassing the lookups done in configure. Is there any risk 
> > that the check would fail if the local version of m4 was different from the 
> > one used to generate the files? It seems m4 tries to stay stable, but 
> > that's not a guarantee. Requiring exact output seems brittle.
> > For this check to fit into the OpenJDK build, it needs to use tools defined 
> > in configure and only be activated if a suitable m4 version is detected.
> 
> Thats a good point. Thx!

I have updated the PR so that the path to m4 is now passed from the build 
system to the script. For the other tools (sed, grep, awk, etc.), I chose not 
to pass them explicitly. They are already discovered by configure.

I'm not entirely sure whether bypassing the configure-provided paths for all 
shell tools would be considered desirable. Passing m4 felt justified since 
output differences between versions could directly affect the generated files, 
whereas the other tools are only used for simple text processing.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/34019#issuecomment-7156358944

Reply via email to