Bug 266059 - java/openjdk*: Create x11 FLAVOR to support headless (no-x11) default
Summary: java/openjdk*: Create x11 FLAVOR to support headless (no-x11) default
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-java (Nobody)
URL:
Keywords: feature, needs-patch, needs-qa
Depends on:
Blocks: 266590
  Show dependency treegraph
 
Reported: 2022-08-27 06:08 UTC by Ryan Shaw
Modified: 2022-09-30 17:20 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Shaw 2022-08-27 06:08:24 UTC
I am interested in a headless build of openjdk11 to use in a server environment but it seems there are no build configuration options available.

java/openjdk8 has --disable-headful to build a headless binary and a nice `make config` UI, but it seems the openjdk11 build is unconfigurable.

This is a request for a build configuration option for headless openjdk11. Thanks
Comment 1 Michael Osipov 2022-09-30 17:20:22 UTC
Won't work:
======================
...
checking how to link with libstdc++... static
configure: error: It is not possible to disable the use of X11. Remove the --without-x option.
configure exiting with result code 1
===>  Script "configure" failed unexpectedly.
Please report the problem to java@FreeBSD.org [maintainer] and attach the
"/var/tmp/freebsd-ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /var/tmp/freebsd-ports/java/openjdk11
======================

from:
./work/jdk11u-jdk-11.0.15-10-1/make/autoconf/libraries.m4:
======================
40 AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
41 [
42   # Check if X11 is needed
43   if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
44     # No X11 support on windows or macosx
45     NEEDS_LIB_X11=false
46   else
47     # All other instances need X11, even if building headless only, libawt still
48     # needs X11 headers.
49     NEEDS_LIB_X11=true
50   fi
======================