[jdk17u-dev] RFR: 8284772: GHA: Use GCC Major Version Dependencies Only

Andrew John Hughes andrew at openjdk.org
Fri Aug 18 16:23:28 UTC 2023


GHA regularly breaks because we specify a very explicit GCC version, even down to the release versioning of the Ubuntu package.

Rather than bumping this yet again like https://github.com/openjdk/jdk17u/commit/260f28761a87553fd634615df5ba3db5b76ae692, this PR suggests dropping the specific version as we did some time ago in 8u and I've also proposed to fix the same breakage in 11u (https://github.com/openjdk/jdk11u-dev/pull/2087). The requirement still specifies a specific major version of GCC. It just means the dependency isn't broken every time Ubuntu bumps to a new minor release or even just makes a minor change to the package alone.

Note that the current setup does not guarantee sticking with an exact version of GCC anyway, because - as seen by recent GHA breakage - older versions get removed from the package repository. All we get from this exact version requirement is sporadic breakage. If we truly want a static version of GCC, we need to provide our own as we do with the JDK.

This is based on https://github.com/openjdk/jdk17u-dev/pull/1595 to allow https://github.com/openjdk/jdk17u-dev/pull/1672 to proceed.

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

Depends on: https://git.openjdk.org/jdk17u-dev/pull/1595

Commit messages:
 - Backport 62defc3dfc4b9ba5adfe3189f34fe8b3f59b94a0
 - Merge remote-tracking branch 'jdk17u-dev/master' into JDK-8284772
 - 8313796: AsyncGetCallTrace crash on unreadable interpreter method pointer
 - 8313402: C1: Incorrect LoadIndexed value numbering
 - 8294941: GHA: Cut down cross-compilation sysroots
 - 8294956: GHA: qemu-debootstrap is deprecated, use the regular one
 - 8299330: Minor improvements in MSYS2 Workflow handling
 - 8294149: JMH 1.34 and later requires jopt-simple 5.0.4
 - 8304353: Add lib-test tier1 testing in GHA
 - 8309088: security/infra/java/security/cert/CertPathValidator/certification/AmazonCA.java fails
 - ... and 71 more: https://git.openjdk.org/jdk17u-dev/compare/7ad622dd...4e51a975

Changes: https://git.openjdk.org/jdk17u-dev/pull/1673/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1673&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8284772
  Stats: 41524 lines in 867 files changed: 14767 ins; 14022 del; 12735 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1673.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1673/head:pull/1673

PR: https://git.openjdk.org/jdk17u-dev/pull/1673


More information about the jdk-updates-dev mailing list