Commit abcd2ed8 authored by Leonardo Arena's avatar Leonardo Arena

main/gnats: build fix for ppc64le

Fails with multiple warnings, thus eradicating -Werror
parent ab5d6426
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnats
pkgver=4.2.0
pkgrel=4
pkgrel=5
pkgdesc="The GNU Bug Tracking System"
url="https://www.gnu.org/software/gnats/"
arch="all"
......@@ -10,7 +10,7 @@ depends="postfix"
makedepends="texinfo"
install=
source="https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz
gnats-gcc8.patch
no-werror.patch
"
subpackages="$pkgname-doc"
pkgusers="gnats"
......@@ -38,4 +38,4 @@ package() {
}
sha512sums="650faa87206889912e27a27daba4c86292fac90250a88e7e6272cc8488fc19dfd6098bdd450553cd6c2c1d446072a8da9395f1ce7b1cd284596994ce53744152 gnats-4.2.0.tar.gz
616882229b0b0bfb26ed23fcf63c8888c51575eb92b82c19fe9d25128e8f5a20e6b52ed80ecff2ec4405c1c37e24268bab7fa7c068d2df47641d8e5b06d2895a gnats-gcc8.patch"
f37cbc05bcf4fe37226e95ca84162ffa9ca92da3e30907dbbde67805aa0ab6210724a954a9106f4522c0adcaf936919beb11afb7d477142491be09c9da0ee38d no-werror.patch"
--- a/gnats/mail.c
+++ b/gnats/mail.c
@@ -67,7 +67,7 @@
if (res != NULL)
{
if (res->admFields[ResponsibleAdmAlias] == NULL ||
- res->admFields[ResponsibleAdmAlias] == '\0')
+ *res->admFields[ResponsibleAdmAlias] == '\0')
{
if (res->admFields[ResponsibleAdmAlias] != NULL)
{
--- a/gnats/misc.c
+++ b/gnats/misc.c
@@ -108,6 +108,7 @@
fprintf (gnats_logfile, "%s", buf);
break;
}
+ /* fallthrough */
/* No log file, log to stderr. */
case STDERR:
fprintf (stderr, "%s", buf);
--- a/gnats/regex.c
+++ b/gnats/regex.c
@@ -2310,6 +2310,7 @@
if ((syntax & RE_BK_PLUS_QM)
|| (syntax & RE_LIMITED_OPS))
goto normal_char;
+ /* fallthrough */
handle_plus:
case '*':
/* If there is no previous pattern... */
diff --git a/configure b/configure
index dfacf87..c3bdb3a 100755
--- a/configure
+++ b/configure
@@ -6722,7 +6722,7 @@ fi
if test "x$GCC" = "xyes" ; then
- GCC_CFLAGS="-ansi -Werror -Wall"
+ GCC_CFLAGS="-ansi -Wall"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
$as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment