pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/icu



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Tue Jan  6 15:29:59 UTC 2026

Modified Files:
        pkgsrc/textproc/icu: Makefile PLIST distinfo
Added Files:
        pkgsrc/textproc/icu/patches: patch-ICU-23263

Log Message:
textproc/icu: Update to 78.1

Changelog:
78.1:
We are pleased to announce the release of Unicode ICU 78. It updates to
Unicode 17 (blog), including new characters and scripts, emoji,
collation & IDNA changes, and corresponding APIs and implementations.

It also updates to CLDR 48 (beta blog) locale data with new locales,
and various additions and corrections.

  * Details: ICU 78.
  * Download: releases/tag/release-78.1
  * Maven: com.ibm.icu / icu4j / version 78.1

In Java, there is a draft new Segmenter API which is easier and safer
to use than BreakIterator.
In C++, there is a new set of APIs for Unicode string (UTF-8/16/32)
code point iteration that works seamlessly with modern C++ iterators
and ranges.

The Java implementation of the CLDR MessageFormat 2.0 specification has
been updated to CLDR 48. The core API has been upgraded to "draft", while
the Data Model API remains in technology preview.

The C++ implementation of MessageFormat 2.0 is at CLDR 47 level and
remains in technology preview.

ICU 78 and CLDR 48 are major releases, including a new version of Unicode
and major locale data improvements.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 pkgsrc/textproc/icu/Makefile
cvs rdiff -u -r1.61 -r1.62 pkgsrc/textproc/icu/PLIST
cvs rdiff -u -r1.110 -r1.111 pkgsrc/textproc/icu/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/icu/patches/patch-ICU-23263

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/icu/Makefile
diff -u pkgsrc/textproc/icu/Makefile:1.166 pkgsrc/textproc/icu/Makefile:1.167
--- pkgsrc/textproc/icu/Makefile:1.166  Thu Apr 17 22:03:48 2025
+++ pkgsrc/textproc/icu/Makefile        Tue Jan  6 15:29:59 2026
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.166 2025/04/17 22:03:48 wiz Exp $
+# $NetBSD: Makefile,v 1.167 2026/01/06 15:29:59 ryoon Exp $
 
-DISTNAME=      icu4c-77_1-src
-PKGNAME=       ${DISTNAME:S/4c//:S/-src//:S/_/./g}
+DISTNAME=      icu4c-78.1-sources
+PKGNAME=       ${DISTNAME:S/4c//:S/-sources//}
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=unicode-org/}
 GITHUB_PROJECT=        icu
-GITHUB_RELEASE=        release-77-1
+GITHUB_RELEASE=        release-${PKGVERSION_NOREV}
 EXTRACT_SUFX=  .tgz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/textproc/icu/PLIST
diff -u pkgsrc/textproc/icu/PLIST:1.61 pkgsrc/textproc/icu/PLIST:1.62
--- pkgsrc/textproc/icu/PLIST:1.61      Thu Apr 17 21:32:21 2025
+++ pkgsrc/textproc/icu/PLIST   Tue Jan  6 15:29:59 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.61 2025/04/17 21:32:21 wiz Exp $
+@comment $NetBSD: PLIST,v 1.62 2026/01/06 15:29:59 ryoon Exp $
 bin/derb
 bin/genbrk
 bin/gencfu
@@ -207,6 +207,8 @@ include/unicode/utf16.h
 include/unicode/utf32.h
 include/unicode/utf8.h
 include/unicode/utf_old.h
+include/unicode/utfiterator.h
+include/unicode/utfstring.h
 include/unicode/utmscale.h
 include/unicode/utrace.h
 include/unicode/utrans.h
@@ -222,27 +224,27 @@ lib/icu/pkgdata.inc
 lib/libicudata.a
 lib/libicudata.so
 lib/libicudata.so.${PKGVERSION}
-lib/libicudata.so.77
+lib/libicudata.so.78
 lib/libicui18n.a
 lib/libicui18n.so
 lib/libicui18n.so.${PKGVERSION}
-lib/libicui18n.so.77
+lib/libicui18n.so.78
 lib/libicuio.a
 lib/libicuio.so
 lib/libicuio.so.${PKGVERSION}
-lib/libicuio.so.77
+lib/libicuio.so.78
 lib/libicutest.a
 lib/libicutest.so
 lib/libicutest.so.${PKGVERSION}
-lib/libicutest.so.77
+lib/libicutest.so.78
 lib/libicutu.a
 lib/libicutu.so
 lib/libicutu.so.${PKGVERSION}
-lib/libicutu.so.77
+lib/libicutu.so.78
 lib/libicuuc.a
 lib/libicuuc.so
 lib/libicuuc.so.${PKGVERSION}
-lib/libicuuc.so.77
+lib/libicuuc.so.78
 lib/pkgconfig/icu-i18n.pc
 lib/pkgconfig/icu-io.pc
 lib/pkgconfig/icu-uc.pc

Index: pkgsrc/textproc/icu/distinfo
diff -u pkgsrc/textproc/icu/distinfo:1.110 pkgsrc/textproc/icu/distinfo:1.111
--- pkgsrc/textproc/icu/distinfo:1.110  Thu Apr 17 21:32:21 2025
+++ pkgsrc/textproc/icu/distinfo        Tue Jan  6 15:29:59 2026
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.110 2025/04/17 21:32:21 wiz Exp $
+$NetBSD: distinfo,v 1.111 2026/01/06 15:29:59 ryoon Exp $
 
-BLAKE2s (icu4c-77_1-src.tgz) = 9b4adc19480fd9c0173f2c8942c6c76c4fc87fb71644798aa884fb86ae8796fd
-SHA512 (icu4c-77_1-src.tgz) = a47d6d9c327d037a05ea43d1d1a06b2fd757cc02a94f7c1a238f35cfc3dfd4ab78d0612790f3a3cca0292c77412a9c2c15c8f24b718f79a857e007e66f07e7cd
-Size (icu4c-77_1-src.tgz) = 27384265 bytes
+BLAKE2s (icu4c-78.1-sources.tgz) = 3a307d2b1bbea81b488d43b53b6af8351b5367d31d450b0c0b1aa9109cf733a1
+SHA512 (icu4c-78.1-sources.tgz) = c366398fdb50afc6355a8c45ed1d68a18eaa5f07a5d1c4555becbcfb9d4073e65ebe1e9caf24b93779b11b36cd813c98dd59e4b19f008851f25c7262811c112d
+Size (icu4c-78.1-sources.tgz) = 27979449 bytes
+SHA1 (patch-ICU-23263) = d73ce679198314744a61361774707be4b6470365
 SHA1 (patch-acinclude.m4) = 64311d903a85c868e3a87502ea58b916089afb70
 SHA1 (patch-common_putil.cpp) = cc867aaef753c23ff12db019e41836c0dd5ac6d1
 SHA1 (patch-common_ubidiimp.h) = 180eb1fe1069c393ddf1deb46da00f466d8438e8

Added files:

Index: pkgsrc/textproc/icu/patches/patch-ICU-23263
diff -u /dev/null pkgsrc/textproc/icu/patches/patch-ICU-23263:1.1
--- /dev/null   Tue Jan  6 15:29:59 2026
+++ pkgsrc/textproc/icu/patches/patch-ICU-23263 Tue Jan  6 15:29:59 2026
@@ -0,0 +1,63 @@
+$NetBSD: patch-ICU-23263,v 1.1 2026/01/06 15:29:59 ryoon Exp $
+
+ICU-23263 Support shared/static data library that uses a pointer based table of contents
+
+Upstream fix: aa17de1994d188560d99d07c37bf333416483899
+
+diff --git a/icu4c/source/common/ucnv_io.cpp b/icu4c/source/common/ucnv_io.cpp
+index 46a26f821fd8..66813f5a0372 100644
+--- common/ucnv_io.cpp
++++ common/ucnv_io.cpp
+@@ -249,14 +249,15 @@ static void U_CALLCONV initAliasData(UErrorCode &errCode) {
+ 
+     sectionSizes = static_cast<const uint32_t*>(udata_getMemory(data));
+     int32_t dataLength = udata_getLength(data); // This is the length minus the UDataInfo size
+-    if (dataLength <= int32_t(sizeof(sectionSizes[0]))) {
++    UBool isDataLengthKnown = dataLength >= 0; // Only false when using a pointer table of contents (not files nor a common data archive)
++    if (isDataLengthKnown && dataLength <= int32_t(sizeof(sectionSizes[0]))) {
+         // We don't even have a TOC!
+         goto invalidFormat;
+     }
+     table = reinterpret_cast<const uint16_t*>(sectionSizes);
+     tableStart = sectionSizes[0];
+     sizeOfTOC = int32_t((tableStart + 1) * sizeof(sectionSizes[0]));
+-    if (tableStart < minTocLength || dataLength <= sizeOfTOC) {
++    if (tableStart < minTocLength || (isDataLengthKnown && dataLength <= sizeOfTOC)) {
+         // We don't have a whole TOC!
+         goto invalidFormat;
+     }
+@@ -279,7 +280,7 @@ static void U_CALLCONV initAliasData(UErrorCode &errCode) {
+     for (uint32_t section = 1; section <= tableStart; section++) {
+         sizeOfData += sectionSizes[section] * sizeof(table[0]);
+     }
+-    if (dataLength < sizeOfData) {
++    if (isDataLengthKnown && dataLength < sizeOfData) {
+         // Truncated file!
+         goto invalidFormat;
+     }
+diff --git a/icu4c/source/configure b/icu4c/source/configure
+index 033749b71bc9..1fd03e78f6f9 100755
+--- configure
++++ configure
+@@ -7013,7 +7013,7 @@ case "${host}" in
+         # We're using gcc, and the simple -a gcc command line works for genccode
+         GENCCODE_ASSEMBLY="-a gcc"
+     fi ;;
+-i*86-*-solaris*)
++*86*-solaris*)
+     if test "$GCC" = yes; then
+         # When using gcc, look if we're also using GNU as.
+         # When using GNU as, the simple -a gcc command line works for genccode.
+diff --git a/icu4c/source/configure.ac b/icu4c/source/configure.ac
+index 8ffacf8795a9..61e7ee47fcc6 100644
+--- configure.ac
++++ configure.ac
+@@ -618,7 +618,7 @@ case "${host}" in
+         # We're using gcc, and the simple -a gcc command line works for genccode
+         GENCCODE_ASSEMBLY="-a gcc"
+     fi ;;
+-i*86-*-solaris*)
++*86*-solaris*)
+     if test "$GCC" = yes; then
+         # When using gcc, look if we're also using GNU as.
+         # When using GNU as, the simple -a gcc command line works for genccode.



Home | Main Index | Thread Index | Old Index