diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-05-08 07:38:44 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-08 18:35:24 +0100 |
commit | f5f05e9efa68f48ae23a3adf48e04178b4ab7f4e (patch) | |
tree | 3cb3068f11cf98c16323e429b14fa726eca5146b /dev-java | |
parent | mate-base/mate-desktop: add 1.26.1 (diff) | |
download | gentoo-f5f05e9efa68f48ae23a3adf48e04178b4ab7f4e.tar.gz gentoo-f5f05e9efa68f48ae23a3adf48e04178b4ab7f4e.tar.bz2 gentoo-f5f05e9efa68f48ae23a3adf48e04178b4ab7f4e.zip |
dev-java/jna: patch to avoid adding -Werror flag
Closes: https://bugs.gentoo.org/888813
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jna/files/jna-5.11.0-no-Werror.patch | 17 | ||||
-rw-r--r-- | dev-java/jna/jna-5.11.0-r1.ebuild | 3 |
2 files changed, 19 insertions, 1 deletions
diff --git a/dev-java/jna/files/jna-5.11.0-no-Werror.patch b/dev-java/jna/files/jna-5.11.0-no-Werror.patch new file mode 100644 index 000000000000..629a1a4452de --- /dev/null +++ b/dev-java/jna/files/jna-5.11.0-no-Werror.patch @@ -0,0 +1,17 @@ +https://bugs.gentoo.org/888813 +--- a/native/Makefile ++++ b/native/Makefile +@@ -356,11 +356,11 @@ ifeq ($(CC),gcc) + GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f 1 -d '.') + ifneq ($(GCC_MAJOR_VERSION),4) + ifneq ($(GCC_MAJOR_VERSION),3) +- LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable -Wno-alloca-larger-than ++ LOC_CC_OPTS=-Wno-unknown-warning-option -Wno-clobbered -Wno-unused-variable -Wno-alloca-larger-than + endif + endif + else +- LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable ++ LOC_CC_OPTS=-Wno-unknown-warning-option -Wno-clobbered -Wno-unused-variable + endif + + # Enable 64-bit builds if the arch demands it diff --git a/dev-java/jna/jna-5.11.0-r1.ebuild b/dev-java/jna/jna-5.11.0-r1.ebuild index d1b4898f918a..3753bc815a3c 100644 --- a/dev-java/jna/jna-5.11.0-r1.ebuild +++ b/dev-java/jna/jna-5.11.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -47,6 +47,7 @@ DOCS=( README.md CHANGES.md OTHERS TODO ) PATCHES=( "${FILESDIR}/5.10.0-build.xml.patch" "${FILESDIR}/5.11.0-makefile-flags.patch" + "${FILESDIR}/jna-5.11.0-no-Werror.patch" ) JAVA_ANT_REWRITE_CLASSPATH="true" |