public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jna/, dev-java/jna/files/
Date: Mon,  8 May 2023 17:36:23 +0000 (UTC)	[thread overview]
Message-ID: <1683567324.f5f05e9efa68f48ae23a3adf48e04178b4ab7f4e.sam@gentoo> (raw)

commit:     f5f05e9efa68f48ae23a3adf48e04178b4ab7f4e
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon May  8 05:38:44 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May  8 17:35:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5f05e9e

dev-java/jna: patch to avoid adding -Werror flag

Closes: https://bugs.gentoo.org/888813
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-java/jna/files/jna-5.11.0-no-Werror.patch | 17 +++++++++++++++++
 dev-java/jna/jna-5.11.0-r1.ebuild             |  3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)

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"


             reply	other threads:[~2023-05-08 17:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-08 17:36 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-29  5:53 [gentoo-commits] repo/gentoo:master commit in: dev-java/jna/, dev-java/jna/files/ Miroslav Šulc
2023-09-17 14:53 Arthur Zamarin
2023-05-10  5:10 Miroslav Šulc
2022-06-17  8:15 Arthur Zamarin
2016-11-06 11:39 James Le Cuirot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1683567324.f5f05e9efa68f48ae23a3adf48e04178b4ab7f4e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox