The port was missing a dependency on libX11, which caused
poudriere-devel to rebuild it on every run.
Details
- Reviewers
haraldei
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
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.