[arch-commits] Commit in libmaa/trunk (PKGBUILD libmaa-gcc8.patch)
Antonio Rojas
arojas at archlinux.org
Sat Jun 9 07:39:47 UTC 2018
Date: Saturday, June 9, 2018 @ 07:39:46
Author: arojas
Revision: 342128
BUILDINFO rebuild
Added:
libmaa/trunk/libmaa-gcc8.patch
Modified:
libmaa/trunk/PKGBUILD
-------------------+
PKGBUILD | 12 +++++++++---
libmaa-gcc8.patch | 28 ++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-09 07:26:18 UTC (rev 342127)
+++ PKGBUILD 2018-06-09 07:39:46 UTC (rev 342128)
@@ -3,7 +3,7 @@
pkgname=libmaa
pkgver=1.3.2
-pkgrel=2
+pkgrel=3
pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
url="http://sourceforge.net/projects/dict/"
license=('GPL')
@@ -10,9 +10,15 @@
arch=('x86_64')
depends=('glibc')
makedepends=('flex')
-source=("https://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5')
+source=("https://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz" libmaa-gcc8.patch)
+sha256sums=('59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5'
+ '7435ad846b1b3b6cb2a7473439d1e98986b83b050125c19eb263784eb2e4a2b6')
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p2 -i ../libmaa-gcc8.patch # Fix build with GCC 8 (Debian)
+}
+
build() {
cd "${srcdir}/$pkgname-$pkgver"
./configure --prefix=/usr
Added: libmaa-gcc8.patch
===================================================================
--- libmaa-gcc8.patch (rev 0)
+++ libmaa-gcc8.patch 2018-06-09 07:39:46 UTC (rev 342128)
@@ -0,0 +1,28 @@
+From: Robert Luberda <robert at debian.org>
+Date: Sun, 3 Jun 2018 16:28:38 +0200
+Subject: Fix FTBFS with gcc-8
+
+Increase buffer size to fix build failures like the one below:
+ ../log.c:328:40: error: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3838 and 4093
+[-Werror=format-truncation=]
+ snprintf (buf, sizeof (buf), "%s(%s) %s\n",
+
+Bugs-Debian: https://bugs.debian.org/897789
+---
+ maa/log.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/maa/log.c b/maa/log.c
+index 8c68546..c31708b 100644
+--- a/maa/log.c
++++ b/maa/log.c
+@@ -297,7 +297,7 @@ static void _log_base_va(
+ {
+ va_list ap_copy;
+ time_t t;
+- static char buf [4096] = "";
++ static char buf [8192] = "";
+ static char buf_main [4096] = "";
+ static char buf_preamble [256] = "";
+
+
More information about the arch-commits
mailing list