net-analyzer/barnyard2: Prevent editing out -Werror
authorJeroen Roovers <jer@gentoo.org>
Wed, 15 Apr 2020 07:33:01 +0000 (09:33 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 15 Apr 2020 07:34:13 +0000 (09:34 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://bugs.gentoo.org/717466
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/barnyard2/barnyard2-1.13.ebuild
net-analyzer/barnyard2/files/barnyard2-1.13-Werror.patch [new file with mode: 0644]

index b5215fde7f42c987a10aa448e1103aa474a67d89..377952066866edd3aa6496b7e9a781fabf72ff70 100644 (file)
@@ -30,6 +30,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.13-libdir.patch
        "${FILESDIR}"/${PN}-1.13-my_bool.patch
        "${FILESDIR}"/${PN}-1.13-odbc.patch
+       "${FILESDIR}"/${PN}-1.13-Werror.patch
        "${FILESDIR}"/${PN}-1.13-pcap-1.9.0.patch
 )
 
diff --git a/net-analyzer/barnyard2/files/barnyard2-1.13-Werror.patch b/net-analyzer/barnyard2/files/barnyard2-1.13-Werror.patch
new file mode 100644 (file)
index 0000000..e3b8b9c
--- /dev/null
@@ -0,0 +1,17 @@
+--- a/configure.in
++++ b/configure.in
+@@ -12,14 +12,6 @@
+ NO_OPTIMIZE="no"
+ ADD_WERROR="no"
+-# Test for -Werror and sed it out for now since some of the auto tests,
+-# for example AC_CHECK_LIB, will fail because of
+-# warning: conflicting types for built-in function <func>
+-if eval "echo $CFLAGS | grep -e -Werror"; then
+-    CFLAGS=`echo $CFLAGS | sed -e "s/-Werror//g"`
+-    ADD_WERROR="yes"
+-fi
+-
+ # Disable annoying practice of recursively re-running the autotools
+ AM_MAINTAINER_MODE
+ AC_PROG_CC_STDC