[jffi-1.2.7] 01/01: Add patch to disable -Werror for native extension builds

Tim Potter tpot-guest at moszumanska.debian.org
Wed Feb 25 00:46:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

tpot-guest pushed a commit to branch master
in repository jffi-1.2.7.

commit 92fa94a7878b54fa426b0028602e48f07613b4d9
Author: Tim Potter <tpot at hp.com>
Date:   Wed Feb 25 11:46:22 2015 +1100

    Add patch to disable -Werror for native extension builds
---
 .../patches/disable-warnings-as-errors-for-jni.patch   | 18 ++++++++++++++++++
 debian/patches/series                                  |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/disable-warnings-as-errors-for-jni.patch b/debian/patches/disable-warnings-as-errors-for-jni.patch
new file mode 100644
index 0000000..cec6391
--- /dev/null
+++ b/debian/patches/disable-warnings-as-errors-for-jni.patch
@@ -0,0 +1,18 @@
+Description: Disable warnings as errors for jni
+ Remove the default use of -Werror when building the jni native
+ extensions as expecting a warning-free build of cross-platform
+ software is a bit of a fairy tale really.
+Reviewed-By: Tim Potter <tpot at hp.com>
+Last-Update: 2015-02-25
+
+--- jffi-1.2.7.orig/jni/GNUmakefile
++++ jffi-1.2.7/jni/GNUmakefile
+@@ -64,7 +64,7 @@ JFLAGS = -fno-omit-frame-pointer -fno-st
+ OFLAGS = -O2 $(JFLAGS)
+
+ # MacOS headers aren't completely warning free, so turn them off
+-WERROR = -Werror
++WERROR =
+ ifneq ($(OS),darwin)
+   WFLAGS += -Wundef $(WERROR)
+ endif
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..09b1c8b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+disable-warnings-as-errors-for-jni.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jffi-1.2.7.git



More information about the pkg-java-commits mailing list