[arch-commits] Commit in dwdiff/trunk (PKGBUILD icu68.patch)

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 19 10:45:16 UTC 2020


    Date: Saturday, December 19, 2020 @ 10:45:16
  Author: foutrelis
Revision: 779938

Fix build with ICU 68 (patch from FreeBSD)

Added:
  dwdiff/trunk/icu68.patch
Modified:
  dwdiff/trunk/PKGBUILD

-------------+
 PKGBUILD    |   11 +++++++++--
 icu68.patch |   26 ++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-19 10:43:08 UTC (rev 779937)
+++ PKGBUILD	2020-12-19 10:45:16 UTC (rev 779938)
@@ -9,9 +9,16 @@
 url="https://os.ghalkes.nl/dwdiff.html"
 depends=('diffutils' 'icu')
 license=('GPL')
-source=("https://os.ghalkes.nl/dist/$pkgname-$pkgver.tar.bz2")
-sha256sums=('211ddbfaa2e6fcc85d5c88b5141c62a22a13ed0fecffc22fe6dded07e4cf2382')
+source=("https://os.ghalkes.nl/dist/$pkgname-$pkgver.tar.bz2"
+        icu68.patch)
+sha256sums=('211ddbfaa2e6fcc85d5c88b5141c62a22a13ed0fecffc22fe6dded07e4cf2382'
+            'b4248cedec5eec8ff280244e41c3450d302a47e50ec126b4dfdd91d7131dd941')
 
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  patch -Np0 -i ../icu68.patch
+}
+
 build() {
   cd "$srcdir/$pkgname-$pkgver"
   ./configure --prefix=/usr --without-dwfilter

Added: icu68.patch
===================================================================
--- icu68.patch	                        (rev 0)
+++ icu68.patch	2020-12-19 10:45:16 UTC (rev 779938)
@@ -0,0 +1,26 @@
+Regressed by https://github.com/unicode-org/icu/commit/c3fe7e09d844
+
+In file included from src/unicode.c:21:
+src/definitions.h:48:15: error: expected identifier
+typedef enum {false, true} bool;
+              ^
+/usr/include/stdbool.h:36:15: note: expanded from macro 'false'
+#define false   0
+                ^
+
+--- src/definitions.h.orig	2020-07-18 06:57:36 UTC
++++ src/definitions.h
+@@ -43,13 +43,7 @@
+ 
+ /*==== Misc definitions ====*/
+ /* Define a bool type if not already defined (C++ and C99 do)*/
+-#if !(defined(__cplusplus) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 19990601L))
+-/*@-incondefs@*/
+-typedef enum {false, true} bool;
+-/*@+incondefs@*/
+-#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 19990601L
+ #include <stdbool.h>
+-#endif
+ 
+ /*==== Configuration definitions ====*/
+ #ifndef NO_STRDUP



More information about the arch-commits mailing list