[arch-commits] Commit in enchant/trunk (PKGBUILD hunspell14_buildfix.diff)

Andreas Radke andyrtr at archlinux.org
Mon Jun 13 17:24:52 UTC 2016


    Date: Monday, June 13, 2016 @ 19:24:52
  Author: andyrtr
Revision: 269464

upgpkg: enchant 1.6.0-8

hunspell rebuild

Added:
  enchant/trunk/hunspell14_buildfix.diff
Modified:
  enchant/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   14 +++++++++++---
 hunspell14_buildfix.diff |   14 ++++++++++++++
 2 files changed, 25 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-06-13 17:03:57 UTC (rev 269463)
+++ PKGBUILD	2016-06-13 17:24:52 UTC (rev 269464)
@@ -5,15 +5,23 @@
 
 pkgname=enchant
 pkgver=1.6.0
-pkgrel=7
+pkgrel=8
 pkgdesc="A wrapper library for generic spell checking"
 arch=('i686' 'x86_64')
 url="http://www.abisource.com/enchant/"
 license=('LGPL')
 depends=('aspell' 'dbus-glib' 'hunspell' 'hspell' 'libvoikko')
-source=("http://www.abisource.com/downloads/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('de11011aff801dc61042828041fb59c7')
+source=("http://www.abisource.com/downloads/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+       hunspell14_buildfix.diff)
+md5sums=('de11011aff801dc61042828041fb59c7'
+         '1305a6c285b5970bb1ef0f033f49f329')
 
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  # http://bugzilla.abisource.com/show_bug.cgi?id=13772
+  patch -Np1 -i ${srcdir}/hunspell14_buildfix.diff
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr \

Added: hunspell14_buildfix.diff
===================================================================
--- hunspell14_buildfix.diff	                        (rev 0)
+++ hunspell14_buildfix.diff	2016-06-13 17:24:52 UTC (rev 269464)
@@ -0,0 +1,14 @@
+diff -ru enchant-1.6.0-orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
+--- enchant-1.6.0-orig/src/myspell/myspell_checker.cpp	2016-04-18 12:25:00.094614256 +0100
++++ enchant-1.6.0/src/myspell/myspell_checker.cpp	2016-04-18 12:26:09.108569576 +0100
+@@ -148,6 +148,10 @@
+ 		g_iconv_close(m_translate_out);
+ }
+ 
++#ifndef MAXWORDLEN
++#   define MAXWORDLEN 100
++#endif
++
+ bool
+ MySpellChecker::checkWord(const char *utf8Word, size_t len)
+ {



More information about the arch-commits mailing list