Wed Dec 8 23:55:19 2021 UTC ()
php73-intl: fix icu>=70 fallout. Backport from php74-intl.


(tnn)
diff -r1.41 -r1.42 pkgsrc/lang/php73/distinfo
diff -r1.1 -r1.2 pkgsrc/lang/php73/patches/patch-ext_intl_breakiterator_codepointiterator__internal.cpp
diff -r0 -r1.1 pkgsrc/lang/php73/patches/patch-ext_intl_breakiterator_codepointiterator__internal.h

cvs diff -r1.41 -r1.42 pkgsrc/lang/php73/Attic/distinfo (expand / switch to context diff)
--- pkgsrc/lang/php73/Attic/distinfo 2021/11/19 14:27:56 1.41
+++ pkgsrc/lang/php73/Attic/distinfo 2021/12/08 23:55:19 1.42
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.41 2021/11/19 14:27:56 taca Exp $
+$NetBSD: distinfo,v 1.42 2021/12/08 23:55:19 tnn Exp $
 
 BLAKE2s (php-7.3.33.tar.xz) = 70274d12e2c97a29a17782f4ae630b50b804de3d5018fc2f3efcf7a6ea366628
 SHA512 (php-7.3.33.tar.xz) = b05edb3e87775c0b2d7bd5990e47751279076e6ef2356f59dc917f4a1447d95894f596cd8de711f03278650ff74ff9f2687ed96cec69d2d669a6af563a455e25
@@ -6,7 +6,8 @@
 SHA1 (patch-configure) = 08b80528ba90c705398e8841c232382663479a3b
 SHA1 (patch-disable-filter-url) = 0a2c19c18f089448a8d842e99738b292ab9e5640
 SHA1 (patch-ext_gd_config.m4) = eaecfb31b18700dd642c067ed82748d4f6be2335
-SHA1 (patch-ext_intl_breakiterator_codepointiterator__internal.cpp) = c6702b071a1881ed35a1c1adc0e07ce53335e2e7
+SHA1 (patch-ext_intl_breakiterator_codepointiterator__internal.cpp) = b6faa82ae8effc838288aed8dd809b610ce51a91
+SHA1 (patch-ext_intl_breakiterator_codepointiterator__internal.h) = 031a7095b3b15aa88881e2f5251960f19eedc326
 SHA1 (patch-ext_intl_collator_collator__sort.c) = 7fdb751cabb24eb4097cfb5cf23ba217a9893530
 SHA1 (patch-ext_intl_dateformat_dateformat__attr.c) = 08a26ec534b67ed029426e4aa3bd26cb6761aead
 SHA1 (patch-ext_intl_normalizer_normalizer__normalize.c) = 10a215438db81c9f1f002f9409ebd56de6d65617

cvs diff -r1.1 -r1.2 pkgsrc/lang/php73/patches/Attic/patch-ext_intl_breakiterator_codepointiterator__internal.cpp (expand / switch to context diff)
--- pkgsrc/lang/php73/patches/Attic/patch-ext_intl_breakiterator_codepointiterator__internal.cpp 2020/11/11 20:05:10 1.1
+++ pkgsrc/lang/php73/patches/Attic/patch-ext_intl_breakiterator_codepointiterator__internal.cpp 2021/12/08 23:55:19 1.2
@@ -1,8 +1,9 @@
-$NetBSD: patch-ext_intl_breakiterator_codepointiterator__internal.cpp,v 1.1 2020/11/11 20:05:10 markd Exp $
+$NetBSD: patch-ext_intl_breakiterator_codepointiterator__internal.cpp,v 1.2 2021/12/08 23:55:19 tnn Exp $
 
 Use stdbool true/false macros.
+php73-intl: fix icu>=70 fallout. Backport from php74-intl.
 
---- ext/intl/breakiterator/codepointiterator_internal.cpp.orig	2020-10-27 15:01:59.000000000 +0000
+--- ext/intl/breakiterator/codepointiterator_internal.cpp.orig	2021-11-16 11:18:31.000000000 +0000
 +++ ext/intl/breakiterator/codepointiterator_internal.cpp
 @@ -58,7 +58,7 @@ CodePointBreakIterator& CodePointBreakIt
  		return *this;
@@ -13,8 +14,15 @@
  
  	//don't bother copying the character iterator, getText() is deprecated
  	clearCurrentCharIter();
-@@ -78,17 +78,17 @@ CodePointBreakIterator::~CodePointBreakI
+@@ -75,20 +75,24 @@ CodePointBreakIterator::~CodePointBreakI
+ 	clearCurrentCharIter();
+ }
+ 
++#if U_ICU_VERSION_MAJOR_NUM >= 70
++bool CodePointBreakIterator::operator==(const BreakIterator& that) const
++#else
  UBool CodePointBreakIterator::operator==(const BreakIterator& that) const
++#endif
  {
  	if (typeid(*this) != typeid(that)) {
 -		return FALSE;
@@ -34,7 +42,7 @@
  }
  
  CodePointBreakIterator* CodePointBreakIterator::clone(void) const
-@@ -109,7 +109,7 @@ CharacterIterator& CodePointBreakIterato
+@@ -109,7 +113,7 @@ CharacterIterator& CodePointBreakIterato
  
  UText *CodePointBreakIterator::getUText(UText *fillIn, UErrorCode &status) const
  {
@@ -43,7 +51,7 @@
  }
  
  void CodePointBreakIterator::setText(const UnicodeString &text)
-@@ -128,7 +128,7 @@ void CodePointBreakIterator::setText(UTe
+@@ -128,7 +132,7 @@ void CodePointBreakIterator::setText(UTe
  		return;
  	}
  
@@ -52,7 +60,7 @@
  
  	clearCurrentCharIter();
  }
-@@ -280,7 +280,7 @@ CodePointBreakIterator &CodePointBreakIt
+@@ -280,7 +284,7 @@ CodePointBreakIterator &CodePointBreakIt
  	}
  
  	int64_t pos = utext_getNativeIndex(this->fText);

File Added: pkgsrc/lang/php73/patches/Attic/patch-ext_intl_breakiterator_codepointiterator__internal.h
$NetBSD: patch-ext_intl_breakiterator_codepointiterator__internal.h,v 1.1 2021/12/08 23:55:19 tnn Exp $

php73-intl: fix icu>=70 fallout. Backport from php74-intl.

--- ext/intl/breakiterator/codepointiterator_internal.h.orig	2021-11-16 11:18:31.000000000 +0000
+++ ext/intl/breakiterator/codepointiterator_internal.h
@@ -39,7 +39,11 @@ namespace PHP {
 
 		virtual ~CodePointBreakIterator();
 
+#if U_ICU_VERSION_MAJOR_NUM >= 70
+		virtual bool operator==(const BreakIterator& that) const;
+#else
 		virtual UBool operator==(const BreakIterator& that) const;
+#endif
 
 		virtual CodePointBreakIterator* clone(void) const;