[arch-commits] Commit in java-openjfx/trunk (3 files)

Guillaume Alaux guillaume at archlinux.org
Sun Feb 5 19:48:21 UTC 2017


    Date: Sunday, February 5, 2017 @ 19:48:20
  Author: guillaume
Revision: 288097

Upstream release 8.u121

Added:
  java-openjfx/trunk/17-gcc-compatibility.patch
  java-openjfx/trunk/18-fix-ambiguous-pow.patch
Modified:
  java-openjfx/trunk/PKGBUILD

----------------------------+
 17-gcc-compatibility.patch |   25 +++++++++++++++++++++++++
 18-fix-ambiguous-pow.patch |   13 +++++++++++++
 PKGBUILD                   |   27 ++++++++++++++++++++-------
 3 files changed, 58 insertions(+), 7 deletions(-)

Added: 17-gcc-compatibility.patch
===================================================================
--- 17-gcc-compatibility.patch	                        (rev 0)
+++ 17-gcc-compatibility.patch	2017-02-05 19:48:20 UTC (rev 288097)
@@ -0,0 +1,25 @@
+Description: Fixes a build error with GCC 6
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+Bug-Debian: https://bugs.debian.org/837021
+diff --git a/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp b/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
+index 5c8f4b9..7c35213 100644
+--- a/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
++++ b/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
+@@ -46,6 +46,7 @@
+ #include <iostream>
+ #include <dlfcn.h>
+ #include <signal.h>
++#include <sys/wait.h>
+ 
+ 
+ PosixPlatform::PosixPlatform(void) {
+@@ -232,7 +233,7 @@ bool PosixProcess::Wait() {
+ 
+     //TODO Use waitpid instead of wait
+ #ifdef LINUX
+-    wait();
++    wait(&status);
+ #endif
+ #ifdef MAC
+     wpid = wait(&status);

Added: 18-fix-ambiguous-pow.patch
===================================================================
--- 18-fix-ambiguous-pow.patch	                        (rev 0)
+++ 18-fix-ambiguous-pow.patch	2017-02-05 19:48:20 UTC (rev 288097)
@@ -0,0 +1,13 @@
+Description: Fixes an ambiguous call to the pow() function
+Origin: backport, https://github.com/WebKit/webkit/commit/2931450725
+--- a/modules/web/src/main/native/Source/WebCore/rendering/shapes/BoxShape.cpp
++++ b/modules/web/src/main/native/Source/WebCore/rendering/shapes/BoxShape.cpp
+@@ -43,7 +43,7 @@
+ 
+     LayoutUnit ratio = radius / margin;
+     if (ratio < 1)
+-        return radius + (margin * (1 + pow(ratio - 1, 3)));
++        return radius + (margin * (1 + pow(ratio - 1, 3.0)));
+ 
+     return radius + margin;
+ }

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-05 19:20:41 UTC (rev 288096)
+++ PKGBUILD	2017-02-05 19:48:20 UTC (rev 288097)
@@ -11,11 +11,11 @@
 pkgbase=java-openjfx
 pkgname=('java-openjfx' 'java-openjfx-doc' 'java-openjfx-src')
 _java_ver=8
-_jdk_update=76
-_jdk_build=03
+_jdk_update=121
+_jdk_build=13
 _hgtag=${_java_ver}u${_jdk_update}-b${_jdk_build}
 pkgver=${_java_ver}.u${_jdk_update}
-pkgrel=2
+pkgrel=1
 pkgdesc='Java OpenJFX 8 client application platform (open-source implementation of JavaFX)'
 arch=('i686' 'x86_64')
 url='https://wiki.openjdk.java.net/display/OpenJFX/Main'
@@ -22,14 +22,20 @@
 license=('GPL')
 depends=('java-runtime-openjdk=8' 'gstreamer' 'libxtst' 'webkitgtk2' 'ffmpeg' 'qt5-base')
 makedepends=('java-environment-openjdk=8' 'bison' 'gperf' 'gtk2'
-             'libxtst' 'ffmpeg' 'python' 'qt5-base' 'webkitgtk2' 'ruby' 'cmake')
+             'libxtst' 'ffmpeg' 'python2' 'qt5-base' 'webkitgtk2' 'ruby' 'cmake')
 source=(http://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/${_hgtag}.tar.bz2
         gradle.properties
-        https://services.gradle.org/distributions/gradle-1.8-bin.zip)
+        https://services.gradle.org/distributions/gradle-1.8-bin.zip
+        # https://anonscm.debian.org/cgit/pkg-java/openjfx.git/tree/debian/patches/17-gcc-compatibility.patch
+        17-gcc-compatibility.patch
+        # https://anonscm.debian.org/cgit/pkg-java/openjfx.git/tree/debian/patches/18-fix-ambiguous-pow.patch
+        18-fix-ambiguous-pow.patch)
 
-sha256sums=('06fc7263f47d505895dba7ce68e7d436e161ea87828d3297e477f7f5d8c0d338'
+sha256sums=('51008376a03c6603d0d0f039f3253cda98822fdda757f6cee385b594ef4ac85b'
             '1d09385ac23d755aec079954247365de3875507641f5ecd7bd3511ebf3fa9e3c'
-            'a342bbfa15fd18e2482287da4959588f45a41b60910970a16e6d97959aea5703')
+            'a342bbfa15fd18e2482287da4959588f45a41b60910970a16e6d97959aea5703'
+            '864967467efeaffdabe1e60b7cfd0a27ce93be55ef45ef9993790219ad164554'
+            'e909ae1dcb1d6c0fb0148815c3fcdbff8a15b2f05520eed2c830dc0859f75115')
 
 _openjdk8dir="/usr/lib/jvm/java-8-openjdk"
 
@@ -38,6 +44,13 @@
   'x86_64')_CARCH='amd64' ;;
 esac
 
+prepare() {
+  cd "rt-${_hgtag}"
+  for p in 17-gcc-compatibility.patch 18-fix-ambiguous-pow.patch; do
+    patch -p1 < "${srcdir}/${p}"
+  done
+}
+
 build() {
   cd "rt-${_hgtag}"
 



More information about the arch-commits mailing list