Bug 2266697 - tzdata fails to build with java-21-openjdk
Summary: tzdata fails to build with java-21-openjdk
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tzdata
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Patsy Griffin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2262141
TreeView+ depends on / blocked
 
Reported: 2024-02-28 18:24 UTC by Petra Alice Mikova
Modified: 2024-04-05 14:01 UTC (History)
6 users (show)

Fixed In Version: tzdata-2024a-4.fc41 , tzdata-2024a-4.fc40
Clone Of:
Environment:
Last Closed: 2024-04-05 14:01:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petra Alice Mikova 2024-02-28 18:24:00 UTC
tzdata fails to build with java-21-openjdk as sytem JDK. See https://fedoraproject.org/wiki/Changes/Java21.

For the build logs, see: https://koji.fedoraproject.org/koji/taskinfo?taskID=114142160
https://kojipkgs.fedoraproject.org/work/tasks/2243/114142243/mock_output.log
https://kojipkgs.fedoraproject.org/work/tasks/2243/114142243/state.log
https://kojipkgs.fedoraproject.org/work/tasks/2243/114142243/build.log
https://kojipkgs.fedoraproject.org/work/tasks/2243/114142243/root.log
https://kojipkgs.fedoraproject.org/work/tasks/2243/114142243/hw_info.log
We run the rebuild in side tag f41-build-side-84507, but as fail ratio was small, we expect this side tag to be merged into rawhide ASAP.
To reproduce before this date simply: fedpkg clone tzdata; cd tzdata;  fedpkg build --target f41-build-side-84507; #The target is crucial.
After merge, the usual fedpkg build in rawhide should do.

We had tried aprox 400 packages, and aprox 55 had failed, so the java-21-openjdk will be system JDK in f40, and you should fix your package if you want to keep it alive. Usually the fix is simple, and best is to update the package to latest upstream version. Fix the issue in both f40 and rawhide, if possible, the side tag and rebuild of f40 (and bugs) will follow soon.
Let us know here if you have any questions, here in bug, or at java-devel.org .

We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side if needed.

Comment 1 Andrew John Hughes 2024-03-02 20:30:25 UTC
This is caused by this commit:

https://src.fedoraproject.org/rpms/tzdata/c/150c8a0b8d3e56d2ead9aa11de35307c399744a0?branch=rawhide

Hardcoding '/usr/lib/jvm/java-17-openjdk/bin/javac` but not depending on java-17-openjdk is obviously going to break as soon as `java-devel` changes.

Comment 2 Andrew John Hughes 2024-03-02 21:09:53 UTC
Fix: https://src.fedoraproject.org/rpms/tzdata/pull-request/17


Note You need to log in before you can comment on or make changes to this bug.