Add flavor to make a headless jre package, where dev tools and x11
support is removed. As requested in Bug #266059.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266059
Sponsored by: The FreeBSD Foundation
Differential D53707
java/openjdk25: Add jre_headless flavor Authored by haraldei on Wed, Nov 12, 1:44 PM. Tags None Referenced Files
Subscribers None
Details Add flavor to make a headless jre package, where dev tools and x11 Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions Think I fixed all issues now. Also tested various network and non-gui apps, in addition to tuxguitar which works despite being a gui app due to using swt instead of awt for the gui. Comment Actions Also perhaps consider .if ${FLAVOR:Mheadless} to simplify the logic.
Comment Actions
Comment Actions The commit message was not included, so here's a description instead: Added CONFLICTS_INSTALL lines to try to prevent the different FLAVORS to With https://reviews.freebsd.org/D53782 in mind, it could perhaps be an Comment Actions This looks reasonable. I can't say if the conflict is correct, that's for you to decide. What would go wrong with multiple flavours installed at once? Comment Actions I now see that files for each flavor are installed under these different paths:
So, from a filesystem perspective, the conflicts aren't necessary. I second @fuz's question about installing multiple flavors at once. BTW, I wasn't able to run poudriere tests for the changes here because they don't apply to the HEAD of main. jrm@ser /usr/ports [main|✔] % arc patch D53707
INFO Base commit is not in local repository; trying to fetch.
Created and checked out branch arcpatch-D53707.
This diff is against commit 3153f9d4d16c93dd7c9950b0fb2236163cf5b089, but
the commit is nowhere in the working copy. Try to apply it against the
current working copy state? (459aa00fa3ebf71901823eafe3f54f12a26560cc)
[Y/n] Y
...
error: patch failed: java/openjdk25/Makefile:112
Applying patch java/openjdk25/Makefile with 5 rejects...
Hunk #1 applied cleanly.
Hunk #2 applied cleanly.
Rejected hunk #3.
Rejected hunk #4.
Rejected hunk #5.
Rejected hunk #6.
Rejected hunk #7.
Patch Failed!
Usage Exception: Unable to apply patch!Comment Actions @fuz There's really no problem with installing all flavors at the same time, except for bloat of course. It was @jrm who wanted me to look into the CONFLICTS_INSTALL stuff. For now I think I'll just revert that, and look back into it if needed later. @jrm I will rebase to main and submit (hopefully) the last version of the patch for review :) Comment Actions Rebased to main and:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||