From fce76df60c1618c99575a37d884e463c85687100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Sat, 1 Dec 2018 10:32:26 +0100 Subject: [PATCH] libmaa: update to 1.4.2. --- common/shlibs | 2 +- srcpkgs/libmaa/patches/libmaa-1.4.2.patch | 22 ++++++++++++++++++++++ srcpkgs/libmaa/template | 22 ++++++++++++++++------ 3 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 srcpkgs/libmaa/patches/libmaa-1.4.2.patch diff --git a/common/shlibs b/common/shlibs index 1a48ae122fc..f225321824d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2074,7 +2074,7 @@ libkasten3okteta1gui.so.1 okteta-0.25.1_1 libokteta2core.so.2 okteta-0.25.1_1 libokteta2gui.so.2 okteta-0.25.1_1 libhttp_parser.so.2.8 http-parser-2.8.0_1 -libmaa.so.3 libmaa-1.3.2_1 +libmaa.so.4 libmaa-1.4.2_1 libcodeblocks.so.0 codeblocks-13.12_1 liblept.so.5 leptonica-1.73_1 libtesseract.so.3 tesseract-ocr-3.02.02_1 diff --git a/srcpkgs/libmaa/patches/libmaa-1.4.2.patch b/srcpkgs/libmaa/patches/libmaa-1.4.2.patch new file mode 100644 index 00000000000..2d057d657de --- /dev/null +++ b/srcpkgs/libmaa/patches/libmaa-1.4.2.patch @@ -0,0 +1,22 @@ +From 08007ecd13798f752ef8c18f3cff25c0c0a6afc8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= +Date: Sat, 1 Dec 2018 00:54:26 +0100 +Subject: [PATCH] Fix Werror=format-truncation + + +diff --git maa/log.c maa/log.c +index 8c68546..c31708b 100644 +--- maa/log.c ++++ 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] = ""; + +-- +2.19.1 + diff --git a/srcpkgs/libmaa/template b/srcpkgs/libmaa/template index e08e2654558..c4116472033 100644 --- a/srcpkgs/libmaa/template +++ b/srcpkgs/libmaa/template @@ -1,15 +1,25 @@ # Template file for 'libmaa' pkgname=libmaa -version=1.3.2 +version=1.4.2 revision=1 -build_style=gnu-configure -hostmakedepends="flex libtool" +build_style=gnu-makefile +make_cmd=mkcmake +hostmakedepends="flex libtool mk-configure" short_desc="Provides many low-level data structures useful for writing compilers" maintainer="Christopher Brannon " -license="GPL-2" +license="GPL-2.0-or-later" homepage="http://sourceforge.net/projects/dict/" -distfiles="${SOURCEFORGE_SITE}/dict/${pkgname}-${version}.tar.gz" -checksum=59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5 +distfiles="${SOURCEFORGE_SITE}/dict/libmaa-${version}.tar.gz" +checksum=63de331c97a40efe8b64534fee4b7b7df161645b92636572ad248b0f13abc0db + +do_build() { + awk -f maa/arggram2c < maa/arggram.txt > maa/arggram.c + mkcmake ${makejobs} PREFIX=/usr +} + +do_check() { + : +} libmaa-devel_package() { depends="${makedepends} libmaa>=${version}_${revision}"