From nobody Wed Nov 5 11:47:13 2025 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d1k825JF2z6G99k for ; Wed, 05 Nov 2025 11:47:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d1k823NzLz3v4V for ; Wed, 05 Nov 2025 11:47:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762343234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MelrgH88Oty+s4cFjdqgmx8POV3WQEiMg8Hy19aaKUM=; b=GvNoSSBwbMD9IN6hX9OdvKTUE8TMIjV7vPtm2W5+465qQIk3tXVZNTZc9Cqu9rWyQU17bo /a8O5YGcvguPxIg0drbVJ1e6KgD260I76LmulTzHpzDonwfdiJjcRnfiBXei1vrGBLOxzv V23f5kY6HXRnnQFvfttjPCcSvXterL8qySrbhxl8GuaMulPydaZLO2lrj/HDKOApnrfSZL gu1lbZtrxGmJjs4CikoiCOGWrxbNXAz0/V0FxBMFelDkCdlCKGoYPRJANQQ++hAU9wjAZB Pmu/26OQ2boe7inTvjfvEva+aBp0zHNCAT+4Q9SegrUWu06xDtBAlg2zxAbWRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762343234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MelrgH88Oty+s4cFjdqgmx8POV3WQEiMg8Hy19aaKUM=; b=AXAkqTsnUS1YhqPmsZwVeoUwqaLs6NGR6bhqk0vijmmzeZaa66lMps2NMrtvdnlhMgunLI VmDUdbZdebzE73Xfv6wtIegjUuJHwgXEPkymtDm2UKxSw/e/nuroK5FH1Dlm06HXJTHWon NCip7GNuKFvsLRTlLaVSBY9C7P1bdEehV3nmtVl715iQs6eNq+gzvWT/u91UCltJZvrDgj JR3/L2TpFyOKNMAT6MB2CG9v4pnJpjOGNnoJL4s2rWKkbc5LXICZwYB897dx+XkN6M0YtQ CQsMUPwpBdwcBoMhiv4DgTrFrSnDeATIJdMlzSRQJYLJDjnF2Gh9ThgU1dPuPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762343234; a=rsa-sha256; cv=none; b=Mr6RYetEKMWspG8rA2SfeOhhKOT56NauN6+rr+cjX1dWLQsa1TZRGBvRypOxViWr7CCOWX 3tCho9i03TTyxLgBwJyE8isrmyb2WuqllDa3NzWo+C3/d6S1YUapQPsYR+PnYHiATshAOA whAaEP53EU8mSkM4/ZyBGKghmPwrw8xbDw3Z2JifBI12WpWhKvf1LggnjGub3HuL6YWAsk TQJwWwE1HmWtRg1WNUhm4VReoaHrpqnk86n4u+qAlzKCF22Dxdv4ydhXD8OpuEVI3Tios7 nWQntJXwqxcmIwSWdvHgOeorBnvuI9m/i6f5IpAaSHx3wp/1ekoQOQBs2I9/eQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4d1k822WnpzjND for ; Wed, 05 Nov 2025 11:47:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5A5BlE7I086994 for ; Wed, 5 Nov 2025 11:47:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A5BlEpJ086993 for java@FreeBSD.org; Wed, 5 Nov 2025 11:47:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 266059] java/openjdk*: Create x11 FLAVOR to support headless (no-x11) default Date: Wed, 05 Nov 2025 11:47:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature, needs-patch, needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: haraldei@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266059 --- Comment #9 from Harald Eilertsen --- (In reply to Michael Osipov from comment #8) The size of the installed jdk is not significantly smaller. It's only the libawt_xawt.so not being built. But it saves you some dependencies. I haven= 't measured the total size difference including dependencies. The java.awt.headless property is still there, but since the x11/xorg suppo= rt is not, it's not really needed. I.e. java.awt.GraphicsEnvironment.isHeadles= s() will always return true. https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/java/awt/Gr= aphicsEnvironment.html#isHeadless() It's worth noting that this only concerns GUI apps using awt. Other toolkits like swt that is not based on awt are still able to display as normal. It may be possible to build a headless JRE, that will save more space on di= sk as long as you don't need the full jdk (javac, jdb etc.) --=20 You are receiving this mail because: You are the assignee for the bug.=