maintainer-feedback requested: [Bug 257752] how to build java/openjdk8 without any X11 libs ?

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 11 Aug 2021 06:17:58 +0000
Bugzilla Automation <bugzilla_at_FreeBSD.org> has asked freebsd-java (Nobody)
<java_at_FreeBSD.org> for maintainer-feedback:
Bug 257752: how to build java/openjdk8 without any X11 libs ?
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257752



--- Description ---
[root:~]# make -C /usr/ports/java/openjdk8/
/!\ WARNING /!\

WITHOUT_X11 is unsupported, use WITHOUT=X11 on the command line, or one of
these in /etc/make.conf, OPTIONS_UNSET+=X11 to set it globally, or
java_openjdk8_UNSET+=X11 for only this port.

this port always refers to libX11 etc. I have no X11 installed at all. How to
avoid building any X11 components when I build jdk ?

I don't need these X11 libs, i just need jdk for console. Is it possible?
	libSM: 1.2.3,1 [FreeBSD]
	libX11: 1.7.2,1 [FreeBSD]
	libXau: 1.0.9 [FreeBSD]
	libXdmcp: 1.1.3 [FreeBSD]
	libXext: 1.3.4,1 [FreeBSD]
	libXfixes: 5.0.3_2 [FreeBSD]
	libXi: 1.7.10,1 [FreeBSD]
	libXrender: 0.9.10_2 [FreeBSD]
	libXt: 1.2.1,1 [FreeBSD]
	libXtst: 1.2.3_2 [FreeBSD]
	libxcb: 1.14_1 [Synth]
	xorgproto: 2021.4 [FreeBSD]



[root:~]# cat /etc/make.conf
SVN_UPDATE=yes
SVN=/usr/local/bin/svn
WITH_PKGNG=yes
WITHOUT_X11=yes
OPTIONS_UNSET +=   GTK2 X11 GSSAPI_BASE
OPTIONS_SET   +=   GSSAPI_MIT

DEFAULT_VERSIONS= ruby=3.0 python=3.9 python2=2.7 python3=3.9 perl5=5.32
ssl=libressl pgsql=11 mysql=8 node=10 php=8.0

security_p5-GSSAPI_SET	   = GSSAPI_MIT

MAKE_SHELL?=sh

WITHOUT_QT=YES
WITHOUT_QT4=YES
WITHOUT_GTK=YES
WITHOUT_GTK1=YES
WITHOUT_GTK2=YES
WITHOUT_KDE=YES
WITHOUT_KDE4=YES
WITHOUT_GUI=YES


java_openjdk8_UNSET+=X11
java_openjdk8-jre_UNSET+=X11

CC=clang
CXX=clang++
CPP=clang-cpp

KERNCONFDIR=/root
KERNCONF=BVGM

LDFLAGS.lld+= -Wl,--no-threads
Received on Wed Aug 11 2021 - 06:17:58 UTC

Original text of this message