Page MenuHomeFreeBSD

java/bootstrap-openjdk17: Add missing libX11 dependency
AcceptedPublic

Authored by jrm on Nov 27 2025, 3:31 PM.
Tags
None
Referenced Files
F142553616: D53944.id167183.diff
Tue, Jan 20, 10:33 PM
Unknown Object (File)
Mon, Jan 19, 9:38 AM
Unknown Object (File)
Sat, Jan 17, 12:05 PM
Unknown Object (File)
Sat, Jan 10, 2:20 AM
Unknown Object (File)
Sat, Jan 3, 5:01 PM
Unknown Object (File)
Thu, Jan 1, 11:31 AM
Unknown Object (File)
Sat, Dec 27, 8:08 PM
Unknown Object (File)
Sat, Dec 27, 8:07 PM
Subscribers

Details

Reviewers
haraldei
Summary

The port was missing a dependency on libX11, which caused
poudriere-devel to rebuild it on every run.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68885
Build 65768: arc lint + arc unit

Event Timeline

jrm requested review of this revision.Nov 27 2025, 3:31 PM
jrm created this revision.

Each time it ran, this is what poudriere would report before rebuilding java/bootstrap-openjdk17:

[00:00:37] [11] [00:00:00] Warning: bootstrap-openjdk17-17.0.1.12.1_3 will be rebuilt as it misses libX11.so.6 which no dependency provides. This may be a port bug if it repeats next build.

I verified that it's directly linking to libX11.

% readelf -a /usr/local/bootstrap-openjdk17/lib/libawt_xawt.so | grep libX11
  0x0000000000000001 (NEEDED)     Shared library: [libX11.so.6]

I contacted @bdrewery, and he pointed me to discussions about this port at https://reviews.freebsd.org/D53723.

I'm not sure if this or SHLIB_REQUIRE_IGNORE_GLOB=* is the right path forward. The prebuilt binary wants a bunch of libraries that are not set as LIB_DEPENDS. It applies to all 3 of the bootstrap-openjdk ports.

I don't really have a strong opinion on this change, but if it fixes the issue for now, I'm good with it. Technically I don't think the bootstrap JDK needs X11 to build the target JDK, but since they packaged the full JDK including libawt_xawt.so at the time it is now flagged with the new change to pkg.

In time I think a better way to handle the bootstrap JDKs is needed, something like https://reviews.freebsd.org/D50349, but where we don't depend on random people's private builds.

This revision is now accepted and ready to land.Nov 28 2025, 2:31 PM