Marcel Telka
2024-01-17 8fd5103cc106f8719c2f8b1376c94055083a06d9
icu: update to 74.2; preserve ICU 72 libraries

1 files deleted
22 files added
17 files modified
9 files renamed
2150 ■■■■■ changed files
components/library/icu-72/Makefile 76 ●●●●● patch | view | raw | blame | history
components/library/icu-72/library.p5m 53 ●●●●● patch | view | raw | blame | history
components/library/icu-72/manifests/sample-manifest.p5m 321 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/055-man-pages.patch 470 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/090-source-i18n-udat.cpp.patch 19 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/092-source-i18n-zonemeta.cpp.patch 42 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/093-source-common-unisetspan.cpp.patch 35 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/094-source-i18n-tzfmt.cpp.patch 20 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/101-source-common-uts46.cpp.patch 22 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/106-source-extra-uconv-uconv.cpp.patch 40 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/133-source-i18n-region.cpp.patch 18 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/135-source-common-unistr.cpp.patch 18 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/136-source-common-caniter.cpp.patch 19 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/137-source-tools-genrb-reslist.cpp.patch 25 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/139-source-tools-toolutil-pkg_genc.cpp.patch 17 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/143-source-test-intltest-convtest.cpp.patch 23 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/148-source-common-unicode-uconfig.h.patch patch | view | raw | blame | history
components/library/icu-72/patches/152-source-test-intltest-strtest.cpp.patch 31 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/154-icu-source-common-umutex.cpp.patch 110 ●●●●● patch | view | raw | blame | history
components/library/icu-72/patches/200-maint-72-ICU-22193_fix_some_CI_test_failures.patch patch | view | raw | blame | history
components/library/icu-72/patches/201-maint-72-ICU-22270_icuexportdata_Add_property_and_property_value.patch patch | view | raw | blame | history
components/library/icu-72/patches/202-maint-72-ICU-22251_Move_sprintf_to_snprintf.patch patch | view | raw | blame | history
components/library/icu-72/patches/203-maint-72-ICU-22270_Add_support_for_General_Category_Mask_in_icuexport.patch patch | view | raw | blame | history
components/library/icu-72/patches/204-maint-72-ICU-22270_Use_hex_for_mask_properties.patch patch | view | raw | blame | history
components/library/icu-72/patches/205-maint-72-ICU-22270_expose_uproperty_values_in_icuexportdata.patch patch | view | raw | blame | history
components/library/icu-72/patches/206-maint-72-ICU-22256_Add_helper_code_to_dump_Bidi_Mirroring_Glyph_data.patch patch | view | raw | blame | history
components/library/icu-72/patches/207-maint-72-ICU-22270_Fix_hex_number_formatting_in_icuexportdata.patch patch | view | raw | blame | history
components/library/icu-72/pkg5 12 ●●●●● patch | view | raw | blame | history
components/library/icu-72/test/results-all.master 2 ●●●●● patch | view | raw | blame | history
components/library/icu/Makefile 37 ●●●●● patch | view | raw | blame | history
components/library/icu/README 5 ●●●●● patch | view | raw | blame | history
components/library/icu/developer.p5m 16 ●●●●● patch | view | raw | blame | history
components/library/icu/files/LICENSE 512 ●●●●● patch | view | raw | blame | history
components/library/icu/library-32.p5m 34 ●●●●● patch | view | raw | blame | history
components/library/icu/library.p5m 25 ●●●● patch | view | raw | blame | history
components/library/icu/manifests/sample-manifest.p5m 33 ●●●●● patch | view | raw | blame | history
components/library/icu/patches/090-source-i18n-udat.cpp.patch 2 ●●● patch | view | raw | blame | history
components/library/icu/patches/092-source-i18n-zonemeta.cpp.patch 33 ●●●● patch | view | raw | blame | history
components/library/icu/patches/093-source-common-unisetspan.cpp.patch 18 ●●●● patch | view | raw | blame | history
components/library/icu/patches/094-source-i18n-tzfmt.cpp.patch 2 ●●● patch | view | raw | blame | history
components/library/icu/patches/101-source-common-uts46.cpp.patch 12 ●●●● patch | view | raw | blame | history
components/library/icu/patches/106-source-extra-uconv-uconv.cpp.patch 12 ●●●● patch | view | raw | blame | history
components/library/icu/patches/133-source-i18n-region.cpp.patch 2 ●●● patch | view | raw | blame | history
components/library/icu/patches/135-source-common-unistr.cpp.patch 4 ●●●● patch | view | raw | blame | history
components/library/icu/patches/136-source-common-caniter.cpp.patch 8 ●●●● patch | view | raw | blame | history
components/library/icu/patches/137-source-tools-genrb-reslist.cpp.patch 12 ●●●● patch | view | raw | blame | history
components/library/icu/patches/139-source-tools-toolutil-pkg_genc.cpp.patch 2 ●●● patch | view | raw | blame | history
components/library/icu/pkg5 5 ●●●●● patch | view | raw | blame | history
make-rules/shared-macros.mk 3 ●●●● patch | view | raw | blame | history
components/library/icu-72/Makefile
New file
@@ -0,0 +1,76 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2017 Alexander Pyhalov
# Copyright 2021, 2023 Andreas Wacknitz
#
BUILD_BITS= 64_and_32
USE_PARALLEL_BUILD = yes
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        icu
COMPONENT_VERSION =        72.1
COMPONENT_REVISION =        4
COMPONENT_SUMMARY =        International Components for Unicode
COMPONENT_SRC =            $(COMPONENT_NAME)
COMPONENT_ARCHIVE =        icu4c-$(subst .,_,$(HUMAN_VERSION))-src.tgz
COMPONENT_ARCHIVE_HASH =    sha256:a2d2d38217092a7ed56635e34467f92f976b370e20182ad325edea6681a71d68
COMPONENT_PROJECT_URL =        https://icu.unicode.org/
COMPONENT_ARCHIVE_URL =        https://github.com/unicode-org/icu/releases/download/release-$(subst .,-,$(HUMAN_VERSION))/$(COMPONENT_ARCHIVE)
COMPONENT_FMRI =        library/icu
COMPONENT_CLASSIFICATION =    System/Internationalization
COMPONENT_LICENSE =        ICU
COMPONENT_LICENSE_FILE =    LICENSE
# Force gcc version to avoid surprises for already built software
GCC_VERSION = 13
include $(WS_MAKE_RULES)/common.mk
# Testing expects GNU diff in PATH
PATH = $(PATH.gnu)
COMPONENT_BUILD_TARGETS = all
CONFIGURE_SCRIPT = $(SOURCE_DIR)/source/runConfigureICU
CONFIGURE_OPTIONS = Solaris/GCC
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += --with-data-packaging=library
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-samples
CONFIGURE_OPTIONS += --disable-renaming
CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
CFLAGS += -D__EXTENSIONS__ -DDECCHECK -D_XOPEN_SOURCE=600
CXXFLAGS += -D__EXTENSIONS__ -DDECCHECK -D_XOPEN_SOURCE=600 -std=c++11
COMPONENT_POST_CONFIGURE_ACTION = \
    (echo 'CPPFLAGS += -DICU_DATA_DIR=\"$(CONFIGURE_PREFIX)/share/icu/$(COMPONENT_VERSION)\"' >> $(@D)/icudefs.mk )
# Tests fails when compiled using gcc 13
# https://unicode-org.atlassian.net/browse/ICU-22629
COMPONENT_TEST_TRANSFORMS += \
    '-n ' \
    '-e "/^All tests OK:  testdata intltest iotest cintltst/p" ' \
    '-e "/^PASS: config selfcheck OK/p" '
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
components/library/icu-72/library.p5m
New file
@@ -0,0 +1,53 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2013 Alexander Pyhalov.  All rights reserved.
# Copyright 2020 Till Wegmüller
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/lib/$(MACH64)/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicudata.so.72 \
    target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicui18n.so.72 \
    target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so.72 \
    target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicudata.so.72 target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so.72 target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so.72 target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
components/library/icu-72/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,321 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/bin/$(MACH32)/derb
file path=usr/bin/$(MACH32)/genbrk
file path=usr/bin/$(MACH32)/gencfu
file path=usr/bin/$(MACH32)/gencnval
file path=usr/bin/$(MACH32)/gendict
file path=usr/bin/$(MACH32)/genrb
file path=usr/bin/$(MACH32)/icu-config
file path=usr/bin/$(MACH32)/icuexportdata
file path=usr/bin/$(MACH32)/icuinfo
file path=usr/bin/$(MACH32)/makeconv
file path=usr/bin/$(MACH32)/pkgdata
file path=usr/bin/$(MACH32)/uconv
file path=usr/bin/derb
file path=usr/bin/genbrk
file path=usr/bin/gencfu
file path=usr/bin/gencnval
file path=usr/bin/gendict
file path=usr/bin/genrb
file path=usr/bin/icu-config
file path=usr/bin/icuexportdata
file path=usr/bin/icuinfo
file path=usr/bin/makeconv
file path=usr/bin/pkgdata
file path=usr/bin/uconv
file path=usr/include/unicode/alphaindex.h
file path=usr/include/unicode/appendable.h
file path=usr/include/unicode/basictz.h
file path=usr/include/unicode/brkiter.h
file path=usr/include/unicode/bytestream.h
file path=usr/include/unicode/bytestrie.h
file path=usr/include/unicode/bytestriebuilder.h
file path=usr/include/unicode/calendar.h
file path=usr/include/unicode/caniter.h
file path=usr/include/unicode/casemap.h
file path=usr/include/unicode/char16ptr.h
file path=usr/include/unicode/chariter.h
file path=usr/include/unicode/choicfmt.h
file path=usr/include/unicode/coleitr.h
file path=usr/include/unicode/coll.h
file path=usr/include/unicode/compactdecimalformat.h
file path=usr/include/unicode/curramt.h
file path=usr/include/unicode/currpinf.h
file path=usr/include/unicode/currunit.h
file path=usr/include/unicode/datefmt.h
file path=usr/include/unicode/dbbi.h
file path=usr/include/unicode/dcfmtsym.h
file path=usr/include/unicode/decimfmt.h
file path=usr/include/unicode/displayoptions.h
file path=usr/include/unicode/docmain.h
file path=usr/include/unicode/dtfmtsym.h
file path=usr/include/unicode/dtintrv.h
file path=usr/include/unicode/dtitvfmt.h
file path=usr/include/unicode/dtitvinf.h
file path=usr/include/unicode/dtptngen.h
file path=usr/include/unicode/dtrule.h
file path=usr/include/unicode/edits.h
file path=usr/include/unicode/enumset.h
file path=usr/include/unicode/errorcode.h
file path=usr/include/unicode/fieldpos.h
file path=usr/include/unicode/filteredbrk.h
file path=usr/include/unicode/fmtable.h
file path=usr/include/unicode/format.h
file path=usr/include/unicode/formattedvalue.h
file path=usr/include/unicode/fpositer.h
file path=usr/include/unicode/gender.h
file path=usr/include/unicode/gregocal.h
file path=usr/include/unicode/icudataver.h
file path=usr/include/unicode/icuplug.h
file path=usr/include/unicode/idna.h
file path=usr/include/unicode/listformatter.h
file path=usr/include/unicode/localebuilder.h
file path=usr/include/unicode/localematcher.h
file path=usr/include/unicode/localpointer.h
file path=usr/include/unicode/locdspnm.h
file path=usr/include/unicode/locid.h
file path=usr/include/unicode/measfmt.h
file path=usr/include/unicode/measunit.h
file path=usr/include/unicode/measure.h
file path=usr/include/unicode/messagepattern.h
file path=usr/include/unicode/msgfmt.h
file path=usr/include/unicode/normalizer2.h
file path=usr/include/unicode/normlzr.h
file path=usr/include/unicode/nounit.h
file path=usr/include/unicode/numberformatter.h
file path=usr/include/unicode/numberrangeformatter.h
file path=usr/include/unicode/numfmt.h
file path=usr/include/unicode/numsys.h
file path=usr/include/unicode/parseerr.h
file path=usr/include/unicode/parsepos.h
file path=usr/include/unicode/platform.h
file path=usr/include/unicode/plurfmt.h
file path=usr/include/unicode/plurrule.h
file path=usr/include/unicode/ptypes.h
file path=usr/include/unicode/putil.h
file path=usr/include/unicode/rbbi.h
file path=usr/include/unicode/rbnf.h
file path=usr/include/unicode/rbtz.h
file path=usr/include/unicode/regex.h
file path=usr/include/unicode/region.h
file path=usr/include/unicode/reldatefmt.h
file path=usr/include/unicode/rep.h
file path=usr/include/unicode/resbund.h
file path=usr/include/unicode/schriter.h
file path=usr/include/unicode/scientificnumberformatter.h
file path=usr/include/unicode/search.h
file path=usr/include/unicode/selfmt.h
file path=usr/include/unicode/simpleformatter.h
file path=usr/include/unicode/simpletz.h
file path=usr/include/unicode/smpdtfmt.h
file path=usr/include/unicode/sortkey.h
file path=usr/include/unicode/std_string.h
file path=usr/include/unicode/strenum.h
file path=usr/include/unicode/stringoptions.h
file path=usr/include/unicode/stringpiece.h
file path=usr/include/unicode/stringtriebuilder.h
file path=usr/include/unicode/stsearch.h
file path=usr/include/unicode/symtable.h
file path=usr/include/unicode/tblcoll.h
file path=usr/include/unicode/timezone.h
file path=usr/include/unicode/tmunit.h
file path=usr/include/unicode/tmutamt.h
file path=usr/include/unicode/tmutfmt.h
file path=usr/include/unicode/translit.h
file path=usr/include/unicode/tzfmt.h
file path=usr/include/unicode/tznames.h
file path=usr/include/unicode/tzrule.h
file path=usr/include/unicode/tztrans.h
file path=usr/include/unicode/ubidi.h
file path=usr/include/unicode/ubiditransform.h
file path=usr/include/unicode/ubrk.h
file path=usr/include/unicode/ucal.h
file path=usr/include/unicode/ucasemap.h
file path=usr/include/unicode/ucat.h
file path=usr/include/unicode/uchar.h
file path=usr/include/unicode/ucharstrie.h
file path=usr/include/unicode/ucharstriebuilder.h
file path=usr/include/unicode/uchriter.h
file path=usr/include/unicode/uclean.h
file path=usr/include/unicode/ucnv.h
file path=usr/include/unicode/ucnv_cb.h
file path=usr/include/unicode/ucnv_err.h
file path=usr/include/unicode/ucnvsel.h
file path=usr/include/unicode/ucol.h
file path=usr/include/unicode/ucoleitr.h
file path=usr/include/unicode/uconfig.h
file path=usr/include/unicode/ucpmap.h
file path=usr/include/unicode/ucptrie.h
file path=usr/include/unicode/ucsdet.h
file path=usr/include/unicode/ucurr.h
file path=usr/include/unicode/udat.h
file path=usr/include/unicode/udata.h
file path=usr/include/unicode/udateintervalformat.h
file path=usr/include/unicode/udatpg.h
file path=usr/include/unicode/udisplaycontext.h
file path=usr/include/unicode/udisplayoptions.h
file path=usr/include/unicode/uenum.h
file path=usr/include/unicode/ufieldpositer.h
file path=usr/include/unicode/uformattable.h
file path=usr/include/unicode/uformattedvalue.h
file path=usr/include/unicode/ugender.h
file path=usr/include/unicode/uidna.h
file path=usr/include/unicode/uiter.h
file path=usr/include/unicode/uldnames.h
file path=usr/include/unicode/ulistformatter.h
file path=usr/include/unicode/uloc.h
file path=usr/include/unicode/ulocdata.h
file path=usr/include/unicode/umachine.h
file path=usr/include/unicode/umisc.h
file path=usr/include/unicode/umsg.h
file path=usr/include/unicode/umutablecptrie.h
file path=usr/include/unicode/unifilt.h
file path=usr/include/unicode/unifunct.h
file path=usr/include/unicode/unimatch.h
file path=usr/include/unicode/unirepl.h
file path=usr/include/unicode/uniset.h
file path=usr/include/unicode/unistr.h
file path=usr/include/unicode/unorm.h
file path=usr/include/unicode/unorm2.h
file path=usr/include/unicode/unum.h
file path=usr/include/unicode/unumberformatter.h
file path=usr/include/unicode/unumberrangeformatter.h
file path=usr/include/unicode/unumsys.h
file path=usr/include/unicode/uobject.h
file path=usr/include/unicode/upluralrules.h
file path=usr/include/unicode/uregex.h
file path=usr/include/unicode/uregion.h
file path=usr/include/unicode/ureldatefmt.h
file path=usr/include/unicode/urename.h
file path=usr/include/unicode/urep.h
file path=usr/include/unicode/ures.h
file path=usr/include/unicode/uscript.h
file path=usr/include/unicode/usearch.h
file path=usr/include/unicode/uset.h
file path=usr/include/unicode/usetiter.h
file path=usr/include/unicode/ushape.h
file path=usr/include/unicode/uspoof.h
file path=usr/include/unicode/usprep.h
file path=usr/include/unicode/ustdio.h
file path=usr/include/unicode/ustream.h
file path=usr/include/unicode/ustring.h
file path=usr/include/unicode/ustringtrie.h
file path=usr/include/unicode/utext.h
file path=usr/include/unicode/utf.h
file path=usr/include/unicode/utf16.h
file path=usr/include/unicode/utf32.h
file path=usr/include/unicode/utf8.h
file path=usr/include/unicode/utf_old.h
file path=usr/include/unicode/utmscale.h
file path=usr/include/unicode/utrace.h
file path=usr/include/unicode/utrans.h
file path=usr/include/unicode/utypes.h
file path=usr/include/unicode/uvernum.h
file path=usr/include/unicode/uversion.h
file path=usr/include/unicode/vtzone.h
file path=usr/lib/$(MACH64)/icu/$(HUMAN_VERSION)/Makefile.inc
file path=usr/lib/$(MACH64)/icu/$(HUMAN_VERSION)/pkgdata.inc
link path=usr/lib/$(MACH64)/icu/Makefile.inc target=current/Makefile.inc
link path=usr/lib/$(MACH64)/icu/current target=$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/icu/pkgdata.inc target=current/pkgdata.inc
link path=usr/lib/$(MACH64)/libicudata.so target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicudata.so.72 \
    target=libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicui18n.so target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicui18n.so.72 \
    target=libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so.72 \
    target=libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/pkgconfig/icu-i18n.pc
file path=usr/lib/$(MACH64)/pkgconfig/icu-io.pc
file path=usr/lib/$(MACH64)/pkgconfig/icu-uc.pc
file path=usr/lib/icu/$(HUMAN_VERSION)/Makefile.inc
file path=usr/lib/icu/$(HUMAN_VERSION)/pkgdata.inc
link path=usr/lib/icu/Makefile.inc target=current/Makefile.inc
link path=usr/lib/icu/current target=$(HUMAN_VERSION)
link path=usr/lib/icu/pkgdata.inc target=current/pkgdata.inc
link path=usr/lib/libicudata.so target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicudata.so.72 target=libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so.72 target=libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so.72 target=libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/pkgconfig/icu-i18n.pc
file path=usr/lib/pkgconfig/icu-io.pc
file path=usr/lib/pkgconfig/icu-uc.pc
file path=usr/sbin/escapesrc
file path=usr/sbin/genccode
file path=usr/sbin/gencmn
file path=usr/sbin/gennorm2
file path=usr/sbin/gensprep
file path=usr/sbin/icupkg
file path=usr/share/icu/$(HUMAN_VERSION)/LICENSE
file path=usr/share/icu/$(HUMAN_VERSION)/config/mh-solaris-gcc
file path=usr/share/icu/$(HUMAN_VERSION)/install-sh
file path=usr/share/icu/$(HUMAN_VERSION)/mkinstalldirs
file path=usr/share/man/man1/derb.1
file path=usr/share/man/man1/genbrk.1
file path=usr/share/man/man1/gencfu.1
file path=usr/share/man/man1/gencnval.1
file path=usr/share/man/man1/gendict.1
file path=usr/share/man/man1/genrb.1
file path=usr/share/man/man1/icu-config.1
file path=usr/share/man/man1/icuexportdata.1
file path=usr/share/man/man1/icuinfo.1
file path=usr/share/man/man1/makeconv.1
file path=usr/share/man/man1/pkgdata.1
file path=usr/share/man/man1/uconv.1
file path=usr/share/man/man8/genccode.8
file path=usr/share/man/man8/gencmn.8
file path=usr/share/man/man8/gennorm2.8
file path=usr/share/man/man8/gensprep.8
file path=usr/share/man/man8/icupkg.8
components/library/icu-72/patches/055-man-pages.patch
New file
@@ -0,0 +1,470 @@
#
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
#
Description: supply manual page for program that doesn't have one
Author: Jay Berkenbilt <qjb@debian.org>
https://unicode-org.atlassian.net/browse/ICU-7665
https://unicode-org.atlassian.net/browse/ICU-7554
--- /dev/null
+++ icu/source/tools/gennorm2/Makefile.in.orig
@@ -0,0 +1,81 @@
+## Makefile.in for ICU - tools/gennorm2
+## Copyright (C) 2016 and later: Unicode, Inc. and others.
+## License & terms of use: http://www.unicode.org/copyright.html
+## Copyright (c) 2009-2011, International Business Machines Corporation and
+## others. All Rights Reserved.
+## Steven R. Loomis/Markus W. Scherer
+
+## Source directory information
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+
+top_builddir = ../..
+
+include $(top_builddir)/icudefs.mk
+
+## Build directory information
+subdir = tools/gennorm2
+
+TARGET_STUB_NAME = gennorm2
+
+## Extra files to remove for 'make clean'
+CLEANFILES = *~ $(DEPS)
+
+## Target information
+TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
+
+CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(srcdir)/../toolutil
+LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
+
+OBJECTS = gennorm2.o n2builder.o
+
+DEPS = $(OBJECTS:.o=.d)
+
+## List of phony targets
+.PHONY : all all-local install install-local clean clean-local    \
+distclean distclean-local dist dist-local check check-local install-man
+
+## Clear suffix list
+.SUFFIXES :
+
+## List of standard targets
+all: all-local
+install: install-local
+clean: clean-local
+distclean : distclean-local
+dist: dist-local
+check: all check-local
+
+all-local: $(TARGET)
+
+install-local: all-local
+    $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
+    $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
+
+dist-local:
+
+clean-local:
+    test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
+    $(RMV) $(TARGET) $(OBJECTS)
+
+distclean-local: clean-local
+    $(RMV) Makefile
+
+check-local: all-local
+
+Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
+    cd $(top_builddir) \
+     && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+$(TARGET) : $(OBJECTS)
+    $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
+    $(POST_BUILD_STEP)
+
+
+ifeq (,$(MAKECMDGOALS))
+-include $(DEPS)
+else
+ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
+-include $(DEPS)
+endif
+endif
--- icu/source/tools/gennorm2/Makefile.in.orig
+++ icu/source/tools/gennorm2/Makefile.in
@@ -18,8 +18,13 @@
 TARGET_STUB_NAME = gennorm2
+SECTION = 8
+
+MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
+
+
 ## Extra files to remove for 'make clean'
-CLEANFILES = *~ $(DEPS)
+CLEANFILES = *~ $(DEPS) $(MAN_FILES)
 ## Target information
 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
@@ -47,12 +52,16 @@
 dist: dist-local
 check: all check-local
-all-local: $(TARGET)
+all-local: $(TARGET) $(MAN_FILES)
-install-local: all-local
+install-local: all-local install-man
     $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
     $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
+install-man: $(MAN_FILES)
+    $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
+    $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
+
 dist-local:
 clean-local:
@@ -73,6 +82,11 @@
     $(POST_BUILD_STEP)
+%.$(SECTION): $(srcdir)/%.$(SECTION).in
+    cd $(top_builddir) \
+     && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+
 ifeq (,$(MAKECMDGOALS))
 -include $(DEPS)
 else
--- /dev/null
+++ icu/source/tools/gennorm2/gennorm2.8.in
@@ -0,0 +1,71 @@
+.\" Hey, Emacs! This is -*-nroff-*- you know...
+.\"
+.\" gennorm2.8: manual page for the gennorm2 utility
+.\"
+.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
+.\"
+.TH GENNORM2 8 "15 March 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
+.SH NAME
+.B gennorm2
+\- Builds binary data file with Unicode normalization data.
+.SH SYNOPSIS
+.B gennorm2
+[
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
+]
+[
+.BR "\-V\fP, \fB\-\-version"
+]
+[
+.BR "\-c\fP, \fB\-\-copyright"
+]
+[
+.BR "\-v\fP, \fB\-\-verbose"
+]
+[
+.BI "\-u\fP, \fB\-\-unicode" " unicode\-version\-number"
+]
+[
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
+]
+[
+.BI "\-o\fP, \fB\-\-output" " output\-filename"
+]
+.BI "\fB\-\-fast"
+.SH DESCRIPTION
+.B gennorm2
+reads text files that define Unicode normalization,
+them, and builds a binary data file.
+.SH OPTIONS
+.TP
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
+Print help about usage and exit.
+.TP
+.BR "\-V\fP, \fB\-\-version"
+Print the version of
+.B gennorm2
+and exit.
+.TP
+.BR "\-c\fP, \fB\-\-copyright"
+Include a copyright notice.
+.TP
+.BR "\-v\fP, \fB\-\-verbose"
+Display extra informative messages during execution.
+.TP
+.BR "\-u\fP, \fB\-\-unicode"
+Specify Unicode version number, such as 5.2.0.
+.TP
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
+Specify the input directory.
+.TP
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
+Set the name of the output file.
+.TP
+.BI "\fB\-\-fast"
+optimize the .nrm file for fast normalization,
+which might increase its size  (Writes fully decomposed
+regular mappings instead of delta mappings.
+You should measure the runtime speed to make sure that
+this is a good trade-off.)
+.SH COPYRIGHT
+Copyright (C) 2009-2010 International Business Machines Corporation and others
--- /dev/null
+++ icu/source/tools/icuinfo/Makefile.in.orig
@@ -0,0 +1,115 @@
+## Makefile.in for ICU - tools/icuinfo
+## Copyright (C) 2016 and later: Unicode, Inc. and others.
+## License & terms of use: http://www.unicode.org/copyright.html
+## Copyright (c) 1999-2015, International Business Machines Corporation and
+## others. All Rights Reserved.
+## Madhu Katragadda
+
+## Source directory information
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+
+top_builddir = ../..
+
+include $(top_builddir)/icudefs.mk
+
+## Build directory information
+subdir = tools/icuinfo
+
+## Extra files to remove for 'make clean'
+CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
+
+## Target information
+TARGET = icuinfo$(EXEEXT)
+
+CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools/ctestfw
+CPPFLAGS+= -I$(top_srcdir)/i18n
+LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
+
+OBJECTS = icuinfo.o
+@PLUGINS_TRUE@PLUGIN_OBJECTS = testplug.o
+
+DEPS = $(OBJECTS:.o=.d)
+
+# pass some information
+
+ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v -K
+
+## List of phony targets
+.PHONY : all all-local install install-local clean clean-local        \
+distclean distclean-local dist dist-local check check-local plugin-check
+
+## Clear suffix list
+.SUFFIXES :
+
+## List of standard targets
+all: all-local
+install: install-local
+clean: clean-local
+distclean : distclean-local
+dist: dist-local
+check: all check-local
+
+all-local: $(TARGET)
+
+install-local: all-local
+    $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
+    $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
+
+dist-local:
+
+clean-local:
+    test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
+    $(RMV) $(TARGET) $(OBJECTS)
+
+distclean-local: clean-local
+    $(RMV) Makefile
+
+check-local: $(TARGET)
+    $(INVOKE) ./$(TARGET) $(ICUINFO_OPTS)
+
+Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
+    cd $(top_builddir) \
+     && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+-include Makefile.local
+
+$(TARGET) : $(OBJECTS)
+    $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
+    $(POST_BUILD_STEP)
+
+PLUGIN=$(LIBPREFIX)plugin.$(SO)
+SO_TARGET=$(PLUGIN)
+
+PLUGINDIR=$(shell pwd)
+
+PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt
+
+CFLAGS+=$(SHAREDLIBCFLAGS)
+
+@PLUGINS_TRUE@HAVE_PLUGINS=yes
+
+ifeq ($(HAVE_PLUGINS),yes)
+$(PLUGINFILE): Makefile
+    echo "$(CURR_FULL_DIR)/$(PLUGIN)    myPlugin    x=4" > $@
+
+
+$(PLUGIN): $(PLUGIN_OBJECTS)
+    $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
+
+plugin: $(PLUGIN)
+
+plugin-check: $(PLUGIN) $(PLUGINFILE)
+    $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L
+else
+plugin plugin-check $(PLUGIN):
+    @echo "Plugins are disabled (use --enable-plugins to enable)"
+endif
+
+ifeq (,$(MAKECMDGOALS))
+-include $(DEPS)
+else
+ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
+-include $(DEPS)
+endif
+endif
+
--- icu/source/tools/icuinfo/Makefile.in.orig
+++ icu/source/tools/icuinfo/Makefile.in
@@ -16,8 +16,15 @@
 ## Build directory information
 subdir = tools/icuinfo
+TARGET_STUB_NAME = icuinfo
+
+SECTION = 1
+
+MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
+
+
 ## Extra files to remove for 'make clean'
-CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
+CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) $(MAN_FILES)
 ## Target information
 TARGET = icuinfo$(EXEEXT)
@@ -39,7 +46,8 @@
 ## List of phony targets
 .PHONY : all all-local install install-local clean clean-local        \
-distclean distclean-local dist dist-local check check-local plugin-check
+distclean distclean-local dist dist-local check check-local plugin-check \
+install-man
 ## Clear suffix list
 .SUFFIXES :
@@ -52,12 +60,16 @@
 dist: dist-local
 check: all check-local
-all-local: $(TARGET)
+all-local: $(TARGET) $(MAN_FILES)
-install-local: all-local
+install-local: all-local install-man
     $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
     $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
+install-man: $(MAN_FILES)
+    $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
+    $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
+
 dist-local:
 clean-local:
@@ -107,6 +119,9 @@
     @echo "Plugins are disabled (use --enable-plugins to enable)"
 endif
+%.$(SECTION): $(srcdir)/%.$(SECTION).in
+    cd $(top_builddir) \
+     && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 ifeq (,$(MAKECMDGOALS))
 -include $(DEPS)
 else
--- /dev/null
+++ icu/source/tools/icuinfo/icuinfo.1.in
@@ -0,0 +1,76 @@
+.\" Hey, Emacs! This is -*-nroff-*- you know...
+.\"
+.\" icuinfo.1: manual page for the icuinfo utility
+.\"
+.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
+.\"
+.TH ICUINFO 1 "1 May 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
+.SH NAME
+.B icuinfo
+\- Shows some basic info about the current ICU
+.SH SYNOPSIS
+.B icuinfo
+[
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
+]
+[
+.BR "\-V\fP, \fB\-\-version"
+]
+[
+.BR "\-c\fP, \fB\-\-copyright"
+]
+[
+.BI "\-i\fP, \fB\-\-icudatadir" " directory"
+]
+[
+.BR "\-v\fP, \fB\-\-verbose"
+]
+[
+.BI "\-L\fP, \fB\-\-list-plugins"
+]
+[
+.BI "\-m\fP, \fB\-\-milisecond-time"
+]
+[
+.BI "\-K\fP, \fB\-\-cleanup"
+]
+.SH DESCRIPTION
+.B icuinfo
+prints basic information about the current version of ICU.
+.SH OPTIONS
+.TP
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
+Print help about usage and exit.
+.TP
+.BR "\-V\fP, \fB\-\-version"
+Print the version of
+.B icuinfo
+and exit.
+.TP
+.BR "\-c\fP, \fB\-\-copyright"
+Embeds the standard ICU copyright into the
+.IR output-file .
+.TP
+.BR "\-v\fP, \fB\-\-verbose"
+Display extra informative messages during execution.
+.TP
+.BI "\-i\fP, \fB\-\-icudatadir" " directory"
+Look for any necessary ICU data files in
+.IR directory .
+For example, the file
+.B pnames.icu
+must be located when ICU's data is not built as a shared library.
+The default ICU data directory is specified by the environment variable
+.BR ICU_DATA .
+Most configurations of ICU do not require this argument.
+.TP
+.BI "\-L\fP, \fB\-\-list-plugins"
+If specified, list and diagnose issues with ICU plugins.
+.TP
+.BI "\-K\fP, \fB\-\-cleanup"
+Attempt to unload plugins before exiting.
+.TP
+.BI "\-m\fP, \fB\-\-milisecond-time"
+Print the current UTC time in milliseconds.
+.SH COPYRIGHT
+Copyright (C) 2010 International Business Machines Corporation and others
components/library/icu-72/patches/090-source-i18n-udat.cpp.patch
New file
@@ -0,0 +1,19 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
Prevent access to uninitialized memory in udat_getSymbols
https://unicode-org.atlassian.net/browse/ICU-12375
--- icu/source/i18n/udat.cpp.orig
+++ icu/source/i18n/udat.cpp
@@ -744,6 +744,10 @@
         res = syms->getZodiacNames(count, DateFormatSymbols::FORMAT, DateFormatSymbols::NARROW);
         break;
+    default:
+    *status = U_UNSUPPORTED_ERROR;
+    return 0;
+
     }
     if(index < count) {
components/library/icu-72/patches/092-source-i18n-zonemeta.cpp.patch
New file
@@ -0,0 +1,42 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
Add NULL checks for TimeZone::createTimeZoneIDEnumeration calls
https://unicode-org.atlassian.net/browse/ICU-12377
--- icu/source/i18n/dtfmtsym.cpp.orig
+++ icu/source/i18n/dtfmtsym.cpp
@@ -1295,6 +1295,10 @@
     do { // dummy do-while
         tzids = TimeZone::createTimeZoneIDEnumeration(ZONE_SET, NULL, NULL, status);
+       if (tzids == NULL) {
+               status = U_MEMORY_ALLOCATION_ERROR;
+               break;
+       }
         rows = tzids->count(status);
         if (U_FAILURE(status)) {
             break;
--- icu/source/i18n/zonemeta.cpp.orig
+++ icu/source/i18n/zonemeta.cpp
@@ -456,12 +456,14 @@
             u_UCharsToChars(region, regionBuf, 2);
             StringEnumeration *ids = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, regionBuf, NULL, status);
-            int32_t idsLen = ids->count(status);
-            if (U_SUCCESS(status) && idsLen == 1) {
-                // only the single zone is available for the region
-                singleZone = true;
-            }
-            delete ids;
+           if (ids != NULL) {
+               int32_t idsLen = ids->count(status);
+               if (U_SUCCESS(status) && idsLen == 1) {
+                       // only the single zone is available for the region
+                       singleZone = true;
+               }
+               delete ids;
+           }
             // Cache the result
             umtx_lock(&gZoneMetaLock);
components/library/icu-72/patches/093-source-common-unisetspan.cpp.patch
New file
@@ -0,0 +1,35 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
Add NULL checks to getBuffer calls
https://unicode-org.atlassian.net/browse/ICU-12378
--- icu/source/common/unisetspan.cpp.orig
+++ icu/source/common/unisetspan.cpp
@@ -660,6 +660,8 @@
                 }
                 const UnicodeString &string=*(const UnicodeString *)strings.elementAt(i);
                 const UChar *s16=string.getBuffer();
+        if (s16 == NULL)
+            continue;
                 int32_t length16=string.length();
                 U_ASSERT(length>0);
@@ -1373,6 +1375,8 @@
             }
             const UnicodeString &string=*(const UnicodeString *)strings.elementAt(i);
             const UChar *s16=string.getBuffer();
+        if (s16 == NULL)
+        continue;
             int32_t length16=string.length();
             U_ASSERT(length>0);
             if(length16<=rest && matches16CPB(s, pos, length, s16, length16)) {
@@ -1417,6 +1421,8 @@
             }
             const UnicodeString &string=*(const UnicodeString *)strings.elementAt(i);
             const UChar *s16=string.getBuffer();
+        if (s16 == NULL)
+        continue;
             int32_t length16=string.length();
             U_ASSERT(length>0);
             if(length16<=pos && matches16CPB(s, pos-length16, length, s16, length16)) {
components/library/icu-72/patches/094-source-i18n-tzfmt.cpp.patch
New file
@@ -0,0 +1,20 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
Prevent buffer overflow in TimeZoneFormat::parse
https://unicode-org.atlassian.net/browse/ICU-12375
--- icu/source/i18n/tzfmt.cpp.orig
+++ icu/source/i18n/tzfmt.cpp
@@ -1094,6 +1094,11 @@
             }
             break;
         }
+    default:
+    {
+        pos.setErrorIndex(startIdx);
+        return NULL;
+    }
     }
     evaluated |= STYLE_PARSE_FLAGS[style];
components/library/icu-72/patches/101-source-common-uts46.cpp.patch
New file
@@ -0,0 +1,22 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
Add NULL checks to getBuffer calls
https://unicode-org.atlassian.net/browse/ICU-12378
--- icu/source/common/uts46.cpp.orig
+++ icu/source/common/uts46.cpp
@@ -934,7 +934,12 @@
     UBool disallowNonLDHDot=(options&UIDNA_USE_STD3_RULES)!=0;
     UBool isASCII=true;
     UBool onlyLDH=true;
-    const UChar *label=dest.getBuffer()+labelStart;
+    const UChar *l=dest.getBuffer();
+    if(l==NULL) {
+        info.labelErrors|=UIDNA_ERROR_LABEL_TOO_LONG;
+        return 0;
+    }
+    const UChar *label=l+labelStart;
     const UChar *limit=label+labelLength;
     // Start after the initial "xn--".
     // Ok to cast away const because we own the UnicodeString.
components/library/icu-72/patches/106-source-extra-uconv-uconv.cpp.patch
New file
@@ -0,0 +1,40 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
Add NULL checks to getBuffer calls and catch a potential file leak
https://unicode-org.atlassian.net/browse/ICU-12378
--- icu/source/extra/uconv/uconv.cpp.orig
+++ icu/source/extra/uconv/uconv.cpp
@@ -445,7 +445,10 @@
         }
     }
-    const UChar *u = s.getBuffer(), *limit = u + s.length();
+    const UChar *u = s.getBuffer();
+    if (u == NULL)
+    return -1;
+    const UChar *limit = u + s.length();
     UChar c;
     while (u < limit) {
@@ -1348,6 +1351,7 @@
     cf.setBufferSize(bufsz);
+    try {
     if(remainArgv < remainArgvLimit) {
         for (iter = remainArgv; iter != remainArgvLimit; iter++) {
             if (!cf.convertFile(
@@ -1367,6 +1371,11 @@
             goto error_exit;
         }
     }
+    }
+    catch (int e)
+    {
+        goto error_exit;
+    }
     goto normal_exit;
 error_exit:
components/library/icu-72/patches/133-source-i18n-region.cpp.patch
New file
@@ -0,0 +1,18 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#
prevent a null pointer dereference
--- icu/source/i18n/region.cpp.orig
+++ icu/source/i18n/region.cpp
@@ -514,6 +514,10 @@
     if ( r->fType == URGN_DEPRECATED && r->preferredValues->size() == 1) {
         StringEnumeration *pv = r->getPreferredValues(status);
+    if ( U_FAILURE(status) ) {
+        delete r;
+        return NULL;
+    }
         pv->reset(status);
         const UnicodeString *ustr = pv->snext(status);
         r = (Region *)uhash_get(regionIDMap,(void *)ustr);
components/library/icu-72/patches/135-source-common-unistr.cpp.patch
New file
@@ -0,0 +1,18 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#
getBuffer handling is tracked upstream as
https://unicode-org.atlassian.net/browse/ICU-12378
--- icu/source/common/unistr.cpp.orig
+++ icu/source/common/unistr.cpp
@@ -627,6 +627,9 @@
         return result;
     }
     const UChar *array = getBuffer();
+    if ( array == NULL ) {
+        return result;
+    }
     int32_t len = length();
     int32_t prev = 0;
     for (int32_t i=0;;) {
components/library/icu-72/patches/136-source-common-caniter.cpp.patch
New file
@@ -0,0 +1,19 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#
getBuffer handling is tracked upstream as
https://unicode-org.atlassian.net/browse/ICU-12378
--- icu/source/common/caniter.cpp.orig
+++ icu/source/common/caniter.cpp
@@ -518,6 +518,10 @@
         return NULL;
     }
     const UChar *decomp=decompString.getBuffer();
+    if ( decomp == NULL ) {
+        status = U_MEMORY_ALLOCATION_ERROR;
+        return NULL;
+    }
     int32_t decompLen=decompString.length();
     // See if it matches the start of segment (at segmentPos)
components/library/icu-72/patches/137-source-tools-genrb-reslist.cpp.patch
New file
@@ -0,0 +1,25 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#
getBuffer handling is tracked upstream as
https://unicode-org.atlassian.net/browse/ICU-12378
--- icu/source/tools/genrb/reslist.cpp.orig
+++ icu/source/tools/genrb/reslist.cpp
@@ -1507,8 +1507,16 @@
     const StringResource *left = *((const StringResource **)l);
     const StringResource *right = *((const StringResource **)r);
     const UChar *lStart = left->getBuffer();
+    if ( lStart == NULL ) {
+        fprintf(stderr, "Could not allocate memory!!");
+        exit(U_MEMORY_ALLOCATION_ERROR);
+    }
     const UChar *lLimit = lStart + left->length();
     const UChar *rStart = right->getBuffer();
+    if ( rStart == NULL ) {
+        fprintf(stderr, "Could not allocate memory!!");
+        exit(U_MEMORY_ALLOCATION_ERROR);
+    }
     const UChar *rLimit = rStart + right->length();
     int32_t diff;
     /* compare keys in reverse character order */
components/library/icu-72/patches/139-source-tools-toolutil-pkg_genc.cpp.patch
New file
@@ -0,0 +1,17 @@
#
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
#
to silence a SPARC specific build warning
https://unicode-org.atlassian.net/browse/ICU-13265
--- icu/source/tools/toolutil/pkg_genc.cpp.orig
+++ icu/source/tools/toolutil/pkg_genc.cpp
@@ -581,7 +581,7 @@
         /* This creates a 32-bit field */
 #if U_IS_BIG_ENDIAN
-        for (i = 0; i < sizeof(uint32_t); i++)
+        for (i = 0; i < (int)sizeof(uint32_t); i++)
 #else
         for (i = sizeof(uint32_t)-1; i >= 0 ; i--)
 #endif
components/library/icu-72/patches/143-source-test-intltest-convtest.cpp.patch
New file
@@ -0,0 +1,23 @@
reported upstream as
https://unicode-org.atlassian.net/projects/ICU/issues/ICU-20236
--- icu/source/test/intltest/convtest.cpp.orig
+++ icu/source/test/intltest/convtest.cpp
@@ -744,7 +744,7 @@
     assertEquals("overflow", U_BUFFER_OVERFLOW_ERROR, errorCode.reset());
     length = (int32_t)(target - result);
     assertEquals("number of bytes written", 2, length);
-    assertEquals("next byte not clobbered", 5, result[2]);
+    assertEquals("next byte not clobbered", 5, (int)result[2]);
     // Convert the rest and flush.
     ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(),
@@ -777,7 +777,7 @@
     assertEquals("text2 overflow", U_BUFFER_OVERFLOW_ERROR, errorCode.reset());
     length = (int32_t)(target - result);
     assertEquals("text2 number of bytes written", 3, length);
-    assertEquals("text2 next byte not clobbered", 5, result[3]);
+    assertEquals("text2 next byte not clobbered", 5, (int)result[3]);
     // Convert the rest and flush.
     ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(),
components/library/icu-72/patches/148-source-common-unicode-uconfig.h.patch
components/library/icu-72/patches/152-source-test-intltest-strtest.cpp.patch
New file
@@ -0,0 +1,31 @@
fix build failure. Reported in
https://unicode-org.atlassian.net/projects/ICU/issues/ICU-20236
--- icu/source/test/intltest/strtest.cpp.orig
+++ icu/source/test/intltest/strtest.cpp
@@ -538,9 +538,9 @@
     StringPiece abc3(u8"abcdef", 3);
     assertEquals("abc3.length", 3, abc3.length());
-    assertEquals("abc3[0]", 0x61, abc3.data()[0]);
-    assertEquals("abc3[1]", 0x62, abc3.data()[1]);
-    assertEquals("abc3[2]", 0x63, abc3.data()[2]);
+    assertEquals("abc3[0]", 0x61, (int)abc3.data()[0]);
+    assertEquals("abc3[1]", 0x62, (int)abc3.data()[1]);
+    assertEquals("abc3[2]", 0x63, (int)abc3.data()[2]);
     StringPiece uvw("q");
     uvw.set(u8"uvw");
@@ -550,9 +550,9 @@
     StringPiece xyz("r");
     xyz.set(u8"xyzXYZ", 3);
     assertEquals("xyz.length", 3, xyz.length());
-    assertEquals("xyz[0]", 0x78, xyz.data()[0]);
-    assertEquals("xyz[1]", 0x79, xyz.data()[1]);
-    assertEquals("xyz[2]", 0x7a, xyz.data()[2]);
+    assertEquals("xyz[0]", 0x78, (int)xyz.data()[0]);
+    assertEquals("xyz[1]", 0x79, (int)xyz.data()[1]);
+    assertEquals("xyz[2]", 0x7a, (int)xyz.data()[2]);
     StringPiece null(nullptr);
     assertTrue("null is empty", null.empty());
components/library/icu-72/patches/154-icu-source-common-umutex.cpp.patch
New file
@@ -0,0 +1,110 @@
Note that programs that link ICU library may crash
because std::call_once cannot handle C++ exceptions.
The reason is that GCC's implementation calls pthread_once
that is not C++ exception aware at least in Solaris libc.
To workaround this issue, a simple implementation based
on C++11 atomic operations and variadic templates is provided.
This way we avoid that C++ exception is thrown in libc library.
Note that the implementation is far from optimal with respect
to the performance, for example, the following could be improved:
1) use a condition variable instead of yield if thread contention is high
2) utilize C++11 memory model to reduce synchronization overhead
However, the workaround is temporary as an untested patch is available on GCC's bugzilla:
https://gcc.gnu.org/pipermail/gcc-patches/2020-November/557928.html
The patch is not suitable for upstream.
It only fixes the problem in ICU library.
--- icu/source/common/umutex.cpp.orig
+++ icu/source/common/umutex.cpp
@@ -26,6 +26,7 @@
 #include "uassert.h"
 #include "ucln_cmn.h"
 #include "cmemory.h"
+#include <thread>
 U_NAMESPACE_BEGIN
@@ -51,21 +52,54 @@
 // Used when ICU implementation code passes nullptr for the mutex pointer.
 UMutex globalMutex;
+#if defined(sun) || defined(__sun) || defined(__sun__)
+enum class CallOnceState : int {
+  INIT, RUNNING, FINISH
+};
+
+std::atomic<CallOnceState> initState;
+#else
 std::once_flag initFlag;
 std::once_flag *pInitFlag = &initFlag;
-
+#endif
 }  // Anonymous namespace
+#if defined(sun) || defined(__sun) || defined(__sun__)
+template <class Callable, class... Args>
+void solaris_call_once(std::atomic<CallOnceState>& state, Callable&& fce, Args&&... args) {
+  if (state != CallOnceState::FINISH)  {
+    do {
+      CallOnceState expected = CallOnceState::INIT, desired = CallOnceState::RUNNING;
+      if (state.compare_exchange_strong(expected, desired)) {
+        try {
+          fce(std::forward<Args>(args)...);
+          state = CallOnceState::FINISH;
+        } catch (...) {
+          state = CallOnceState::INIT;
+          throw;
+        }
+      } else {
+        std::this_thread::yield();
+      }
+    } while (state != CallOnceState::FINISH);
+  }
+}
+#endif
+
 U_CDECL_BEGIN
 static UBool U_CALLCONV umtx_cleanup() {
     initMutex->~mutex();
     initCondition->~condition_variable();
     UMutex::cleanup();
+    #if defined(sun) || defined(__sun) || defined(__sun__)
+    initState = CallOnceState::INIT;
+    #else
     // Reset the once_flag, by destructing it and creating a fresh one in its place.
     // Do not use this trick anywhere else in ICU; use umtx_initOnce, not std::call_once().
     pInitFlag->~once_flag();
     pInitFlag = new(&initFlag) std::once_flag();
+    #endif
     return true;
 }
@@ -80,7 +114,11 @@
 std::mutex *UMutex::getMutex() {
     std::mutex *retPtr = fMutex.load(std::memory_order_acquire);
     if (retPtr == nullptr) {
+        #if defined(sun) || defined(__sun) || defined(__sun__)
+        solaris_call_once(initState, umtx_init);
+        #else
         std::call_once(*pInitFlag, umtx_init);
+        #endif
         std::lock_guard<std::mutex> guard(*initMutex);
         retPtr = fMutex.load(std::memory_order_acquire);
         if (retPtr == nullptr) {
@@ -143,7 +181,11 @@
 //
 U_COMMON_API UBool U_EXPORT2
 umtx_initImplPreInit(UInitOnce &uio) {
+    #if defined(sun) || defined(__sun) || defined(__sun__)
+    solaris_call_once(initState, umtx_init);
+    #else
     std::call_once(*pInitFlag, umtx_init);
+    #endif
     std::unique_lock<std::mutex> lock(*initMutex);
     if (umtx_loadAcquire(uio.fState) == 0) {
         umtx_storeRelease(uio.fState, 1);
components/library/icu-72/patches/200-maint-72-ICU-22193_fix_some_CI_test_failures.patch
components/library/icu-72/patches/201-maint-72-ICU-22270_icuexportdata_Add_property_and_property_value.patch
components/library/icu-72/patches/202-maint-72-ICU-22251_Move_sprintf_to_snprintf.patch
components/library/icu-72/patches/203-maint-72-ICU-22270_Add_support_for_General_Category_Mask_in_icuexport.patch
components/library/icu-72/patches/204-maint-72-ICU-22270_Use_hex_for_mask_properties.patch
components/library/icu-72/patches/205-maint-72-ICU-22270_expose_uproperty_values_in_icuexportdata.patch
components/library/icu-72/patches/206-maint-72-ICU-22256_Add_helper_code_to_dump_Bidi_Mirroring_Glyph_data.patch
components/library/icu-72/patches/207-maint-72-ICU-22270_Fix_hex_number_formatting_in_icuexportdata.patch
components/library/icu-72/pkg5
New file
@@ -0,0 +1,12 @@
{
    "dependencies": [
        "system/library",
        "system/library/g++-13-runtime",
        "system/library/gcc-13-runtime",
        "system/library/math"
    ],
    "fmris": [
        "library/icu"
    ],
    "name": "icu"
}
components/library/icu-72/test/results-all.master
New file
@@ -0,0 +1,2 @@
All tests OK:  testdata intltest iotest cintltst
PASS: config selfcheck OK
components/library/icu/Makefile
@@ -20,18 +20,21 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        icu
COMPONENT_VERSION =        72.1
COMPONENT_REVISION =        3
COMPONENT_VERSION =        74.2
COMPONENT_SUMMARY =        International Components for Unicode
COMPONENT_SRC =            $(COMPONENT_NAME)
COMPONENT_ARCHIVE =        icu4c-$(subst .,_,$(HUMAN_VERSION))-src.tgz
COMPONENT_ARCHIVE_HASH =    sha256:a2d2d38217092a7ed56635e34467f92f976b370e20182ad325edea6681a71d68
COMPONENT_ARCHIVE_HASH =    sha256:5e4fb11d6a3e6b85afb55de8da8a71538f1d8fd64fce893986b37d60e5bb0091
COMPONENT_PROJECT_URL =        https://icu.unicode.org/
COMPONENT_ARCHIVE_URL =        https://github.com/unicode-org/icu/releases/download/release-$(subst .,-,$(HUMAN_VERSION))/$(COMPONENT_ARCHIVE)
COMPONENT_FMRI =        library/icu
COMPONENT_VERSION_MAJOR =    $(word 1,$(subst ., ,$(HUMAN_VERSION)))
COMPONENT_FMRI =        library/icu-$(COMPONENT_VERSION_MAJOR)
COMPONENT_CLASSIFICATION =    System/Internationalization
COMPONENT_LICENSE =        ICU
COMPONENT_LICENSE_FILE =    LICENSE
COMPONENT_FMRI.library-32 =    $(COMPONENT_FMRI)/32
COMPONENT_SUMMARY.library-32 =    $(COMPONENT_SUMMARY) (32-bit)
COMPONENT_FMRI.developer =    developer/icu
COMPONENT_SUMMARY.developer =    $(COMPONENT_SUMMARY) (development files)
@@ -41,30 +44,29 @@
# Testing expects GNU diff in PATH
PATH = $(PATH.gnu)
# Workaround for https://unicode-org.atlassian.net/browse/ICU-22632
COMPONENT_POST_UNPACK_ACTION += \
    $(RM) $(SOURCE_DIR)/LICENSE ; \
    $(CP) $(COMPONENT_DIR)/files/LICENSE $(SOURCE_DIR) ;
COMPONENT_BUILD_TARGETS = all
CONFIGURE_SCRIPT = $(SOURCE_DIR)/source/runConfigureICU
CONFIGURE_OPTIONS = Solaris/GCC
CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += --with-data-packaging=library
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-samples
CONFIGURE_OPTIONS += --disable-renaming
CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
CFLAGS += -D__EXTENSIONS__ -DDECCHECK -D_XOPEN_SOURCE=600
CXXFLAGS += -D__EXTENSIONS__ -DDECCHECK -D_XOPEN_SOURCE=600 -std=c++11
COMPONENT_POST_CONFIGURE_ACTION = \
    (echo 'CPPFLAGS += -DICU_DATA_DIR=\"$(CONFIGURE_PREFIX)/share/icu/$(COMPONENT_VERSION)\"' >> $(@D)/icudefs.mk )
CONFIGURE_OPTIONS += --enable-renaming
# Install additional man pages
COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -d $(PROTOUSRSHAREMANDIR)/man3lib ;
COMPONENT_POST_INSTALL_ACTION += \
    $(INSTALL) -d $(PROTOUSRSHAREMANDIR)/man3lib ; \
    for f in $(COMPONENT_DIR)/files/*.3lib ; do \
        $(INSTALL) $$f $(PROTOUSRSHAREMANDIR)/man3lib/$$(basename $$f) ; \
        $(GSED) -i -e 's/\$$(HUMAN_VERSION)/$(HUMAN_VERSION)/g' $(PROTOUSRSHAREMANDIR)/man3lib/$$(basename $$f) ; \
@@ -77,6 +79,11 @@
    '-e "/^All tests OK:  testdata intltest iotest cintltst/p" ' \
    '-e "/^PASS: config selfcheck OK/p" '
# Replace COMPONENT_VERSION_MAJOR in library symlink path
GENERATE_EXTRA_CMD += | \
    $(GSED) -e 's|^\(link .*path=usr/lib/.*lib.*\.so\.\)$(COMPONENT_VERSION_MAJOR) |\1$$(COMPONENT_VERSION_MAJOR) |'
PKG_MACROS += COMPONENT_VERSION_MAJOR=$(COMPONENT_VERSION_MAJOR)
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
components/library/icu/README
File was deleted
components/library/icu/developer.p5m
@@ -89,6 +89,7 @@
file path=usr/include/unicode/filteredbrk.h
file path=usr/include/unicode/fmtable.h
file path=usr/include/unicode/format.h
file path=usr/include/unicode/formattednumber.h
file path=usr/include/unicode/formattedvalue.h
file path=usr/include/unicode/fpositer.h
file path=usr/include/unicode/gender.h
@@ -134,6 +135,7 @@
file path=usr/include/unicode/search.h
file path=usr/include/unicode/selfmt.h
file path=usr/include/unicode/simpleformatter.h
file path=usr/include/unicode/simplenumberformatter.h
file path=usr/include/unicode/simpletz.h
file path=usr/include/unicode/smpdtfmt.h
file path=usr/include/unicode/sortkey.h
@@ -185,6 +187,7 @@
file path=usr/include/unicode/uenum.h
file path=usr/include/unicode/ufieldpositer.h
file path=usr/include/unicode/uformattable.h
file path=usr/include/unicode/uformattednumber.h
file path=usr/include/unicode/uformattedvalue.h
file path=usr/include/unicode/ugender.h
file path=usr/include/unicode/uidna.h
@@ -192,6 +195,8 @@
file path=usr/include/unicode/uldnames.h
file path=usr/include/unicode/ulistformatter.h
file path=usr/include/unicode/uloc.h
file path=usr/include/unicode/ulocale.h
file path=usr/include/unicode/ulocbuilder.h
file path=usr/include/unicode/ulocdata.h
file path=usr/include/unicode/umachine.h
file path=usr/include/unicode/umisc.h
@@ -207,6 +212,7 @@
file path=usr/include/unicode/unorm2.h
file path=usr/include/unicode/unum.h
file path=usr/include/unicode/unumberformatter.h
file path=usr/include/unicode/unumberoptions.h
file path=usr/include/unicode/unumberrangeformatter.h
file path=usr/include/unicode/unumsys.h
file path=usr/include/unicode/uobject.h
@@ -222,6 +228,7 @@
file path=usr/include/unicode/uset.h
file path=usr/include/unicode/usetiter.h
file path=usr/include/unicode/ushape.h
file path=usr/include/unicode/usimplenumberformatter.h
file path=usr/include/unicode/uspoof.h
file path=usr/include/unicode/usprep.h
file path=usr/include/unicode/ustdio.h
@@ -250,7 +257,12 @@
link path=usr/lib/$(MACH64)/libicui18n.so target=libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so.$(COMPONENT_VERSION_MAJOR) \
    target=libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so.$(COMPONENT_VERSION_MAJOR) target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/pkgconfig/icu-i18n.pc
file path=usr/lib/$(MACH64)/pkgconfig/icu-io.pc
@@ -264,7 +276,11 @@
link path=usr/lib/libicui18n.so target=libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so.$(COMPONENT_VERSION_MAJOR) target=libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so.$(COMPONENT_VERSION_MAJOR) target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/pkgconfig/icu-i18n.pc
file path=usr/lib/pkgconfig/icu-io.pc
components/library/icu/files/LICENSE
New file
@@ -0,0 +1,512 @@
UNICODE LICENSE V3
COPYRIGHT AND PERMISSION NOTICE
Copyright Â© 2016-2023 Unicode, Inc.
NOTICE TO USER: Carefully read the following legal agreement. BY
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a
copy of data files and any associated documentation (the "Data Files") or
software and any associated documentation (the "Software") to deal in the
Data Files or Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, and/or sell
copies of the Data Files or Software, and to permit persons to whom the
Data Files or Software are furnished to do so, provided that either (a)
this copyright and permission notice appear with all copies of the Data
Files or Software, or (b) this copyright and permission notice appear in
associated Documentation.
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
THIRD PARTY RIGHTS.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
FILES OR SOFTWARE.
Except as contained in this notice, the name of a copyright holder shall
not be used in advertising or otherwise to promote the sale, use or other
dealings in these Data Files or Software without prior written
authorization of the copyright holder.
----------------------------------------------------------------------
Third-Party Software Licenses
This section contains third-party software notices and/or additional
terms for licensed third-party software components included within ICU
libraries.
----------------------------------------------------------------------
ICU License - ICU 1.8.1 to ICU 57.1
COPYRIGHT AND PERMISSION NOTICE
Copyright (c) 1995-2016 International Business Machines Corporation and others
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, provided that the above
copyright notice(s) and this permission notice appear in all copies of
the Software and that both the above copyright notice(s) and this
permission notice appear in supporting documentation.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Except as contained in this notice, the name of a copyright holder
shall not be used in advertising or otherwise to promote the sale, use
or other dealings in this Software without prior written authorization
of the copyright holder.
All trademarks and registered trademarks mentioned herein are the
property of their respective owners.
----------------------------------------------------------------------
Chinese/Japanese Word Break Dictionary Data (cjdict.txt)
 #     The Google Chrome software developed by Google is licensed under
 # the BSD license. Other software included in this distribution is
 # provided under other licenses, as set forth below.
 #
 #  The BSD License
 #  http://opensource.org/licenses/bsd-license.php
 #  Copyright (C) 2006-2008, Google Inc.
 #
 #  All rights reserved.
 #
 #  Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are met:
 #
 #  Redistributions of source code must retain the above copyright notice,
 # this list of conditions and the following disclaimer.
 #  Redistributions in binary form must reproduce the above
 # copyright notice, this list of conditions and the following
 # disclaimer in the documentation and/or other materials provided with
 # the distribution.
 #  Neither the name of  Google Inc. nor the names of its
 # contributors may be used to endorse or promote products derived from
 # this software without specific prior written permission.
 #
 #
 #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
 # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
 # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 #
 #  The word list in cjdict.txt are generated by combining three word lists
 # listed below with further processing for compound word breaking. The
 # frequency is generated with an iterative training against Google web
 # corpora.
 #
 #  * Libtabe (Chinese)
 #    - https://sourceforge.net/project/?group_id=1519
 #    - Its license terms and conditions are shown below.
 #
 #  * IPADIC (Japanese)
 #    - http://chasen.aist-nara.ac.jp/chasen/distribution.html
 #    - Its license terms and conditions are shown below.
 #
 #  ---------COPYING.libtabe ---- BEGIN--------------------
 #
 #  /*
 #   * Copyright (c) 1999 TaBE Project.
 #   * Copyright (c) 1999 Pai-Hsiang Hsiao.
 #   * All rights reserved.
 #   *
 #   * Redistribution and use in source and binary forms, with or without
 #   * modification, are permitted provided that the following conditions
 #   * are met:
 #   *
 #   * . Redistributions of source code must retain the above copyright
 #   *   notice, this list of conditions and the following disclaimer.
 #   * . Redistributions in binary form must reproduce the above copyright
 #   *   notice, this list of conditions and the following disclaimer in
 #   *   the documentation and/or other materials provided with the
 #   *   distribution.
 #   * . Neither the name of the TaBE Project nor the names of its
 #   *   contributors may be used to endorse or promote products derived
 #   *   from this software without specific prior written permission.
 #   *
 #   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 #   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 #   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 #   * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 #   * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 #   * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 #   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 #   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 #   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 #   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 #   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 #   * OF THE POSSIBILITY OF SUCH DAMAGE.
 #   */
 #
 #  /*
 #   * Copyright (c) 1999 Computer Systems and Communication Lab,
 #   *                    Institute of Information Science, Academia
 #       *                    Sinica. All rights reserved.
 #   *
 #   * Redistribution and use in source and binary forms, with or without
 #   * modification, are permitted provided that the following conditions
 #   * are met:
 #   *
 #   * . Redistributions of source code must retain the above copyright
 #   *   notice, this list of conditions and the following disclaimer.
 #   * . Redistributions in binary form must reproduce the above copyright
 #   *   notice, this list of conditions and the following disclaimer in
 #   *   the documentation and/or other materials provided with the
 #   *   distribution.
 #   * . Neither the name of the Computer Systems and Communication Lab
 #   *   nor the names of its contributors may be used to endorse or
 #   *   promote products derived from this software without specific
 #   *   prior written permission.
 #   *
 #   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 #   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 #   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 #   * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 #   * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 #   * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 #   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 #   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 #   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 #   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 #   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 #   * OF THE POSSIBILITY OF SUCH DAMAGE.
 #   */
 #
 #  Copyright 1996 Chih-Hao Tsai @ Beckman Institute,
 #      University of Illinois
 #  c-tsai4@uiuc.edu  http://casper.beckman.uiuc.edu/~c-tsai4
 #
 #  ---------------COPYING.libtabe-----END--------------------------------
 #
 #
 #  ---------------COPYING.ipadic-----BEGIN-------------------------------
 #
 #  Copyright 2000, 2001, 2002, 2003 Nara Institute of Science
 #  and Technology.  All Rights Reserved.
 #
 #  Use, reproduction, and distribution of this software is permitted.
 #  Any copy of this software, whether in its original form or modified,
 #  must include both the above copyright notice and the following
 #  paragraphs.
 #
 #  Nara Institute of Science and Technology (NAIST),
 #  the copyright holders, disclaims all warranties with regard to this
 #  software, including all implied warranties of merchantability and
 #  fitness, in no event shall NAIST be liable for
 #  any special, indirect or consequential damages or any damages
 #  whatsoever resulting from loss of use, data or profits, whether in an
 #  action of contract, negligence or other tortuous action, arising out
 #  of or in connection with the use or performance of this software.
 #
 #  A large portion of the dictionary entries
 #  originate from ICOT Free Software.  The following conditions for ICOT
 #  Free Software applies to the current dictionary as well.
 #
 #  Each User may also freely distribute the Program, whether in its
 #  original form or modified, to any third party or parties, PROVIDED
 #  that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear
 #  on, or be attached to, the Program, which is distributed substantially
 #  in the same form as set out herein and that such intended
 #  distribution, if actually made, will neither violate or otherwise
 #  contravene any of the laws and regulations of the countries having
 #  jurisdiction over the User or the intended distribution itself.
 #
 #  NO WARRANTY
 #
 #  The program was produced on an experimental basis in the course of the
 #  research and development conducted during the project and is provided
 #  to users as so produced on an experimental basis.  Accordingly, the
 #  program is provided without any warranty whatsoever, whether express,
 #  implied, statutory or otherwise.  The term "warranty" used herein
 #  includes, but is not limited to, any warranty of the quality,
 #  performance, merchantability and fitness for a particular purpose of
 #  the program and the nonexistence of any infringement or violation of
 #  any right of any third party.
 #
 #  Each user of the program will agree and understand, and be deemed to
 #  have agreed and understood, that there is no warranty whatsoever for
 #  the program and, accordingly, the entire risk arising from or
 #  otherwise connected with the program is assumed by the user.
 #
 #  Therefore, neither ICOT, the copyright holder, or any other
 #  organization that participated in or was otherwise related to the
 #  development of the program and their respective officials, directors,
 #  officers and other employees shall be held liable for any and all
 #  damages, including, without limitation, general, special, incidental
 #  and consequential damages, arising out of or otherwise in connection
 #  with the use or inability to use the program or any product, material
 #  or result produced or otherwise obtained by using the program,
 #  regardless of whether they have been advised of, or otherwise had
 #  knowledge of, the possibility of such damages at any time during the
 #  project or thereafter.  Each user will be deemed to have agreed to the
 #  foregoing by his or her commencement of use of the program.  The term
 #  "use" as used herein includes, but is not limited to, the use,
 #  modification, copying and distribution of the program and the
 #  production of secondary products from the program.
 #
 #  In the case where the program, whether in its original form or
 #  modified, was distributed or delivered to or received by a user from
 #  any person, organization or entity other than ICOT, unless it makes or
 #  grants independently of ICOT any specific warranty to the user in
 #  writing, such person, organization or entity, will also be exempted
 #  from and not be held liable to the user for any such damages as noted
 #  above as far as the program is concerned.
 #
 #  ---------------COPYING.ipadic-----END----------------------------------
----------------------------------------------------------------------
Lao Word Break Dictionary Data (laodict.txt)
 # Copyright (C) 2016 and later: Unicode, Inc. and others.
 # License & terms of use: http://www.unicode.org/copyright.html
 # Copyright (c) 2015 International Business Machines Corporation
 # and others. All Rights Reserved.
 #
 # Project: https://github.com/rober42539/lao-dictionary
 # Dictionary: https://github.com/rober42539/lao-dictionary/laodict.txt
 # License: https://github.com/rober42539/lao-dictionary/LICENSE.txt
 #          (copied below)
 #
 #    This file is derived from the above dictionary version of Nov 22, 2020
 #  ----------------------------------------------------------------------
 #  Copyright (C) 2013 Brian Eugene Wilson, Robert Martin Campbell.
 #  All rights reserved.
 #
 #  Redistribution and use in source and binary forms, with or without
 #  modification, are permitted provided that the following conditions are met:
 #
 #  Redistributions of source code must retain the above copyright notice, this
 #  list of conditions and the following disclaimer. Redistributions in binary
 #  form must reproduce the above copyright notice, this list of conditions and
 #  the following disclaimer in the documentation and/or other materials
 #  provided with the distribution.
 #
 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 # OF THE POSSIBILITY OF SUCH DAMAGE.
 #  --------------------------------------------------------------------------
----------------------------------------------------------------------
Burmese Word Break Dictionary Data (burmesedict.txt)
 #  Copyright (c) 2014 International Business Machines Corporation
 #  and others. All Rights Reserved.
 #
 #  This list is part of a project hosted at:
 #    github.com/kanyawtech/myanmar-karen-word-lists
 #
 #  --------------------------------------------------------------------------
 #  Copyright (c) 2013, LeRoy Benjamin Sharon
 #  All rights reserved.
 #
 #  Redistribution and use in source and binary forms, with or without
 #  modification, are permitted provided that the following conditions
 #  are met: Redistributions of source code must retain the above
 #  copyright notice, this list of conditions and the following
 #  disclaimer.  Redistributions in binary form must reproduce the
 #  above copyright notice, this list of conditions and the following
 #  disclaimer in the documentation and/or other materials provided
 #  with the distribution.
 #
 #    Neither the name Myanmar Karen Word Lists, nor the names of its
 #    contributors may be used to endorse or promote products derived
 #    from this software without specific prior written permission.
 #
 #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
 #  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
 #  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 #  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
 #  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 #  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 #  TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 #  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 #  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
 #  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
 #  THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 #  SUCH DAMAGE.
 #  --------------------------------------------------------------------------
----------------------------------------------------------------------
Time Zone Database
  ICU uses the public domain data and code derived from Time Zone
Database for its time zone support. The ownership of the TZ database
is explained in BCP 175: Procedure for Maintaining the Time Zone
Database section 7.
 # 7.  Database Ownership
 #
 #    The TZ database itself is not an IETF Contribution or an IETF
 #    document.  Rather it is a pre-existing and regularly updated work
 #    that is in the public domain, and is intended to remain in the
 #    public domain.  Therefore, BCPs 78 [RFC5378] and 79 [RFC3979] do
 #    not apply to the TZ Database or contributions that individuals make
 #    to it.  Should any claims be made and substantiated against the TZ
 #    Database, the organization that is providing the IANA
 #    Considerations defined in this RFC, under the memorandum of
 #    understanding with the IETF, currently ICANN, may act in accordance
 #    with all competent court orders.  No ownership claims will be made
 #    by ICANN or the IETF Trust on the database or the code.  Any person
 #    making a contribution to the database or code waives all rights to
 #    future claims in that contribution or in the TZ Database.
----------------------------------------------------------------------
Google double-conversion
Copyright 2006-2011, the V8 project authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
    * Neither the name of Google Inc. nor the names of its
      contributors may be used to endorse or promote products derived
      from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----------------------------------------------------------------------
File: aclocal.m4 (only for ICU4C)
Section: pkg.m4 - Macros to locate and utilise pkg-config.
Copyright Â© 2004 Scott James Remnant <scott@netsplit.com>.
Copyright Â© 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
As a special exception to the GNU General Public License, if you
distribute this file as part of a program that contains a
configuration script generated by Autoconf, you may include it under
the same distribution terms that you use for the rest of that
program.
(The condition for the exception is fulfilled because
ICU4C includes a configuration script generated by Autoconf,
namely the `configure` script.)
----------------------------------------------------------------------
File: config.guess (only for ICU4C)
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see <https://www.gnu.org/licenses/>.
As a special exception to the GNU General Public License, if you
distribute this file as part of a program that contains a
configuration script generated by Autoconf, you may include it under
the same distribution terms that you use for the rest of that
program.  This Exception is an additional permission under section 7
of the GNU General Public License, version 3 ("GPLv3").
(The condition for the exception is fulfilled because
ICU4C includes a configuration script generated by Autoconf,
namely the `configure` script.)
----------------------------------------------------------------------
File: install-sh (only for ICU4C)
Copyright 1991 by the Massachusetts Institute of Technology
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation, and that the name of M.I.T. not be used in advertising or
publicity pertaining to distribution of the software without specific,
written prior permission.  M.I.T. makes no representations about the
suitability of this software for any purpose.  It is provided "as is"
without express or implied warranty.
components/library/icu/library-32.p5m
New file
@@ -0,0 +1,34 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2013 Alexander Pyhalov.  All rights reserved.
# Copyright 2020 Till Wegmüller
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/lib/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicudata.so.$(COMPONENT_VERSION_MAJOR) target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so.$(COMPONENT_VERSION_MAJOR) target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so.$(COMPONENT_VERSION_MAJOR) target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so.$(COMPONENT_VERSION_MAJOR) target=libicuuc.so.$(HUMAN_VERSION)
components/library/icu/library.p5m
@@ -25,29 +25,12 @@
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/lib/$(MACH64)/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicudata.so.72 \
link path=usr/lib/$(MACH64)/libicudata.so.$(COMPONENT_VERSION_MAJOR) \
    target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicui18n.so.72 \
link path=usr/lib/$(MACH64)/libicui18n.so.$(COMPONENT_VERSION_MAJOR) \
    target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so.72 \
    target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so.$(COMPONENT_VERSION_MAJOR) target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicudata.so.72 target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so.72 target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so.72 target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so.$(COMPONENT_VERSION_MAJOR) target=libicuuc.so.$(HUMAN_VERSION)
components/library/icu/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@
#
#
# Copyright 2023 <contributor>
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
@@ -85,6 +85,7 @@
file path=usr/include/unicode/filteredbrk.h
file path=usr/include/unicode/fmtable.h
file path=usr/include/unicode/format.h
file path=usr/include/unicode/formattednumber.h
file path=usr/include/unicode/formattedvalue.h
file path=usr/include/unicode/fpositer.h
file path=usr/include/unicode/gender.h
@@ -130,6 +131,7 @@
file path=usr/include/unicode/search.h
file path=usr/include/unicode/selfmt.h
file path=usr/include/unicode/simpleformatter.h
file path=usr/include/unicode/simplenumberformatter.h
file path=usr/include/unicode/simpletz.h
file path=usr/include/unicode/smpdtfmt.h
file path=usr/include/unicode/sortkey.h
@@ -181,6 +183,7 @@
file path=usr/include/unicode/uenum.h
file path=usr/include/unicode/ufieldpositer.h
file path=usr/include/unicode/uformattable.h
file path=usr/include/unicode/uformattednumber.h
file path=usr/include/unicode/uformattedvalue.h
file path=usr/include/unicode/ugender.h
file path=usr/include/unicode/uidna.h
@@ -188,6 +191,8 @@
file path=usr/include/unicode/uldnames.h
file path=usr/include/unicode/ulistformatter.h
file path=usr/include/unicode/uloc.h
file path=usr/include/unicode/ulocale.h
file path=usr/include/unicode/ulocbuilder.h
file path=usr/include/unicode/ulocdata.h
file path=usr/include/unicode/umachine.h
file path=usr/include/unicode/umisc.h
@@ -203,6 +208,7 @@
file path=usr/include/unicode/unorm2.h
file path=usr/include/unicode/unum.h
file path=usr/include/unicode/unumberformatter.h
file path=usr/include/unicode/unumberoptions.h
file path=usr/include/unicode/unumberrangeformatter.h
file path=usr/include/unicode/unumsys.h
file path=usr/include/unicode/uobject.h
@@ -218,6 +224,7 @@
file path=usr/include/unicode/uset.h
file path=usr/include/unicode/usetiter.h
file path=usr/include/unicode/ushape.h
file path=usr/include/unicode/usimplenumberformatter.h
file path=usr/include/unicode/uspoof.h
file path=usr/include/unicode/usprep.h
file path=usr/include/unicode/ustdio.h
@@ -244,25 +251,25 @@
link path=usr/lib/$(MACH64)/icu/pkgdata.inc target=current/pkgdata.inc
link path=usr/lib/$(MACH64)/libicudata.so target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicudata.so.72 \
link path=usr/lib/$(MACH64)/libicudata.so.$(COMPONENT_VERSION_MAJOR) \
    target=libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicui18n.so target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicui18n.so.72 \
link path=usr/lib/$(MACH64)/libicui18n.so.$(COMPONENT_VERSION_MAJOR) \
    target=libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuio.so.$(COMPONENT_VERSION_MAJOR) target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutest.so.72 \
link path=usr/lib/$(MACH64)/libicutest.so.$(COMPONENT_VERSION_MAJOR) \
    target=libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicutu.so.$(COMPONENT_VERSION_MAJOR) target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/$(MACH64)/libicuuc.so.$(COMPONENT_VERSION_MAJOR) target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/$(MACH64)/pkgconfig/icu-i18n.pc
file path=usr/lib/$(MACH64)/pkgconfig/icu-io.pc
file path=usr/lib/$(MACH64)/pkgconfig/icu-uc.pc
@@ -273,22 +280,22 @@
link path=usr/lib/icu/pkgdata.inc target=current/pkgdata.inc
link path=usr/lib/libicudata.so target=libicudata.so.$(HUMAN_VERSION)
file path=usr/lib/libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicudata.so.72 target=libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicudata.so.$(COMPONENT_VERSION_MAJOR) target=libicudata.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so target=libicui18n.so.$(HUMAN_VERSION)
file path=usr/lib/libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so.72 target=libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicui18n.so.$(COMPONENT_VERSION_MAJOR) target=libicui18n.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so target=libicuio.so.$(HUMAN_VERSION)
file path=usr/lib/libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so.72 target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicuio.so.$(COMPONENT_VERSION_MAJOR) target=libicuio.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so target=libicutest.so.$(HUMAN_VERSION)
file path=usr/lib/libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so.72 target=libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutest.so.$(COMPONENT_VERSION_MAJOR) target=libicutest.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so target=libicutu.so.$(HUMAN_VERSION)
file path=usr/lib/libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so.72 target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicutu.so.$(COMPONENT_VERSION_MAJOR) target=libicutu.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so.72 target=libicuuc.so.$(HUMAN_VERSION)
link path=usr/lib/libicuuc.so.$(COMPONENT_VERSION_MAJOR) target=libicuuc.so.$(HUMAN_VERSION)
file path=usr/lib/pkgconfig/icu-i18n.pc
file path=usr/lib/pkgconfig/icu-io.pc
file path=usr/lib/pkgconfig/icu-uc.pc
components/library/icu/patches/090-source-i18n-udat.cpp.patch
@@ -6,7 +6,7 @@
--- icu/source/i18n/udat.cpp.orig
+++ icu/source/i18n/udat.cpp
@@ -744,6 +744,10 @@
@@ -745,6 +745,10 @@
         res = syms->getZodiacNames(count, DateFormatSymbols::FORMAT, DateFormatSymbols::NARROW);
         break;
 
components/library/icu/patches/092-source-i18n-zonemeta.cpp.patch
@@ -6,37 +6,36 @@
--- icu/source/i18n/dtfmtsym.cpp.orig
+++ icu/source/i18n/dtfmtsym.cpp
@@ -1295,6 +1295,10 @@
@@ -1303,6 +1303,10 @@
     do { // dummy do-while
 
         tzids = TimeZone::createTimeZoneIDEnumeration(ZONE_SET, NULL, NULL, status);
+       if (tzids == NULL) {
+               status = U_MEMORY_ALLOCATION_ERROR;
+               break;
+       }
         tzids = TimeZone::createTimeZoneIDEnumeration(ZONE_SET, nullptr, nullptr, status);
+        if (tzids == nullptr) {
+            status = U_MEMORY_ALLOCATION_ERROR;
+            break;
+        }
         rows = tzids->count(status);
         if (U_FAILURE(status)) {
             break;
--- icu/source/i18n/zonemeta.cpp.orig
+++ icu/source/i18n/zonemeta.cpp
@@ -456,12 +456,14 @@
@@ -486,12 +486,14 @@
             u_UCharsToChars(region, regionBuf, 2);
 
             StringEnumeration *ids = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, regionBuf, NULL, status);
             StringEnumeration *ids = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, regionBuf, nullptr, status);
-            int32_t idsLen = ids->count(status);
-            if (U_SUCCESS(status) && idsLen == 1) {
-                // only the single zone is available for the region
-                singleZone = true;
-            }
+            if (ids != nullptr) {
+                int32_t idsLen = ids->count(status);
+                if (U_SUCCESS(status) && idsLen == 1) {
+                    // only the single zone is available for the region
+                    singleZone = true;
+                }
+                delete ids;
             }
-            delete ids;
+           if (ids != NULL) {
+               int32_t idsLen = ids->count(status);
+               if (U_SUCCESS(status) && idsLen == 1) {
+                       // only the single zone is available for the region
+                       singleZone = true;
+               }
+               delete ids;
+           }
 
             // Cache the result
             umtx_lock(&gZoneMetaLock);
components/library/icu/patches/093-source-common-unisetspan.cpp.patch
@@ -9,27 +9,27 @@
@@ -660,6 +660,8 @@
                 }
                 const UnicodeString &string=*(const UnicodeString *)strings.elementAt(i);
                 const UChar *s16=string.getBuffer();
+        if (s16 == NULL)
+            continue;
                 const char16_t *s16=string.getBuffer();
+                if (s16 == nullptr)
+                    continue;
                 int32_t length16=string.length();
                 U_ASSERT(length>0);
 
@@ -1373,6 +1375,8 @@
             }
             const UnicodeString &string=*(const UnicodeString *)strings.elementAt(i);
             const UChar *s16=string.getBuffer();
+        if (s16 == NULL)
+        continue;
             const char16_t *s16=string.getBuffer();
+            if (s16 == nullptr)
+                continue;
             int32_t length16=string.length();
             U_ASSERT(length>0);
             if(length16<=rest && matches16CPB(s, pos, length, s16, length16)) {
@@ -1417,6 +1421,8 @@
             }
             const UnicodeString &string=*(const UnicodeString *)strings.elementAt(i);
             const UChar *s16=string.getBuffer();
+        if (s16 == NULL)
+        continue;
             const char16_t *s16=string.getBuffer();
+            if (s16 == nullptr)
+                continue;
             int32_t length16=string.length();
             U_ASSERT(length>0);
             if(length16<=pos && matches16CPB(s, pos-length16, length, s16, length16)) {
components/library/icu/patches/094-source-i18n-tzfmt.cpp.patch
@@ -13,7 +13,7 @@
+    default:
+    {
+        pos.setErrorIndex(startIdx);
+        return NULL;
+        return nullptr;
+    }
     }
     evaluated |= STYLE_PARSE_FLAGS[style];
components/library/icu/patches/101-source-common-uts46.cpp.patch
@@ -6,17 +6,17 @@
--- icu/source/common/uts46.cpp.orig
+++ icu/source/common/uts46.cpp
@@ -934,7 +934,12 @@
@@ -923,7 +923,12 @@
     UBool disallowNonLDHDot=(options&UIDNA_USE_STD3_RULES)!=0;
     UBool isASCII=true;
     UBool onlyLDH=true;
-    const UChar *label=dest.getBuffer()+labelStart;
+    const UChar *l=dest.getBuffer();
+    if(l==NULL) {
-    const char16_t *label=dest.getBuffer()+labelStart;
+    const char16_t *l=dest.getBuffer();
+    if(l==nullptr) {
+        info.labelErrors|=UIDNA_ERROR_LABEL_TOO_LONG;
+        return 0;
+    }
+    const UChar *label=l+labelStart;
     const UChar *limit=label+labelLength;
+    const char16_t *label=l+labelStart;
     const char16_t *limit=label+labelLength;
     // Start after the initial "xn--".
     // Ok to cast away const because we own the UnicodeString.
components/library/icu/patches/106-source-extra-uconv-uconv.cpp.patch
@@ -10,12 +10,12 @@
         }
     }
 
-    const UChar *u = s.getBuffer(), *limit = u + s.length();
+    const UChar *u = s.getBuffer();
+    if (u == NULL)
+    return -1;
+    const UChar *limit = u + s.length();
     UChar c;
-    const char16_t *u = s.getBuffer(), *limit = u + s.length();
+    const char16_t *u = s.getBuffer();
+    if (u == nullptr)
+        return -1;
+    const char16_t *limit = u + s.length();
     char16_t c;
 
     while (u < limit) {
@@ -1348,6 +1351,7 @@
components/library/icu/patches/133-source-i18n-region.cpp.patch
@@ -11,7 +11,7 @@
         StringEnumeration *pv = r->getPreferredValues(status);
+    if ( U_FAILURE(status) ) {
+        delete r;
+        return NULL;
+        return nullptr;
+    }
         pv->reset(status);
         const UnicodeString *ustr = pv->snext(status);
components/library/icu/patches/135-source-common-unistr.cpp.patch
@@ -9,8 +9,8 @@
@@ -627,6 +627,9 @@
         return result;
     }
     const UChar *array = getBuffer();
+    if ( array == NULL ) {
     const char16_t *array = getBuffer();
+    if (array == nullptr) {
+        return result;
+    }
     int32_t len = length();
components/library/icu/patches/136-source-common-caniter.cpp.patch
@@ -7,12 +7,12 @@
--- icu/source/common/caniter.cpp.orig
+++ icu/source/common/caniter.cpp
@@ -518,6 +518,10 @@
         return NULL;
         return nullptr;
     }
     const UChar *decomp=decompString.getBuffer();
+    if ( decomp == NULL ) {
     const char16_t *decomp=decompString.getBuffer();
+    if (decomp == nullptr) {
+        status = U_MEMORY_ALLOCATION_ERROR;
+        return NULL;
+        return nullptr;
+    }
     int32_t decompLen=decompString.length();
 
components/library/icu/patches/137-source-tools-genrb-reslist.cpp.patch
@@ -9,17 +9,17 @@
@@ -1507,8 +1507,16 @@
     const StringResource *left = *((const StringResource **)l);
     const StringResource *right = *((const StringResource **)r);
     const UChar *lStart = left->getBuffer();
+    if ( lStart == NULL ) {
     const char16_t *lStart = left->getBuffer();
+    if (lStart == nullptr) {
+        fprintf(stderr, "Could not allocate memory!!");
+        exit(U_MEMORY_ALLOCATION_ERROR);
+    }
     const UChar *lLimit = lStart + left->length();
     const UChar *rStart = right->getBuffer();
+    if ( rStart == NULL ) {
     const char16_t *lLimit = lStart + left->length();
     const char16_t *rStart = right->getBuffer();
+    if (rStart == nullptr) {
+        fprintf(stderr, "Could not allocate memory!!");
+        exit(U_MEMORY_ALLOCATION_ERROR);
+    }
     const UChar *rLimit = rStart + right->length();
     const char16_t *rLimit = rStart + right->length();
     int32_t diff;
     /* compare keys in reverse character order */
components/library/icu/patches/139-source-tools-toolutil-pkg_genc.cpp.patch
@@ -6,7 +6,7 @@
--- icu/source/tools/toolutil/pkg_genc.cpp.orig
+++ icu/source/tools/toolutil/pkg_genc.cpp
@@ -581,7 +581,7 @@
@@ -636,7 +636,7 @@
 
         /* This creates a 32-bit field */
 #if U_IS_BIG_ENDIAN
components/library/icu/pkg5
@@ -8,7 +8,8 @@
    ],
    "fmris": [
        "developer/icu",
        "library/icu"
        "library/icu-74",
        "library/icu-74/32"
    ],
    "name": "icu"
}
}
make-rules/shared-macros.mk
@@ -1031,7 +1031,8 @@
TCLSH =        $(TCLSH.$(TCL_VERSION).$(MACH).$(BITS))
# ICU library
ICU_LIBRARY_PKG =        library/icu
ICU_VERSION =            74
ICU_LIBRARY_PKG =        library/icu-$(ICU_VERSION)
REQUIRED_PACKAGES_SUBST +=    ICU_LIBRARY_PKG