maintainer-feedback requested: [Bug 294358] java/openjdk25: really build headless without installing Xorg libs

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Apr 2026 12:49:06 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java (Nobody)
<java@FreeBSD.org> for maintainer-feedback:
Bug 294358: java/openjdk25: really build headless without installing Xorg libs
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294358



--- Description ---
As it is, java/openjdk25 always pulls in and installs Xorg libs, even in the
case of a headless install, which should by definition not require any Xorg
libs installed. This is because of 'USES = xorg'. I have concocted a simple
Makefile patch that avoids installing various Xorg libs as mandatory
dependencies in case of a headless install, and only requires five header files
as BUILD_DEPENDS.