diff options
author | Yen Chi Hsuan | 2017-12-18 22:00:40 +0800 |
---|---|---|
committer | Yen Chi Hsuan | 2017-12-18 22:00:40 +0800 |
commit | 42cc417a1edb3f36eef984a12f9f059f242ea19b (patch) | |
tree | b9d9fe45cca64eed1e6d689b1a813e06009ad618 | |
parent | 500360c55e9e13c93d27936b519ccf34ea7cc63e (diff) | |
download | aur-42cc417a1edb3f36eef984a12f9f059f242ea19b.tar.gz |
fix build against enchant 2.x
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | enchant-2.x.patch | 11 |
3 files changed, 23 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = webkitgtk pkgdesc = Legacy Web content engine pkgver = 2.4.11 - pkgrel = 6 + pkgrel = 7 url = https://webkitgtk.org/ install = webkitgtk.install arch = i686 @@ -32,9 +32,11 @@ pkgbase = webkitgtk source = https://webkitgtk.org/releases/webkitgtk-2.4.11.tar.xz source = webkitgtk-2.4.9-abs.patch source = icu59.patch + source = enchant-2.x.patch sha256sums = 588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7 sha256sums = ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70 sha256sums = eb791b9c8dcb84996904846dedf8c3ddf1a5fde32330177f3f0071510bd8ca6d + sha256sums = 81a4ad1c921bece16edb9a3cb187096fd8f336db8b89114356119a86f26e3d6d pkgname = webkitgtk pkgdesc = Legacy Web content engine for GTK+ 3 @@ -4,7 +4,7 @@ pkgbase=webkitgtk pkgname=(webkitgtk webkitgtk2) pkgver=2.4.11 -pkgrel=6 +pkgrel=7 pkgdesc="Legacy Web content engine" arch=(i686 x86_64) url="https://webkitgtk.org/" @@ -19,10 +19,12 @@ options=(!emptydirs) install=webkitgtk.install source=(https://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz webkitgtk-2.4.9-abs.patch - icu59.patch) + icu59.patch + enchant-2.x.patch) sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7' 'ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70' - 'eb791b9c8dcb84996904846dedf8c3ddf1a5fde32330177f3f0071510bd8ca6d') + 'eb791b9c8dcb84996904846dedf8c3ddf1a5fde32330177f3f0071510bd8ca6d' + '81a4ad1c921bece16edb9a3cb187096fd8f336db8b89114356119a86f26e3d6d') prepare() { mkdir build-gtk{,2} path @@ -31,6 +33,7 @@ prepare() { cd $pkgbase-$pkgver patch -Np1 -i ../webkitgtk-2.4.9-abs.patch patch -Np1 -i ../icu59.patch + patch -Np1 -i ../enchant-2.x.patch } _build() ( @@ -42,6 +45,9 @@ _build() ( CXXFLAGS+=" -fno-delete-null-pointer-checks" CFLAGS+=" -fno-delete-null-pointer-checks" + CFLAGS+=" -Wno-expansion-to-defined" + CXXFLAGS+=" -Wno-expansion-to-defined" + ../$pkgbase-$pkgver/configure --prefix=/usr \ --libexecdir=/usr/lib/webkit${_ver} \ --enable-introspection \ diff --git a/enchant-2.x.patch b/enchant-2.x.patch new file mode 100644 index 000000000000..e65c5b88971f --- /dev/null +++ b/enchant-2.x.patch @@ -0,0 +1,11 @@ +--- webkitgtk-2.4.9/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp.orig 2017-12-06 14:59:40.768262788 -0500
++++ webkitgtk-2.4.9/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp 2017-12-06 15:03:10.000000000 -0500
+@@ -128,7 +128,7 @@
+ for (i = 0; i < numberOfSuggestions; i++)
+ guesses.append(String::fromUTF8(suggestions[i]));
+
+- enchant_dict_free_suggestions(*iter, suggestions);
++ enchant_dict_free_string_list(*iter, suggestions);
+ }
+
+ return guesses;
\ No newline at end of file |