[jdk8u-dev] RFR: JDK-8284772: 8u GHA: Use GCC Major Version Dependencies Only

Andrew John Hughes andrew at openjdk.java.net
Tue Apr 12 19:07:23 UTC 2022


Major versions of GCC often cause problems with OpenJDK. Fedora's eager adoption of them means we often encounter these early. [JDK-8282231](https://bugs.openjdk.java.net/browse/JDK-8282231) is just the latest example from the introduction of GCC 12.

However, the GHA workflow in OpenJDK doesn't just depend on a major version of GCC - which is actually contained in the Ubuntu package name of `gcc-9` itself - but the full revision number, even down to local packaging changes.

I believe this is overkill and leads to valuable time being wasted on issues like [JDK-8283778](https://bugs.openjdk.java.net/browse/JDK-8283778) where the GCC version itself didn't change at all, just the Ubuntu version suffix.

Rather than maintain this for 8u, I suggest we just depend on `gcc-9` which is already a pretty modern version for 8u. I have yet to see an issue be specific to a minor GCC version bump, whereas the current setup is pretty much guaranteed to mean further fixes to the GitHub workflow every time the Ubuntu packager produces a new build.

Note that the x86-32 Linux build already uses just `gcc-9-multilib` which is why it hasn't been broken by the latest GCC update.

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

Commit messages:
 - Remove specification of minor version and package release data from GCC dependency

Changes: https://git.openjdk.java.net/jdk8u-dev/pull/35/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk8u-dev&pr=35&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8284772
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk8u-dev/pull/35.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk8u-dev pull/35/head:pull/35

PR: https://git.openjdk.java.net/jdk8u-dev/pull/35


More information about the jdk8u-dev mailing list