summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2021-02-19 11:38:20 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-02-19 11:38:43 +0200
commit3069ac90e025371da864ea4a04e2908837b787fc (patch)
treebd20c5d12637464611387a19255c1edbe38abbe2 /dev-libs/libvoikko
parentnet-im/gajim: Version bump (diff)
downloadgentoo-3069ac90e025371da864ea4a04e2908837b787fc.tar.gz
gentoo-3069ac90e025371da864ea4a04e2908837b787fc.tar.bz2
gentoo-3069ac90e025371da864ea4a04e2908837b787fc.zip
dev-libs/libvoikko: disable -Wall -Werror
Closes: https://bugs.gentoo.org/745009 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/libvoikko')
-rw-r--r--dev-libs/libvoikko/files/libvoikko-4.3-disable-wall-werror.patch30
-rw-r--r--dev-libs/libvoikko/libvoikko-4.3.ebuild4
2 files changed, 33 insertions, 1 deletions
diff --git a/dev-libs/libvoikko/files/libvoikko-4.3-disable-wall-werror.patch b/dev-libs/libvoikko/files/libvoikko-4.3-disable-wall-werror.patch
new file mode 100644
index 000000000000..59369a613b7b
--- /dev/null
+++ b/dev-libs/libvoikko/files/libvoikko-4.3-disable-wall-werror.patch
@@ -0,0 +1,30 @@
+diff -Naur a/configure b/configure
+--- a/configure 2019-10-17 17:28:10.000000000 +0300
++++ b/configure 2021-02-19 11:32:45.084523937 +0200
+@@ -17652,7 +17652,7 @@
+
+
+ tmp_CXXFLAGS="$CXXFLAGS"
+-CXXFLAGS="$CXXFLAGS -Wall -Werror -fvisibility=hidden"
++CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the visibility attribute" >&5
+ $as_echo_n "checking whether $CC supports the visibility attribute... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+@@ -18413,7 +18413,7 @@
+ if test "x$ax_pthread_try" = "xunknown"; then :
+ break
+ fi
+- CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
++ CFLAGS="-Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
+ ac_link="$ax_pthread_save_ac_link"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+@@ -19102,7 +19102,7 @@
+ done
+
+
+-CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic"
++CXXFLAGS="$CXXFLAGS -pedantic"
+
+ ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile java/Makefile test/Makefile cs/Makefile cl/Makefile src/libvoikko.pc"
+
diff --git a/dev-libs/libvoikko/libvoikko-4.3.ebuild b/dev-libs/libvoikko/libvoikko-4.3.ebuild
index 825312749e49..8c80dbafcdaf 100644
--- a/dev-libs/libvoikko/libvoikko-4.3.ebuild
+++ b/dev-libs/libvoikko/libvoikko-4.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -29,6 +29,8 @@ BDEPEND="verify-sig? ( app-crypt/openpgp-keys-voikko )"
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/voikko.asc
+PATCHES=( "${FILESDIR}"/${P}-disable-wall-werror.patch )
+
src_configure() {
local myconf=(
--prefix=/usr