commit: d9e0fbfe50821c810cad6f7a374d95d8baef1117 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Wed Mar 1 11:05:09 2023 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Sat Mar 4 07:22:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9e0fbfe
dev-java/jffi: suppress -Werror flag Closes: https://bugs.gentoo.org/898142 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29870 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch b/dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch index 0e42b385e7b7..3153ff08d307 100644 --- a/dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch +++ b/dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch @@ -1,8 +1,19 @@ -diff --git a/jni/GNUmakefile b/jni/GNUmakefile -index cfe570a..c8bbb51 100755 +Bug: #898142 --- a/jni/GNUmakefile +++ b/jni/GNUmakefile -@@ -278,7 +278,7 @@ debug: +@@ -67,9 +67,11 @@ OFLAGS = -O2 $(JFLAGS) + WERROR = -Werror + ifneq ($(OS),darwin) + ifneq ($(OS),aix) ++ifneq ($(OS),linux) + WFLAGS += -Wundef $(WERROR) + endif + endif ++endif + WFLAGS += -W -Wall -Wno-unused -Wno-parentheses -Wno-unused-parameter + PICFLAGS = -fPIC + SOFLAGS = # Filled in for each OS specifically +@@ -278,7 +280,7 @@ debug: @echo "OBJS=$(OBJS)" $(LIBJFFI): $(OBJS) $(LIBFFI_LIBS) @@ -11,7 +22,7 @@ index cfe570a..c8bbb51 100755 $(STRIP) $@ ifeq ($(OS), darwin) codesign -s - $@ -@@ -287,10 +287,14 @@ endif +@@ -287,10 +289,14 @@ endif $(BUILD_DIR)/%.o : $(SRC_DIR)/%.c $(wildcard $(JFFI_SRC_DIR)/*.h) @mkdir -p $(@D) @$(CCACHE) $(CC) $(CFLAGS) -c $< -o $@