[Bug 296414] java/openjdk25: flavor headless doesn't get used

[email protected] Tue, 30 Jun 2026 21:41:23 +0000
Newsgroups gmane.os.freebsd.devel.java
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296414

--- Comment #1 from Robert William Vesterman <[email protected]> ---
A little more info:

It occurred to me that maybe I also had to rebuild the things that depend u=
pon
openjdk25, so I:

* Uninstalled all packages that I explicitly want (as opposed to dependenci=
es)
that use Java, those being maven, mysql-connector-j, nexus2-oss, and pdftk;

* Uninstalled openjdk25 and openjdk8, the latter of which I was surprised w=
as
installed;

* "pkg autoremove" rinse and repeat until nothing remained to be removed;

* Deleted all packages of all three of the above categories from my package
repository (which is build using Synth);

* Told Synth to build the four things from the first category plus
openjdk25@headless.

Synth wound up building all of that *plus* openjdk25@jdk *and* openjdk8.

I was surprised by both. First, while everything was building , I briefly
looked into the openjdk8 thing: At least according to FreshPorts, it seems =
to
explicitly be set as a runtime dependency by nexus2-oss for some reason.

Then I told pkg to install each of the four things in the first category
(individually, i.e. four separate "pkg install" commands), and answered "n"=
 to
the "Proceed with this action?" question, so that I could see what each one=
 of
them is wanting:

* openjdk8 is wanted by nexus2-oss, as mentioned above.

* The package created by openjdk25@jdk is wanted by all four of them (inclu=
ding
nexus2-oss, even though it also wants openjdk8).

* The package created by openjdk25@headless is wanted by none of them.

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