[arch-commits] Commit in haskell-text-icu/trunk (PKGBUILD icu68.patch)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 19 06:37:31 UTC 2020
Date: Saturday, December 19, 2020 @ 06:37:30
Author: foutrelis
Revision: 779754
Fix build with ICU 68
Added:
haskell-text-icu/trunk/icu68.patch
Modified:
haskell-text-icu/trunk/PKGBUILD
-------------+
PKGBUILD | 11 +++++++++--
icu68.patch | 18 ++++++++++++++++++
2 files changed, 27 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-19 06:32:03 UTC (rev 779753)
+++ PKGBUILD 2020-12-19 06:37:30 UTC (rev 779754)
@@ -11,9 +11,16 @@
arch=('x86_64')
depends=('ghc-libs' 'icu')
makedepends=('ghc')
-source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('54551ce0d629bffcca32fc855bfcdf2e24282359ce3a32578a98de4f4ad15378fa7df98c59d73323549a2ac873b10a10202bda02f5be83fbe1ab945aac5e50a9')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+ icu68.patch)
+sha512sums=('54551ce0d629bffcca32fc855bfcdf2e24282359ce3a32578a98de4f4ad15378fa7df98c59d73323549a2ac873b10a10202bda02f5be83fbe1ab945aac5e50a9'
+ '315e366a2d428df2a1ff0064fea15c26cce4581754e9259c832b0f4ad71a50b96e02e9d76548e93f5d7682930d0826d02766db17105110bcf06add542aa67a77')
+prepare() {
+ cd $_hkgname-$pkgver
+ patch -Np1 -i ../icu68.patch
+}
+
build() {
cd $_hkgname-$pkgver
Added: icu68.patch
===================================================================
--- icu68.patch (rev 0)
+++ icu68.patch 2020-12-19 06:37:30 UTC (rev 779754)
@@ -0,0 +1,18 @@
+diff -upr text-icu-0.7.0.1.orig/cbits/text_icu.c text-icu-0.7.0.1/cbits/text_icu.c
+--- text-icu-0.7.0.1.orig/cbits/text_icu.c 2015-01-09 06:58:03.000000000 +0200
++++ text-icu-0.7.0.1/cbits/text_icu.c 2020-12-19 08:34:48.487152611 +0200
+@@ -1,3 +1,5 @@
++#include <stdbool.h>
++
+ #include "hs_text_icu.h"
+
+ UBreakIterator* __hs_ubrk_open(UBreakIteratorType type, const char *locale,
+@@ -305,7 +307,7 @@ int32_t __hs_u_strFoldCase(UChar *dest,
+
+ int32_t __hs_u_strCompareIter(UCharIterator *iter1, UCharIterator *iter2)
+ {
+- return u_strCompareIter(iter1, iter2, TRUE);
++ return u_strCompareIter(iter1, iter2, true);
+ }
+
+ UBlockCode __hs_ublock_getCode(UChar32 c)
More information about the arch-commits
mailing list