Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #10078

OpenJFX 9 integration

From Emmanuel Bourg <ebourg@apache.org>
Newsgroups linux.debian.maint.java
Subject OpenJFX 9 integration
Date 2017-10-13 00:40 +0200
Message-ID <uzUji-3ov-407@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi all,

I started working on OpenJFX 9 this week. The good news is that it
builds fine in Debian now [1]. The bad news is that it's going to be
significantly more challenging to integrate it with our OpenJDK package.

With OpenJDK 8 the integration was just a matter of installing extra jar
files and native libraries under /usr/lib/jvm/java-8-openjdk-amd64. With
Java 9 and the modularization of the JDK it's another story:
1. The class files for the JRE and JavaFX are merged into a huge binary
blob (lib/modules) using a custom format.
2. The javadocs are also merged into a unique src.zip archive.
3. The JDK contains new .jmod files for each module, and the ones for
JavaFX are built by OpenJDK, not OpenJFX.
4. The JRE modules have to be patched to allow JavaFX classes to use
internal JRE classes.

According to the build instructions of OpenJFX [1] we have to build
OpenJFX first and then build OpenJDK with an extra configuration
parameter (--with-import-modules) pointing to the OpenJFX build directory.

In this context it appears nearly impossible to package OpenJFX
independently of OpenJDK. Here are the options I can see so far:

A. Merge the openjfx package into openjdk.

B. Keep the packages separate and attempt to overcome the issues (1) and
(2) with postinst hooks or triggers merging the files, (3) by patching
the OpenJFX build, and (4) by patching the module-info.java files in
OpenJDK.

C. Generate an intermediary package containing the build result of
OpenJFX and used as a build dependency of OpenJDK.

(A) is problematic because the openjdk package is already quite complex,
and since openjdk is in the hands of the OpenJDK Team I won't be able to
maintain OpenJFX there. (B) involves a lot of work, merging lib/modules
is the biggest issue. (C) requires a rebuild of OpenJDK every time
OpenJFX is updated, but is by far the easiest solution to implement.

What do you think?

Emmanuel Bourg

[1] https://anonscm.debian.org/cgit/pkg-java/openjfx9.git
[2]
https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-IntegrationwithOpenJDK9

Back to linux.debian.maint.java | Previous | NextNext in thread | Find similar | Unroll thread


Thread

OpenJFX 9 integration Emmanuel Bourg <ebourg@apache.org> - 2017-10-13 00:40 +0200
  Re: OpenJFX 9 integration 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com> - 2017-10-17 17:20 +0200
    Re: OpenJFX 9 integration Emmanuel Bourg <ebourg@apache.org> - 2017-10-17 21:20 +0200
  Re: OpenJFX 9 integration Matthias Klose <doko@debian.org> - 2017-10-22 13:20 +0200
    Re: OpenJFX 9 integration 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com> - 2017-10-22 17:30 +0200
      Re: OpenJFX 9 integration Markus Koschany <apo@debian.org> - 2017-10-22 21:00 +0200
        Re: OpenJFX 9 integration Mykola Nikishov <mn@mn.com.ua> - 2017-10-22 23:00 +0200
          Re: OpenJFX 9 integration Markus Koschany <apo@debian.org> - 2017-10-22 23:10 +0200
    Re: OpenJFX 9 integration Emmanuel Bourg <ebourg@apache.org> - 2017-10-23 01:10 +0200
      Re: OpenJFX 9 integration 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com> - 2017-10-24 09:10 +0200
        Re: OpenJFX 9 integration Emmanuel Bourg <ebourg@apache.org> - 2017-10-24 12:20 +0200
      Re: OpenJFX 9 integration Sebastiaan Couwenberg <sebastic@xs4all.nl> - 2018-04-04 07:20 +0200
        Re: OpenJFX 9 integration Matthias Klose <doko@debian.org> - 2018-04-04 10:00 +0200
          Re: OpenJFX 9 integration Emmanuel Bourg <ebourg@apache.org> - 2018-04-04 10:30 +0200
            Re: OpenJFX 9 integration Bas Couwenberg <sebastic@xs4all.nl> - 2018-04-04 11:20 +0200
              Re: OpenJFX 9 integration tony mancill <tmancill@debian.org> - 2018-04-04 15:50 +0200
            Re: OpenJFX 9 integration Markus Koschany <apo@debian.org> - 2018-04-04 16:10 +0200
  Re: OpenJFX 9 integration David Goodenough <david.goodenough@linkchoose.co.uk> - 2017-10-24 07:40 +0200

csiph-web