aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-11-30 08:20:33 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-11-30 08:20:33 +0000
commitabcd2ed86354154480c872b879ed1599a4aa8115 (patch)
treeb0a063604f85f45d07e05852e86a8d8b33fb01b5
parentab5d6426ab2a280dc8509d5fea2e05e1f22390a7 (diff)
downloadaports-abcd2ed86354154480c872b879ed1599a4aa8115.tar.gz
aports-abcd2ed86354154480c872b879ed1599a4aa8115.tar.bz2
aports-abcd2ed86354154480c872b879ed1599a4aa8115.tar.xz
main/gnats: build fix for ppc64le
Fails with multiple warnings, thus eradicating -Werror
-rw-r--r--main/gnats/APKBUILD6
-rw-r--r--main/gnats/gnats-gcc8.patch31
-rw-r--r--main/gnats/no-werror.patch13
3 files changed, 16 insertions, 34 deletions
diff --git a/main/gnats/APKBUILD b/main/gnats/APKBUILD
index 962db0e6eb..b893775d39 100644
--- a/main/gnats/APKBUILD
+++ b/main/gnats/APKBUILD
@@ -1,7 +1,7 @@
# 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"
diff --git a/main/gnats/gnats-gcc8.patch b/main/gnats/gnats-gcc8.patch
deleted file mode 100644
index c832c72771..0000000000
--- a/main/gnats/gnats-gcc8.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- 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/main/gnats/no-werror.patch b/main/gnats/no-werror.patch
new file mode 100644
index 0000000000..e7d4d14e5e
--- /dev/null
+++ b/main/gnats/no-werror.patch
@@ -0,0 +1,13 @@
+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; }