[arch-commits] Commit in libmaa/repos/community-x86_64 (3 files)
Antonio Rojas
arojas at archlinux.org
Sat Jun 9 07:40:05 UTC 2018
Date: Saturday, June 9, 2018 @ 07:40:04
Author: arojas
Revision: 342129
archrelease: copy trunk to community-x86_64
Added:
libmaa/repos/community-x86_64/PKGBUILD
(from rev 342128, libmaa/trunk/PKGBUILD)
libmaa/repos/community-x86_64/libmaa-gcc8.patch
(from rev 342128, libmaa/trunk/libmaa-gcc8.patch)
Deleted:
libmaa/repos/community-x86_64/PKGBUILD
-------------------+
PKGBUILD | 56 ++++++++++++++++++++++++++++------------------------
libmaa-gcc8.patch | 28 ++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 25 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-09 07:39:46 UTC (rev 342128)
+++ PKGBUILD 2018-06-09 07:40:04 UTC (rev 342129)
@@ -1,25 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=libmaa
-pkgver=1.3.2
-pkgrel=2
-pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
-url="http://sourceforge.net/projects/dict/"
-license=('GPL')
-arch=('i686' 'x86_64')
-depends=('glibc')
-makedepends=('flex')
-source=("http://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz")
-md5sums=('01dab2cde2e0a322653e45bfa63537ee')
-
-build() {
- cd "${srcdir}/$pkgname-$pkgver"
- ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "${srcdir}/$pkgname-$pkgver"
- make DESTDIR="${pkgdir}" install
-}
Copied: libmaa/repos/community-x86_64/PKGBUILD (from rev 342128, libmaa/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-06-09 07:40:04 UTC (rev 342129)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=libmaa
+pkgver=1.3.2
+pkgrel=3
+pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
+url="http://sourceforge.net/projects/dict/"
+license=('GPL')
+arch=('x86_64')
+depends=('glibc')
+makedepends=('flex')
+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
+ make
+}
+
+package() {
+ cd "${srcdir}/$pkgname-$pkgver"
+ make DESTDIR="${pkgdir}" install
+}
Copied: libmaa/repos/community-x86_64/libmaa-gcc8.patch (from rev 342128, libmaa/trunk/libmaa-gcc8.patch)
===================================================================
--- libmaa-gcc8.patch (rev 0)
+++ libmaa-gcc8.patch 2018-06-09 07:40:04 UTC (rev 342129)
@@ -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