Bug#952062: openjfx: Patch to use -Wno-error=deprecated-declarations

Bas Couwenberg sebastic at xs4all.nl
Thu Apr 2 17:04:50 BST 2020


Source: openjfx
Version: 11.0.2+1-1
Tags: patch
Followup-For: Bug #952062

Dear Maintainer,

Using -Werror is great for CI, not so much for unstable where compiler
updates tend cause breakage like this.

The attached patch adds -Wno-error=deprecated-declarations to fix the
FTBFS.

Kind Regards,

Bas
-------------- next part --------------
diff -Nru openjfx-11.0.2+1/debian/changelog openjfx-11.0.2+1/debian/changelog
--- openjfx-11.0.2+1/debian/changelog	2019-01-20 16:25:28.000000000 +0100
+++ openjfx-11.0.2+1/debian/changelog	2020-04-02 16:56:59.000000000 +0200
@@ -1,3 +1,11 @@
+openjfx (11.0.2+1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to fix FTBFS due to -Werror=deprecated-declarations.
+    (closes: #952062)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Thu, 02 Apr 2020 16:56:59 +0200
+
 openjfx (11.0.2+1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru openjfx-11.0.2+1/debian/patches/no-error_deprecated-declarations.patch openjfx-11.0.2+1/debian/patches/no-error_deprecated-declarations.patch
--- openjfx-11.0.2+1/debian/patches/no-error_deprecated-declarations.patch	1970-01-01 01:00:00.000000000 +0100
+++ openjfx-11.0.2+1/debian/patches/no-error_deprecated-declarations.patch	2020-04-02 16:53:26.000000000 +0200
@@ -0,0 +1,14 @@
+Description: Fix FTBFS due to -Werror=deprecated-declarations.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug-Debian: https://bugs.debian.org/952062
+
+--- a/buildSrc/linux.gradle
++++ b/buildSrc/linux.gradle
+@@ -45,6 +45,7 @@ def commonFlags = [
+         "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
+         "-fstack-protector",
+         "-Wno-error=cast-function-type",
++        "-Wno-error=deprecated-declarations",
+         "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags
+ 
+ commonFlags.addAll("dpkg-buildflags --get CPPFLAGS  ".execute().text.trim().split(" "))
diff -Nru openjfx-11.0.2+1/debian/patches/series openjfx-11.0.2+1/debian/patches/series
--- openjfx-11.0.2+1/debian/patches/series	2019-01-20 00:35:49.000000000 +0100
+++ openjfx-11.0.2+1/debian/patches/series	2020-04-02 16:50:51.000000000 +0200
@@ -15,3 +15,4 @@
 26-disable-webkit-jit-for-armv4.patch
 29-glibc-compatibility.patch
 disable-jit-for-non-x86.patch
+no-error_deprecated-declarations.patch


More information about the pkg-java-maintainers mailing list