From d720feef4fdecae920e6c77c8e395d1dd176bc4a Mon Sep 17 00:00:00 2001 From: Guillaume Alaux Date: Sun, 5 Feb 2017 19:48:20 +0000 Subject: [PATCH] Upstream release 8.u121 --- 17-gcc-compatibility.patch | 25 +++++++++++++++++++++++++ 18-fix-ambiguous-pow.patch | 13 +++++++++++++ PKGBUILD | 27 ++++++++++++++++++++------- 3 files changed, 58 insertions(+), 7 deletions(-) create mode 100644 17-gcc-compatibility.patch create mode 100644 18-fix-ambiguous-pow.patch diff --git a/17-gcc-compatibility.patch b/17-gcc-compatibility.patch new file mode 100644 index 000000000000..80015372e14a --- /dev/null +++ b/17-gcc-compatibility.patch @@ -0,0 +1,25 @@ +Description: Fixes a build error with GCC 6 +Author: Emmanuel Bourg +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 + #include + #include ++#include + + + 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); diff --git a/18-fix-ambiguous-pow.patch b/18-fix-ambiguous-pow.patch new file mode 100644 index 000000000000..9d297b9d0d26 --- /dev/null +++ b/18-fix-ambiguous-pow.patch @@ -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; + } diff --git a/PKGBUILD b/PKGBUILD index b81fd30a2f3b..44550c35b386 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -11,25 +11,31 @@ 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' 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 @@ case $CARCH in '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}"