On Thursday, February 2, 2017 10:53:08 AM EST Michael Orlitzky wrote:
> On 02/02/2017 10:51 AM, William L. Thomson Jr. wrote:
> > On Thursday, February 2, 2017 10:36:51 AM EST Michael Orlitzky wrote:
> >> Why does dev-java/icedtea try to pull in GTK (and thus X)
> >> on a headless server? That stuff belongs in a desktop profile, not in
> >> the base one.
> > 
> > In that specific case it cannot be avoided.
> 
> Yes it can. I just have to waste my time unsetting the stupid USE flag
> that's on for no reason =P
If you understand headless you will understand the rest.
http://www.oracle.com/technetwork/articles/javase/headless-136834.html

You do not have to have GTK  USE flag or all of X, but you will be pulling in X 
libraries likely not present on the system to begin with. You may also 
experience various abnormal issues as this is not how Java is normally. 
Building it with different USE flags is pretty different than installing a pre-
built -bin with different USE flags.

On a headless server, a merge of icetea pulls in 48 packages, regardless if 
headless-awt USE is set or not. Just as an example. Same 48 packages to build, 
45 being new.

[ebuild  N     ] dev-java/icedtea-7.2.6.8:7::gentoo  USE="jbootstrap 
pax_kernel sunec -alsa (-cacao) -cjk -cups -debug -doc -examples -gtk -
headless-awt -infinality (-jamvm) -javascript -kerberos -libressl -nsplugin -
nss -pulseaudio -sctp (-selinux) -smartcard -source {-test} -webstart -zero" 
54,222 KiB

Total: 48 packages (45 new, 1 in new slot, 2 reinstalls), Size of downloads: 
309,943 KiB


[ebuild  N     ] dev-java/icedtea-7.2.6.8:7::gentoo  USE="headless-awt 
jbootstrap pax_kernel sunec -alsa (-cacao) -cjk -cups -debug -doc -examples -
gtk -infinality (-jamvm) -javascript -kerberos -libressl -nsplugin -nss -
pulseaudio -sctp (-selinux) -smartcard -source {-test} -webstart -zero"

Total: 48 packages (45 new, 1 in new slot, 2 reinstalls), Size of downloads: 
309,943 KiB

You can see -cups, but guess what, it is required and comes in regardless if 
USE flag is set or not. You will have to enable cups USE flag for other stuff.

# required by net-print/cups-filters-1.13.3::gentoo[postscript]
# required by net-print/cups-2.2.2-r1::gentoo
# required by dev-java/icedtea-7.2.6.8::gentoo
# required by icedtea (argument)
>=app-text/ghostscript-gpl-9.20-r1

-- 
William L. Thomson Jr.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to