Skip to content

fix(java): disable slowdebug variant for openjdk builds#17103

Draft
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/java-remove-slowdebug
Draft

fix(java): disable slowdebug variant for openjdk builds#17103
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/java-remove-slowdebug

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

Add build.without = ["slowdebug"] to java-25-openjdk and java-25-openjdk-portable to skip building the -slowdebug subpackages.

Drop the corresponding *-slowdebug entries from base.packages.toml and sdk.packages.toml so the package lists stay consistent with what the build actually produces.

Copy link
Copy Markdown
Member

@reubeno reubeno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me, when you're ready.

@christopherco christopherco marked this pull request as ready for review May 9, 2026 05:12
Copilot AI review requested due to automatic review settings May 9, 2026 05:12
@christopherco christopherco marked this pull request as draft May 9, 2026 05:14
@christopherco
Copy link
Copy Markdown
Collaborator Author

christopherco commented May 9, 2026

I need to fix up the release calculation because the increment isn't being honored. I'll likely need to do something similar to what we do in the kernel package

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Disables the slowdebug build variant for the Java 25 OpenJDK components in Azure Linux, and updates the published package manifests to match the resulting RPM outputs.

Changes:

  • Set build.without = ["slowdebug"] for java-25-openjdk and java-25-openjdk-portable.
  • Regenerate rendered specs to include the generated *.azl.macros files and load them during spec parsing.
  • Remove *-slowdebug package entries from base.packages.toml and sdk.packages.toml, and refresh component lock fingerprints.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
specs/j/java-25-openjdk/java-25-openjdk.spec Loads generated azldev macros and adds the macros file as Source9999; updates changelog.
specs/j/java-25-openjdk/java-25-openjdk.azl.macros New generated macros file forcing --without slowdebug.
specs/j/java-25-openjdk-portable/java-25-openjdk-portable.spec Loads generated azldev macros and adds the macros file as Source9999; updates changelog.
specs/j/java-25-openjdk-portable/java-25-openjdk-portable.azl.macros New generated macros file forcing --without slowdebug.
locks/java-25-openjdk.lock Updates input-fingerprint to reflect the component config change.
locks/java-25-openjdk-portable.lock Updates input-fingerprint to reflect the component config change.
base/packages/sdk.packages.toml Drops java-25-openjdk-portable*-slowdebug entries from the SDK package set.
base/packages/base.packages.toml Drops java-25-openjdk*-slowdebug entries from the base package set.
base/comps/java-25-openjdk/java-25-openjdk.comp.toml Disables slowdebug variant via build.without.
base/comps/java-25-openjdk-portable/java-25-openjdk-portable.comp.toml Disables slowdebug variant via build.without.

Comment on lines +9 to +11
# All Azure Linux specs with overlays include this macro file, irrespective of whether new macros have been added.
%{load:%{_sourcedir}/java-25-openjdk.azl.macros}

Comment on lines +9 to +11
# All Azure Linux specs with overlays include this macro file, irrespective of whether new macros have been added.
%{load:%{_sourcedir}/java-25-openjdk-portable.azl.macros}

Add `build.without = ["slowdebug"]` to java-25-openjdk and java-25-openjdk-portable to skip building the -slowdebug subpackages.

Drop the corresponding *-slowdebug entries from base.packages.toml and sdk.packages.toml so the package lists stay consistent with what the build actually produces.

Introduce an `azl_rpmrelease` build define and a spec-search-replace overlay (mirroring the kernel pattern) so the Release tag can be bumped independently of the pinned upstream commit. Bump to 6 for java-25-openjdk and 3 for java-25-openjdk-portable.
@christopherco christopherco force-pushed the chrco/java-remove-slowdebug branch from f5fbec1 to c9f8d07 Compare May 9, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants