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

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 19 06:57:09 UTC 2020


    Date: Saturday, December 19, 2020 @ 06:57:08
  Author: foutrelis
Revision: 779765

Fix build with ICU 68 (patch from FreeBSD)

Added:
  gnustep-base/trunk/icu68.patch
Modified:
  gnustep-base/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-19 06:53:49 UTC (rev 779764)
+++ PKGBUILD	2020-12-19 06:57:08 UTC (rev 779765)
@@ -13,11 +13,18 @@
 makedepends=(gcc-objc gnustep-make)
 groups=('gnustep-core')
 options=('!emptydirs' '!makeflags')
-source=(https://github.com/gnustep/libs-base/releases/download/base-${pkgver//./_}/gnustep-base-${pkgver}.tar.gz{,.sig})
+source=(https://github.com/gnustep/libs-base/releases/download/base-${pkgver//./_}/gnustep-base-${pkgver}.tar.gz{,.sig}
+        icu68.patch)
 sha256sums=('8803fa1fdf23f90264a81ad2d9fbe97ba66d6e313e396a28fd7c10d2caceb283'
-            'SKIP')
+            'SKIP'
+            '0b38c3df1a150bc64fb4f37cd92cfc63fa7c0741a77eca940fb992942858d7d0')
 validpgpkeys=('83AAE47CE829A4146EF83420CA868D4C99149679')
 
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  patch -Np0 -i ../icu68.patch
+}
+
 build() {
   cd "$srcdir/$pkgname-$pkgver"
   source /usr/share/GNUstep/Makefiles/GNUstep.sh

Added: icu68.patch
===================================================================
--- icu68.patch	                        (rev 0)
+++ icu68.patch	2020-12-19 06:57:08 UTC (rev 779765)
@@ -0,0 +1,185 @@
+Regressed by https://github.com/unicode-org/icu/commit/c3fe7e09d844
+
+GSICUString.m:71:18: error: use of undeclared identifier 'TRUE'
+          return TRUE;
+                 ^
+GSICUString.m:80:18: error: use of undeclared identifier 'FALSE'
+          return FALSE;
+                 ^
+GSICUString.m:104:18: error: use of undeclared identifier 'TRUE'
+          return TRUE;
+                 ^
+GSICUString.m:113:18: error: use of undeclared identifier 'FALSE'
+          return FALSE;
+                 ^
+GSICUString.m:135:10: error: use of undeclared identifier 'TRUE'
+  return TRUE;
+         ^
+GSICUString.m:170:66: error: use of undeclared identifier 'TRUE'
+  UTextNSStringAccess(ut, r.location + [replacement length] + 1, TRUE);
+                                                                 ^
+NSRegularExpression.m:185:29: error: use of undeclared identifier 'FALSE'
+  utext_clone(&str->txt, t, FALSE, TRUE, &s);
+                            ^
+NSRegularExpression.m:185:36: error: use of undeclared identifier 'TRUE'
+  utext_clone(&str->txt, t, FALSE, TRUE, &s);
+                                   ^
+NSRegularExpression.m:842:34: error: use of undeclared identifier 'TRUE'
+  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
+                                 ^
+NSRegularExpression.m:842:40: error: use of undeclared identifier 'TRUE'
+  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
+                                       ^
+NSRegularExpression.m:876:34: error: use of undeclared identifier 'TRUE'
+  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
+                                 ^
+NSRegularExpression.m:876:40: error: use of undeclared identifier 'TRUE'
+  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
+                                       ^
+NSRegularExpression.m:914:34: error: use of undeclared identifier 'TRUE'
+  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
+                                 ^
+NSRegularExpression.m:914:40: error: use of undeclared identifier 'TRUE'
+  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
+                                       ^
+NSRegularExpression.m:291:14: error: use of undeclared identifier 'FALSE'
+      return FALSE;
+             ^
+NSRegularExpression.m:368:36: error: use of undeclared identifier 'FALSE'
+      uregex_useAnchoringBounds(r, FALSE, &s);
+                                   ^
+NSRegularExpression.m:372:38: error: use of undeclared identifier 'TRUE'
+      uregex_useTransparentBounds(r, TRUE, &s);
+                                     ^
+
+--- Source/GSICUString.m.orig	2019-01-06 22:33:45 UTC
++++ Source/GSICUString.m
+@@ -68,7 +68,7 @@ UTextNSStringAccess(UText *ut, int64_t nativeIndex, UB
+            * to match it.
+            */
+           ut->chunkOffset = nativeIndex - nativeStart;
+-          return TRUE;
++          return true;
+         }
+ 
+       if (nativeIndex >= length && nativeLimit >= length)
+@@ -77,7 +77,7 @@ UTextNSStringAccess(UText *ut, int64_t nativeIndex, UB
+            * Limit it to point just after the last character.
+            */
+           ut->chunkOffset = ut->chunkLength;
+-          return FALSE;
++          return false;
+         }
+ 
+       /* Set up to fill the chunk with characters from the string
+@@ -101,7 +101,7 @@ UTextNSStringAccess(UText *ut, int64_t nativeIndex, UB
+            * to match it.
+            */
+           ut->chunkOffset = nativeIndex - nativeStart;
+-          return TRUE;
++          return true;
+         }
+ 
+       if (nativeIndex <= 0 && nativeStart <= 0)
+@@ -110,7 +110,7 @@ UTextNSStringAccess(UText *ut, int64_t nativeIndex, UB
+            * Limit it to position of the first character.
+            */
+           ut->chunkOffset = 0;
+-          return FALSE;
++          return false;
+         }
+ 
+       nativeLimit = nativeIndex;
+@@ -132,7 +132,7 @@ UTextNSStringAccess(UText *ut, int64_t nativeIndex, UB
+   ut->chunkNativeStart = nativeStart;
+   ut->nativeIndexingLimit = r.length;
+   ut->chunkLength = r.length;
+-  return TRUE;
++  return true;
+ }
+ 
+ /**
+@@ -167,7 +167,7 @@ UTextNSMutableStringReplace(UText *ut,
+   // Setting the chunk length to 0 here forces UTextNSStringAccess to fetch
+   // the data from the string object.
+   ut->chunkLength = 0;
+-  UTextNSStringAccess(ut, r.location + [replacement length] + 1, TRUE);
++  UTextNSStringAccess(ut, r.location + [replacement length] + 1, true);
+   ut->chunkOffset++;
+   
+   [replacement release];
+--- Source/NSRegularExpression.m.orig	2019-01-06 22:33:45 UTC
++++ Source/NSRegularExpression.m
+@@ -182,7 +182,7 @@ NSRegularExpressionOptionsToURegexpFlags(NSRegularExpr
+       return nil;
+     }
+   str = [GSUTextString new];
+-  utext_clone(&str->txt, t, FALSE, TRUE, &s);
++  utext_clone(&str->txt, t, false, true, &s);
+   return [str autorelease];
+ }
+ #else
+@@ -288,7 +288,7 @@ callback(const void *context, int32_t steps)
+ 
+   if (NULL == context)
+     {
+-      return FALSE;
++      return false;
+     }
+   CALL_BLOCK(block, nil, NSMatchingProgress, &stop);
+   return stop;
+@@ -365,11 +365,11 @@ setupRegex(URegularExpression *regex,
+   uregex_setRegion(r, range.location, range.location+range.length, &s);
+   if (options & NSMatchingWithoutAnchoringBounds)
+     {
+-      uregex_useAnchoringBounds(r, FALSE, &s);
++      uregex_useAnchoringBounds(r, false, &s);
+     }
+   if (options & NSMatchingWithTransparentBounds)
+     {
+-      uregex_useTransparentBounds(r, TRUE, &s);
++      uregex_useTransparentBounds(r, true, &s);
+     }
+   uregex_setTimeLimit(r, _workLimit, &s);
+   if (U_FAILURE(s))
+@@ -401,11 +401,11 @@ setupRegex(URegularExpression *regex,
+   uregex_setRegion(r, range.location, range.location+range.length, &s);
+   if (options & NSMatchingWithoutAnchoringBounds)
+     {
+-      uregex_useAnchoringBounds(r, FALSE, &s);
++      uregex_useAnchoringBounds(r, false, &s);
+     }
+   if (options & NSMatchingWithTransparentBounds)
+     {
+-      uregex_useTransparentBounds(r, TRUE, &s);
++      uregex_useTransparentBounds(r, true, &s);
+     }
+   uregex_setTimeLimit(r, _workLimit, &s);
+   if (U_FAILURE(s))
+@@ -839,7 +839,7 @@ prepareResult(NSRegularExpression *regex,
+       DESTROY(ret);
+       return 0;
+     }
+-  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
++  utext_clone(&ret->txt, output, true, true, &s);
+   [string setString: ret];
+   [ret release];
+   uregex_close(r);
+@@ -873,7 +873,7 @@ prepareResult(NSRegularExpression *regex,
+       DESTROY(ret);
+       return nil;
+     }
+-  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
++  utext_clone(&ret->txt, output, true, true, &s);
+   uregex_close(r);
+ 
+   utext_close(&txt);
+@@ -911,7 +911,7 @@ prepareResult(NSRegularExpression *regex,
+       DESTROY(ret);
+       return nil;
+     }
+-  utext_clone(&ret->txt, output, TRUE, TRUE, &s);
++  utext_clone(&ret->txt, output, true, true, &s);
+   uregex_close(r);
+ 
+   utext_close(&txt);



More information about the arch-commits mailing list