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. Building is not the same as using. Even if you are not using aspects, they still need to be built. Even a headless server may do graphics manipulation, image, video, etc. Thus will require graphical type libraries to build those portions of Java. Building something is not the same as using the result. You have the same issues with -bins, oracle, and icedtea. The difference is its pre-built. You would only run into issues if you tried to use a portion of Java that relied on system libraries not present. Thus those have use flags that will pull in additional libraries like javafx, etc. People with this dream of building java from source do not really understand what all it takes. Building Java on a servers is not ideal as you will need X libraries, etc. To truly do it from source, you have to bootstrap back to 1.5, and build each version in succession. Or use a pre-build binary from a prior version to build current, icedted-7 (1.7) to build ~icedtea-3 (1.8). Versioning is another matter and topic. Java is moving to a more modular build and deployment system. Starting with Java 9. Maybe in the future pieces can be built and a headless server version would not require X to build from source. Though given graphical library usage previously mentioned. Some parts may always bring in things you may not want on a server. -- William L. Thomson Jr.
signature.asc
Description: This is a digitally signed message part.
