From e4acbad2ecafec99ecc8d5e6600c40016db16970 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:50:06 +0100 Subject: [PATCH] added upstream patch to fix problems seen with thunderbird >= 115 (see https://bugzilla.mozilla.org/show_bug.cgi?id=1843007 ) [release 73.2-2mamba;Fri Sep 29 2023] --- icu-73.2-ICU-22132.patch | 25 +++++++++++++++++++++++++ icu.spec | 10 ++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 icu-73.2-ICU-22132.patch diff --git a/icu-73.2-ICU-22132.patch b/icu-73.2-ICU-22132.patch new file mode 100644 index 0000000..3b93c92 --- /dev/null +++ b/icu-73.2-ICU-22132.patch @@ -0,0 +1,25 @@ +diff -u a/i18n/vtzone.cpp a/i18n/vtzone.cpp +--- a/i18n/vtzone.cpp 2023-07-14 09:05:38.000000000 +0100 ++++ b/i18n/vtzone.cpp 2023-07-14 09:05:38.000000000 +0100 +@@ -1735,14 +1735,14 @@ + } + } + } else { +- UnicodeString icutzprop; +- UVector customProps(nullptr, uhash_compareUnicodeString, status); ++ UVector customProps(uprv_deleteUObject, uhash_compareUnicodeString, status); + if (olsonzid.length() > 0 && icutzver.length() > 0) { +- icutzprop.append(olsonzid); +- icutzprop.append(u'['); +- icutzprop.append(icutzver); +- icutzprop.append(u']'); +- customProps.addElement(&icutzprop, status); ++ LocalPointer icutzprop(new UnicodeString(ICU_TZINFO_PROP), status); ++ icutzprop->append(olsonzid); ++ icutzprop->append(u'['); ++ icutzprop->append(icutzver); ++ icutzprop->append(u']'); ++ customProps.adoptElement(icutzprop.orphan(), status); + } + writeZone(writer, *tz, &customProps, status); + } \ No newline at end of file diff --git a/icu.spec b/icu.spec index 80cdb3f..dee0ca8 100644 --- a/icu.spec +++ b/icu.spec @@ -4,7 +4,7 @@ Name: icu Version: 73.2 -Release: 1mamba +Release: 2mamba Summary: Set of C/C++ and Java libraries for Unicode support Group: System/Libraries Vendor: openmamba @@ -12,7 +12,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://www.icu-project.org Source: https://github.com/unicode-org/icu.git/release-%{gitver}/icu-%{version}.tar.bz2 -#Source: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{pkgver}-src.tgz +Patch0: icu-73.2-ICU-22132.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -52,6 +52,9 @@ This package contains static libraries and header files need for development. %prep %setup -q +cd icu4c/source +%patch 0 -p1 -b .ICU-22132 +cd ../.. %build cd icu4c/source @@ -123,6 +126,9 @@ rm -f %{buildroot}%{_datadir}/icu/%{version}/license.html %{_libdir}/pkgconfig/icu-*.pc %changelog +* Fri Sep 29 2023 Silvan Calarco 73.2-2mamba +- added upstream patch to fix problems seen with thunderbird >= 115 (see https://bugzilla.mozilla.org/show_bug.cgi?id=1843007 ) + * Wed Jun 14 2023 Automatic Build System 73.2-1mamba - automatic version update by autodist