[Bug 266059] java/openjdk*: Create x11 FLAVOR to support headless (no-x11) default

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Oct 2024 14:57:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266059

Ronald Klop <ronald@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ronald@FreeBSD.org

--- Comment #3 from Ronald Klop <ronald@FreeBSD.org> ---
Openjdk11 and openjdk17 seems to have a new configure option
--enable-headless-only. Didn't check openjdk21.

In this mail is talks about the introduction of this option:
https://mail.openjdk.org/pipermail/2d-dev/2016-August/007382.html

Openjdk11 pkg builds fine if I add CONFIGURE_ARGS+=--enable-headless-only to
the port. I didn't check running it. And I didn't check how the dependencies of
the openjdk11 need to change for an headless build.

Would it be enough to adapt these Makefile statements to the openjdk11
Makefile?
$ grep X11 /usr/ports/java/openjdk8/Makefile 
OPTIONS_DEFINE=         ALSA POLICY TZUPDATE X11 FONTCONFIG
OPTIONS_DEFAULT=        ALSA POLICY TZUPDATE X11
X11_BUILD_DEPENDS_OFF=  ${LOCALBASE}/include/X11/Xlib.h:x11/libX11 \
                        ${LOCALBASE}/include/X11/extensions/Xdbe.h:x11/libXext
\
                       
${LOCALBASE}/include/X11/extensions/Xrender.h:x11/libXrender \
                        ${LOCALBASE}/include/X11/Intrinsic.h:x11-toolkits/libXt
X11_CONFIGURE_OFF=      --disable-headful
X11_CONFIGURE_ON=       --with-giflib=system \
X11_LIB_DEPENDS=        libgif.so:graphics/giflib
X11_MAKE_ENV_OFF=       BUILD_HEADLESS_ONLY=1 \
X11_USES=               xorg
X11_USE=                XORG=x11,xext,xi,xrender,xt,xtst
FONTCONFIG_IMPLIES=     X11


Anyway.. I have no personal interest in adding this to the port. As this issue
is 2 years old I would like to know if the original requester is still
interested or if other people know if this is still wanted?

Patches are welcome.

-- 
You are receiving this mail because:
You are the assignee for the bug.