[jdk8u-ri] RFR: 8284907: Compact profiles build fails with GNU make 4

Magnus Ihse Bursie ihse at openjdk.java.net
Tue Apr 19 13:44:28 UTC 2022


On Fri, 15 Apr 2022 13:48:24 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> The compact profiles jar creation logic relies on what seems to be undefined behavior in GNU make. Pattern rules are unreliable when the file names contain '$'. The specific construct used in CreateJars.gmk works with GNU make 3.81, but fails with version 4 or higher.
> 
> This was originally fixed in 8u60 in [JDK-8067857](https://bugs.openjdk.java.net/browse/JDK-8067857). That change is quite big and not something we want to backport to 8u42. However, since then, GNU make 4 and higher have become quite common on Linux too, and not just in Cygwin where I believe this problem was first encountered. Because of this, I would like to extract just the fix for this, exactly as it was done in [JDK-8067857](https://bugs.openjdk.java.net/browse/JDK-8067857). Here is the original change:
> 
> https://github.com/openjdk/jdk8u-dev/commit/17421c860a6e71e14b0023e686b87c35b2049f69#diff-e580e7e55e76622c538ae8a1b55af984b3e12bba099e493582fff2925b9ae02aR314-R322

Marked as reviewed by ihse (Committer).

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

PR: https://git.openjdk.java.net/jdk8u-ri/pull/2


More information about the jdk8u-dev mailing list