Gentoo Archives: gentoo-dev

From: "William L. Thomson Jr." <wlt-ml@××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] icedtea requiring X libs to build was -> Guidelines for IUSE defaults
Date: Thu, 02 Feb 2017 15:51:27
Message-Id: assp.0206a51352.1683972.gzkWrhkXzV@wlt
In Reply to: Re: [gentoo-dev] Guidelines for IUSE defaults by Michael Orlitzky
1 On Thursday, February 2, 2017 10:36:51 AM EST Michael Orlitzky wrote:
2 > Why does dev-java/icedtea try to pull in GTK (and thus X)
3 > on a headless server? That stuff belongs in a desktop profile, not in
4 > the base one.
5
6 In that specific case it cannot be avoided. Building is not the same as using.
7 Even if you are not using aspects, they still need to be built. Even a
8 headless server may do graphics manipulation, image, video, etc. Thus will
9 require graphical type libraries to build those portions of Java.
10
11 Building something is not the same as using the result. You have the same
12 issues with -bins, oracle, and icedtea. The difference is its pre-built. You
13 would only run into issues if you tried to use a portion of Java that relied
14 on system libraries not present. Thus those have use flags that will pull in
15 additional libraries like javafx, etc.
16
17 People with this dream of building java from source do not really understand
18 what all it takes. Building Java on a servers is not ideal as you will need X
19 libraries, etc. To truly do it from source, you have to bootstrap back to 1.5,
20 and build each version in succession. Or use a pre-build binary from a prior
21 version to build current, icedted-7 (1.7) to build ~icedtea-3 (1.8).
22 Versioning is another matter and topic.
23
24 Java is moving to a more modular build and deployment system. Starting with
25 Java 9. Maybe in the future pieces can be built and a headless server version
26 would not require X to build from source. Though given graphical library usage
27 previously mentioned. Some parts may always bring in things you may not want
28 on a server.
29
30 --
31 William L. Thomson Jr.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies