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


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

Re: OpenJFX 9 integration

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com>
Newsgroups linux.debian.maint.java
Subject Re: OpenJFX 9 integration
Date Sun, 22 Oct 2017 17:30:01 +0200
Message-ID <uDqml-16r-7@gated-at.bofh.it> (permalink)
References <uzUji-3ov-407@gated-at.bofh.it> <uDmsq-6XZ-1@gated-at.bofh.it>
X-Mailbox-Line From debian-java-request@lists.debian.org Sun Oct 22 15:27:50 2017
Old-Return-Path <seamlikok@gmail.com>
X-Amavis-Spam-Status No, score=-12.079 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -7
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=EUJfRXp/1FFkw/GKiuIc/xLhMH/pXenYZIXXXvltkG0=; b=sVZkPSloPClicFqMc1EoFKyUec9eWVn/EHlEGlyu6ouGWUJPahKzRdDGHXXPFI1EiV BKhxay7+LN2GEEQZYkPXgNuv86jiQLqQ7t9yHSZvJhoRghdroFekVFclnFYFBX5RHQ+Q F8IfQeAOHT4nqfp6nzy04jLV9lUpGnj2oE1zM+uAYC58nKujxnrJJEvA3jj+0BJxJTMS +tIOGS8Jfil5sV5IGWO9DkRVS1p3rH9163LDhOZYP6AI+xcWcKYU4mNz++Fuj84davN0 HvOtqXJpENPU/zRJDyjfSS1umF89IHb/6m/rqtqbQ/8zrUfAK0txVQYf4HOA7lzgWuB8 f29g==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=EUJfRXp/1FFkw/GKiuIc/xLhMH/pXenYZIXXXvltkG0=; b=GOqBhjKxC9IUH7dMIovzGBJHTFIUaJur5i9cJ6wVw9+bx0EV9t8sFbQREO6AvnLlVT 1gbtUZoPCBfMv5ENbXakZtF6KdR7p4iSMY5wnjepY9TkjZ2dzEqpP6iAWul0URRnGoek iaFCYCCQ+AUcfKWHkb9DElDF0vZz32rfinqLoJ+h27jHTjD+TQouEw+BfQyB3c4PK5Hl gHk9xTSrAir+3Qjwi6VV4QJBMctEykv+bOyTQNN+Ob6frHAoax0lGWNwzuaZ53hqNbl0 FFMmufS9vhMKPBAB/KyCWXbpixJd46vl/McG7IlnOd+E8UdOvUGxeIZMZ6HPsVWkeiF1 KDVQ==
X-Gm-Message-State AMCzsaUQdAiCV+Iu0QTJxwwDRhhqxAq7xF8FxJQlg+yK2nZCy6IHgg+7 G43KpaQM7o+/WpZoDSGyJ1hwk7/a
X-Google-SMTP-Source ABhQp+RtOuqrCBpGy/J64CJTNzNuqslWB2D1WQUT5uqR5KR/XZkxyo4WJuiHVEfHWcur2czEksHc7Q==
X-Received by 10.98.79.24 with SMTP id d24mr10556250pfb.53.1508686046826; Sun, 22 Oct 2017 08:27:26 -0700 (PDT)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3hokIQ03HnFeDp9QJpuUqcetxcvGrtNg0"
X-Mailing-List <debian-java@lists.debian.org> archive/latest/20474
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
List-Archive https://lists.debian.org/msgid-search/fccd00d2-cc83-288d-743d-1c2ced7e4064@gmail.com
Approved robomod@news.nic.it
Lines 147
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 22 Oct 2017 23:27:24 +0800
X-Original-Message-ID <fccd00d2-cc83-288d-743d-1c2ced7e4064@gmail.com>
X-Original-References <7648af40-f4a8-e1f6-dd17-8c6f9deb5b05@apache.org> <25b2b8de-a126-cf6c-5adb-971983e5d739@debian.org>
Xref csiph.com linux.debian.maint.java:10106

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

(D) doesn't seem good to me, since lot of apps are using JavaFX (e.g. NetBeans and Bisq). These apps won't even launch using Debian's default JRE if OpenJFX isn't included, which would be quite annoying to some users.

Matthias Klose 於 2017年10月22日 18:57 寫道:
> On 12.10.2017 13:13, Emmanuel Bourg wrote:
>> 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.
> (A) is also problematic, because it adds yet another build tool, which never
> should have been invented: gradle.  The OpenJDK package should be cross
> buildable to (re-)bootstrap architectures.  We can't rely anymore on gcj for the
> bootstrap.  Gradle is a mess when it comes to cross build support, hard coding
> target architectures everywhere (at least that's when I looked at it two years
> ago).  So independent of any maintainership, I don't like option (A).
>
> (B) is something which should be addressed upstream independently.  Currently
> upstream's thinking seems to be to ship everything in one place without caring
> how the result is built, and only then providing some ways to build a minimal
> JRE for some specific application.  That's not something distributions can use.
>
> Are you aware if upstream is aware of these issues, and if they intend to stop
> using internal OpenJDK APIs? Any plans to get rid off the single file approach
> for the database files?
>
> (C) looks like the best workaround for now.  Looking at at least four security
> releases per year, and maybe the double amount of package uploads, the OpenJDK
> package has a higher upload frequency anyway.  There is however a risk that an
> OpenJDK (security) update won't build anymore with a prebuilt OpenJFX (not sure
> if that is a real issue).  In any case, the OpenJDK package should have a build
> profile to build without OpenJFX support.
>
> (D) seems to be forgotten here: Don't build OpenJFX in the distro.  That might
> be an option if OpenJFX can't keep up with security updates.
>
> Matthias
>


Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next 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