Bug 991307

Summary: [Feature Request] openJFX package
Product: [openSUSE] openSUSE Tumbleweed Reporter: Forgotten User b3T01WmZkI <forgotten_b3T01WmZkI>
Component: JavaAssignee: Fridrich Strba <fstrba>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: forgotten_Kr9TBsY3CB, forgotten__AcwqRqvKw, gilbertoca, info, kkirill, marc.schlegel, sebastian, sverre.moe, tchvatal
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 42.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User b3T01WmZkI 2016-07-29 17:16:16 UTC
Hello collegues, this isn't a bug report, but a feature request.
I'd like to have openJFX package so we can install and update it directly with the tools we love (zypper, yast etc).

So far, the only way to install openJFX is by building it from source (from a mercurial repo): https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX

Please take this request in consideration.

Forum post:https://forums.opensuse.org/showthread.php/519171-OpenJFX-Package

PS: this is the first time that I open a ticket in bugzilla, please forgive me if I made any mistake. Thank you.
Comment 1 Forgotten User _AcwqRqvKw 2016-10-10 23:17:25 UTC
Someone already has tried to build a openjfx package: https://bugzilla.opensuse.org/show_bug.cgi?id=976102

I've tried it too – it's quite difficult to compile and package openjfx.
Comment 2 Marc Schlegel 2017-05-04 22:44:01 UTC
Please provide a compiled version of the JavaFX binaries as part of the OpenJDK RPM.
It is currently not possible to work on JavaFX projects (without major efforts). Both of my development machines are running Leap 42.2 and I cannot work on a project I need to.
Comment 3 Marc Schlegel 2017-05-04 22:47:31 UTC
And why is this considered a "enhancement"? Java 8 includes JavaFX, so it should be part of the distribution.

If there are no resources available to work on this, I might find some time to provide a pull-request, but I have to educate myself with everything (rpm, suse build, process, etc.)
Comment 4 Sebastian Hörberg 2017-06-30 00:33:21 UTC
I am also in need of JavaFX and think it should be included in the distribution as it is part of Java these days. (https://en.wikipedia.org/wiki/JavaFX#JavaFX_8)

The Fedora team appears to have been able to figure out how to build openjfx. Might that be of any help to package for OpenSUSE?

* https://bugzilla.redhat.com/show_bug.cgi?id=1145303
* https://koji.fedoraproject.org/koji/packageinfo?packageID=24255
* http://pkgs.fedoraproject.org/cgit/rpms/java-1.8.0-openjdk.git/tree/java-1.8.0-openjdk.spec?id=aaedfc554ed8429191b75a38108e92f516465fd3
Comment 5 Gilberto C. Andrade 2017-07-27 19:31:03 UTC
This project https://build.opensuse.org/package/show/home:Herbster0815/java-openjfx by Robert Herb, could be a started point. WDT?
Comment 6 Forgotten User Kr9TBsY3CB 2017-07-28 11:39:55 UTC
(In reply to Gilberto C. Andrade from comment #5)
> This project
> https://build.opensuse.org/package/show/home:Herbster0815/java-openjfx by
> Robert Herb, could be a started point. WDT?

No. I wrote that package
> https://build.opensuse.org/package/show/home:kistelini/openjfx
and it doesn't even build from source.

openSUSE doesn't build OpenJDK, it builds IcedTea and it seems that IcedTea doesn't include JavaFX. I tried building OpenJFX from source with openSUSE's JDK, it already failed in a configure script when it tried to parse the JDK version (it's different from OpenJDK) and when I patched that the build failed in a Java class with an error message not even Google could help me with.

Fedora builds from OpenJDK sources, as does Debian and that's the only way that will work.
Comment 7 Gilberto C. Andrade 2017-07-28 22:41:53 UTC
(In reply to Christian Buschau from comment #6)
> (In reply to Gilberto C. Andrade from comment #5)
> > This project
> > https://build.opensuse.org/package/show/home:Herbster0815/java-openjfx by
> > Robert Herb, could be a started point. WDT?
> 
> No. I wrote that package
> > https://build.opensuse.org/package/show/home:kistelini/openjfx
> and it doesn't even build from source.
> 
> openSUSE doesn't build OpenJDK, it builds IcedTea and it seems that IcedTea
> doesn't include JavaFX. I tried building OpenJFX from source with openSUSE's
> JDK, it already failed in a configure script when it tried to parse the JDK
> version (it's different from OpenJDK) and when I patched that the build
> failed in a Java class with an error message not even Google could help me
> with.
Do you use SPECS like this one https://github.com/gferon/openjfx-fedora/tree/master/SPECS ?

Maybe we could one similar for openSUSE? I don't know if the license permits!
Comment 8 Gilberto C. Andrade 2017-07-28 23:18:18 UTC
The OBuildFactory project[1] builds it from source. I will try it and see if openjfx it build together.

[1] https://github.com/hgomez/obuildfactory
Comment 9 Fridrich Strba 2017-11-23 15:42:47 UTC
Now, one can take the Fedora spec file and adapt it. Nonetheless, openjfx is not so easy to build, since it requires gradle that likes to download things right and left. Which is not possible in our build environment. The Fedora folks solve this with xmvn plugin that allows them to use pre-downloaded or even system jar dependencies.

To make this work on SUSE would require quite a non-trivial (not to say huge) time of work. So, I am closing this bug as wontfix. If someone wants to step in and backport the xmvn plugin, she is most welcome.

Nevertheless, since we are nice, there is a package https://build.opensuse.org/package/show/home:fstrba/java-1_8_0-openjdk-openjfx that can be built on a client system using rpmbuild. If you have the right gradle installed, it will build and create package that you can install on your system. But, since it will download stuff needed for build, you will not able to build it using osc build.
Comment 10 Sverre Moe 2018-02-06 23:00:02 UTC

*** This bug has been marked as a duplicate of bug 976102 ***