summaryrefslogtreecommitdiff
path: root/textproc/icu/patches
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2015-10-09 23:15:34 +0000
committerryoon <ryoon@pkgsrc.org>2015-10-09 23:15:34 +0000
commit48f88017c591fa76f0c3068262369ce3e4357199 (patch)
tree3f4cd3708730e54afd3d95078b9f69f53d12eb72 /textproc/icu/patches
parent3a06d636aa6775342f537f4a2054421973acec74 (diff)
downloadpkgsrc-48f88017c591fa76f0c3068262369ce3e4357199.tar.gz
Update to 56.1
Changelog: Release Overview The features for this release include support of CLDR 28 and Unicode 8.0. For more details, including migration issues, see below. Common Changes CLDR 28: For details of the many changes in CLDR, see CLDR 28. Unicode data updated to Unicode 8.0: 41 new emoji characters, 5,771 new ideographs for Chinese/Japanese/Korean, 6 new scripts, improved character properties data, etc. ICU data size reduced by about 7.2% (1.8MB) via sharing string values across resource bundles. [#11537] DateIntervalFormat now handles intervals with seconds, and sets FieldPosition more consistently. [#11706, #11726] DateFormat::createInstanceForSkeleton() caches DateFormat patterns rather than DateTimePatternGenerator instances, for better performance (for cache hits) and lower heap memory consumption. [#11780] StringSearch (based on collation) defaults to matches on normalization boundaries rather than grapheme cluster boundaries, which yields more matches on Indic text. [#11750] RuleBasedNumberFormat (spelled-out numbers) now handles rounding (Java only), infinity, NaN. [#11653, #11760, #8223] Most of the old Normalizer/unorm.h had been replaced by (and reimplemented via) Normalizer2, and is now deprecated. [#7303] COLON has been withdrawn as a date pattern character corresponding to the date field [UDAT_]TIME_SEPARATOR_FIELD; there is currently no pattern character corresponding to that field. [#11773] Support for locale key "cf" to specify currency format style, and interaction with NumberFormat values for UNumberFormatStyle: [#11787] For NumberFormat style UNUM_CURRENCY / CURRENCYSTYLE, the default is "standard" currency style (typically using minus sign for negative numbers), but the new locale key "cf" may be used with values "standard" or "account" to specify currency format style ("account" indicates accounting style, often using parentheses for negative numbers). For other NumberFormat styles, the locale key "cf" is ignored (they override the locale preference): UNUM_CURRENCY_ISO / ISOCURRENCYSTYLE UNUM_CURRENCY_PLURAL / PLURALCURRENCYSTYLE UNUM_CURRENCY_ACCOUNTING / ACCOUNTINGCURRENCYSTYLE UNUM_CASH_CURRENCY / CASHCURRENCYSTYLE A new NumberFormat style is availble to explicitly specify standard style, ignoring the the locale key "cf" UNUM_CURRENCY_STANDARD / STANDARDCURRENCYSTYLE ICU4C Specific Changes C API support for CompactDecimalFormat via UNumberFormatStyle additions: UNUM_DECIMAL_COMPACT_SHORT, UNUM_DECIMAL_COMPACT_LONG [#11693] Larger UnicodeString object stores more characters inside the object without heap allocation; the UnicodeString object size is now build-time-configurable. [#11551] On 64-bit machines, increase from object size 40 bytes with 15 internal UChars to a new default of 64 bytes with 27 UChars. Some C++ classes now have swap() and moveFrom() methods, and support C++11 move semantics on compilers that support them. [#10086] UnicodeString, LocalPointer, LocalArray DecimalFormat code refactored to fix bugs, improve maintainability, and improve performance. [#10458] New FilteredBreakIterator suppresses certain segment boundaries. For example, it can suppress the sentence boundary in the middle of "Mr. Smith". [#11248] The internal, shared cache has been changed from unbounded to bounded. [#11767] For [U]BreakIterator with type UBRK_SENTENCE, the locale key "ss" can now be used with value "standard" to specify that standard sentence break suppression data should be used, or with value "none" to indicate that no break suppression data should be used (the default). [#11770] Collator: first-time startup time improved 20% due to precalculated unsafe-backward table [#11886] A number of memory leaks and buffer overruns have been fixed based on static code analysis, mostly in data build tools
Diffstat (limited to 'textproc/icu/patches')
-rw-r--r--textproc/icu/patches/patch-common_putil.cpp6
-rw-r--r--textproc/icu/patches/patch-common_ucnv__io.cpp15
-rw-r--r--textproc/icu/patches/patch-common_unicode_platform.h14
-rw-r--r--textproc/icu/patches/patch-configure18
-rw-r--r--textproc/icu/patches/patch-configure.ac16
5 files changed, 27 insertions, 42 deletions
diff --git a/textproc/icu/patches/patch-common_putil.cpp b/textproc/icu/patches/patch-common_putil.cpp
index 8771b608edc..ee65d796fe1 100644
--- a/textproc/icu/patches/patch-common_putil.cpp
+++ b/textproc/icu/patches/patch-common_putil.cpp
@@ -1,10 +1,10 @@
-$NetBSD: patch-common_putil.cpp,v 1.1 2014/10/26 19:46:48 bsiegert Exp $
+$NetBSD: patch-common_putil.cpp,v 1.2 2015/10/09 23:15:34 ryoon Exp $
---- common/putil.cpp.orig 2014-10-25 17:54:47.000000000 +0000
+--- common/putil.cpp.orig 2015-10-08 03:53:44.000000000 +0000
+++ common/putil.cpp
@@ -117,6 +117,14 @@
#endif
-
+
/*
+ * Mac OS X 10.4 doesn't use its localtime_r() declaration in <time.h> if either _ANSI_SOURCE or _POSIX_C_SOURCE is #defined.
+ */
diff --git a/textproc/icu/patches/patch-common_ucnv__io.cpp b/textproc/icu/patches/patch-common_ucnv__io.cpp
deleted file mode 100644
index 933d782a170..00000000000
--- a/textproc/icu/patches/patch-common_ucnv__io.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-common_ucnv__io.cpp,v 1.1 2015/09/29 02:15:54 tnn Exp $
-
-Debian CVE-2015-1270.patch
-
---- common/ucnv_io.cpp.orig 2015-03-27 21:10:42.000000000 +0000
-+++ common/ucnv_io.cpp
-@@ -744,7 +744,7 @@ ucnv_io_getConverterName(const char *ali
- * the name begins with 'x-'. If it does, strip it off and try
- * again. This behaviour is similar to how ICU4J does it.
- */
-- if (aliasTmp[0] == 'x' || aliasTmp[1] == '-') {
-+ if (aliasTmp[0] == 'x' && aliasTmp[1] == '-') {
- aliasTmp = aliasTmp+2;
- } else {
- break;
diff --git a/textproc/icu/patches/patch-common_unicode_platform.h b/textproc/icu/patches/patch-common_unicode_platform.h
index 32377d836ee..d584c3724c4 100644
--- a/textproc/icu/patches/patch-common_unicode_platform.h
+++ b/textproc/icu/patches/patch-common_unicode_platform.h
@@ -1,17 +1,17 @@
-$NetBSD: patch-common_unicode_platform.h,v 1.6 2013/12/03 21:16:06 bsiegert Exp $
+$NetBSD: patch-common_unicode_platform.h,v 1.7 2015/10/09 23:15:34 ryoon Exp $
---- common/unicode/platform.h.orig 2013-10-04 20:49:10.000000000 +0000
+--- common/unicode/platform.h.orig 2015-10-08 03:53:34.000000000 +0000
+++ common/unicode/platform.h
-@@ -151,7 +151,7 @@
+@@ -159,7 +159,7 @@
# else
# define U_PLATFORM U_PF_DARWIN
# endif
-#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__)
+#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) || defined(__DragonFly__)
- # define U_PLATFORM U_PF_BSD
- #elif defined(sun) || defined(__sun)
- /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */
-@@ -379,6 +379,18 @@
+ # if defined(__FreeBSD__)
+ # include <sys/endian.h>
+ # endif
+@@ -388,6 +388,18 @@
# define U_IS_BIG_ENDIAN 1
#elif defined(__LITTLE_ENDIAN__) || defined(_LITTLE_ENDIAN)
# define U_IS_BIG_ENDIAN 0
diff --git a/textproc/icu/patches/patch-configure b/textproc/icu/patches/patch-configure
index d14798d9de3..80797536fa1 100644
--- a/textproc/icu/patches/patch-configure
+++ b/textproc/icu/patches/patch-configure
@@ -1,12 +1,12 @@
-$NetBSD: patch-configure,v 1.7 2015/08/31 15:26:19 sevan Exp $
+$NetBSD: patch-configure,v 1.8 2015/10/09 23:15:34 ryoon Exp $
Portability fix.
Solaris seems to need -std=c99 with recent pkgsrc so keep it.
Add support for Bitrig.
---- configure.orig Fri Mar 27 21:17:48 2015
+--- configure.orig 2015-10-08 04:00:24.000000000 +0000
+++ configure
-@@ -5147,7 +5147,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
+@@ -5174,7 +5174,7 @@ rm -f core conftest.err conftest.$ac_obj
*-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;;
esac
fi ;;
@@ -15,7 +15,7 @@ Add support for Bitrig.
*-*-aix*)
if test "$GCC" = yes; then
icu_cv_host_frag=mh-aix-gcc
-@@ -5172,6 +5172,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
+@@ -5199,6 +5199,7 @@ rm -f core conftest.err conftest.$ac_obj
*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
*-*-nto*) icu_cv_host_frag=mh-qnx ;;
*-ncr-*) icu_cv_host_frag=mh-mpras ;;
@@ -23,10 +23,10 @@ Add support for Bitrig.
*) icu_cv_host_frag=mh-unknown ;;
esac
-@@ -5682,6 +5683,29 @@ if test "x$ac_cv_header_elf_h" = "xyes"; then
- CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
+@@ -5736,6 +5737,29 @@ if test "x$plugins" = "xtrue"; then
fi
+
+# check if sys/atomic.h is present.
+for ac_header in sys/atomic.h
+do :
@@ -52,8 +52,8 @@ Add support for Bitrig.
+
U_ENABLE_DYLOAD=1
enable=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
-@@ -7655,7 +7679,7 @@ ICUDATA_CHAR=$U_ENDIAN_CHAR
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins. Ignored if plugins disabled." >&5
+@@ -7729,7 +7753,7 @@ ICUDATA_CHAR=$U_ENDIAN_CHAR
case "${host}" in
*-*-solaris*) platform=U_SOLARIS ;;
*-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
@@ -62,7 +62,7 @@ Add support for Bitrig.
*-*-aix*) platform=U_AIX ;;
*-*-hpux*) platform=U_HPUX ;;
*-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
-@@ -7691,13 +7715,13 @@ fi
+@@ -7765,13 +7789,13 @@ fi
# Now that we're done using CPPFLAGS etc. for tests, we can change it
# for build.
diff --git a/textproc/icu/patches/patch-configure.ac b/textproc/icu/patches/patch-configure.ac
index 77581c1802f..121f7123a6e 100644
--- a/textproc/icu/patches/patch-configure.ac
+++ b/textproc/icu/patches/patch-configure.ac
@@ -1,15 +1,15 @@
-$NetBSD: patch-configure.ac,v 1.4 2015/08/31 15:26:19 sevan Exp $
+$NetBSD: patch-configure.ac,v 1.5 2015/10/09 23:15:34 ryoon Exp $
* Detect NetBSD libatomic
* test(1) portability fix
* Add support for Bitrig
---- configure.ac.orig Fri Mar 27 21:17:48 2015
+--- configure.ac.orig 2015-10-08 04:00:26.000000000 +0000
+++ configure.ac
-@@ -409,6 +409,18 @@ if test "x$ac_cv_header_elf_h" = "xyes"; then
- CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
+@@ -427,6 +427,18 @@ if test "x$plugins" = "xtrue"; then
fi
+
+# check if sys/atomic.h is present.
+AC_CHECK_HEADERS([sys/atomic.h])
+case "${host}" in
@@ -24,8 +24,8 @@ $NetBSD: patch-configure.ac,v 1.4 2015/08/31 15:26:19 sevan Exp $
+
U_ENABLE_DYLOAD=1
enable=yes
- AC_MSG_CHECKING([whether to enable dynamic loading of plugins])
-@@ -1234,7 +1246,7 @@ ICUDATA_CHAR=$U_ENDIAN_CHAR
+ AC_MSG_CHECKING([whether to enable dynamic loading of plugins. Ignored if plugins disabled.])
+@@ -1251,7 +1263,7 @@ ICUDATA_CHAR=$U_ENDIAN_CHAR
case "${host}" in
*-*-solaris*) platform=U_SOLARIS ;;
*-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
@@ -34,7 +34,7 @@ $NetBSD: patch-configure.ac,v 1.4 2015/08/31 15:26:19 sevan Exp $
*-*-aix*) platform=U_AIX ;;
*-*-hpux*) platform=U_HPUX ;;
*-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
-@@ -1253,6 +1265,7 @@ case "${host}" in
+@@ -1270,6 +1282,7 @@ case "${host}" in
*-*-beos) platform=U_BEOS ;;
*-*-irix*) platform=U_IRIX ;;
*-ncr-*) platform=U_MPRAS ;;
@@ -42,7 +42,7 @@ $NetBSD: patch-configure.ac,v 1.4 2015/08/31 15:26:19 sevan Exp $
*) platform=U_UNKNOWN_PLATFORM ;;
esac
AC_SUBST(ICUDATA_CHAR)
-@@ -1270,13 +1283,13 @@ fi
+@@ -1287,13 +1300,13 @@ fi
# Now that we're done using CPPFLAGS etc. for tests, we can change it
# for build.