aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Sullivan <mksully22@gmail.com>2018-11-20 16:24:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-22 13:24:03 +0000
commit3b3d9d5011bbd708f76f1c50b5546fd776cb3a2c (patch)
treefa0e83842a68411e54690c9ffd6183be89e9c8d4
parent7aab2d52d8fcc54546b3cdeff99de286edf37ec1 (diff)
downloadaports-3b3d9d5011bbd708f76f1c50b5546fd776cb3a2c.tar.gz
aports-3b3d9d5011bbd708f76f1c50b5546fd776cb3a2c.tar.bz2
aports-3b3d9d5011bbd708f76f1c50b5546fd776cb3a2c.tar.xz
main/libmaa: fix ppc64le bld break for sprintf Werror
-rw-r--r--main/libmaa/APKBUILD10
-rw-r--r--main/libmaa/fix-ppc64le-build-snprinf-buflen.patch11
2 files changed, 16 insertions, 5 deletions
diff --git a/main/libmaa/APKBUILD b/main/libmaa/APKBUILD
index c1e95c4c5b..90237a15e2 100644
--- a/main/libmaa/APKBUILD
+++ b/main/libmaa/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=libmaa
pkgver=1.3.2
-pkgrel=0
+pkgrel=1
pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
url="https://sourceforge.net/projects/dict/"
arch="all"
@@ -12,7 +12,8 @@ depends_dev=""
makedepends="libtool perl flex"
install=""
subpackages="$pkgname-dev"
-source="https://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz"
+source="https://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz
+ fix-ppc64le-build-snprinf-buflen.patch"
options="libtool"
builddir="${srcdir}/${pkgname}-${pkgver}"
@@ -29,6 +30,5 @@ package() {
make DESTDIR="${pkgdir}" install || return 1
}
-md5sums="01dab2cde2e0a322653e45bfa63537ee libmaa-1.3.2.tar.gz"
-sha256sums="59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5 libmaa-1.3.2.tar.gz"
-sha512sums="dde91e8bf1c08515ff4662282d16a03b18a1dfb16eb7b95be980ba398ed1e65d8cd88e58d454e03a03f48a5ecca8bf23b4ebaf475a98630a9178318c12a1b176 libmaa-1.3.2.tar.gz"
+sha512sums="dde91e8bf1c08515ff4662282d16a03b18a1dfb16eb7b95be980ba398ed1e65d8cd88e58d454e03a03f48a5ecca8bf23b4ebaf475a98630a9178318c12a1b176 libmaa-1.3.2.tar.gz
+8efab0163bbdb0e16cc4914779cddccd53b6107c0ddc5b8c370e408f837d6ababd490e52e91386df7bc69d3a973a38f19e3721f379528b17913b5a32bfab6101 fix-ppc64le-build-snprinf-buflen.patch"
diff --git a/main/libmaa/fix-ppc64le-build-snprinf-buflen.patch b/main/libmaa/fix-ppc64le-build-snprinf-buflen.patch
new file mode 100644
index 0000000000..7c8bf66e12
--- /dev/null
+++ b/main/libmaa/fix-ppc64le-build-snprinf-buflen.patch
@@ -0,0 +1,11 @@
+--- a/log.c
++++ b/log.c
+@@ -297,7 +297,7 @@
+ {
+ va_list ap_copy;
+ time_t t;
+- static char buf [4096] = "";
++ static char buf [4356] = "";
+ static char buf_main [4096] = "";
+ static char buf_preamble [256] = "";
+