Issue #1971 - Part 2: Update ICU source to 63.2.

This commit is contained in:
Job Bautista 2022-07-24 21:03:27 +08:00 • committed by roytam1
commit 1e69214382
3160 changed files with 275815 additions and 234203 deletions

View file

@ -9,9 +9,6 @@
# - CLDR (the source of most of the data, and some Java tools)
# - ICU4J (used only for checking the converted data)
# - ICU4C (the destination for the new data, and the source for some of it)
# (Either check out ICU4C from Subversion, or download the additional
# icu4c-*-data.zip file so that the icu/source/data/ directory is fully
# populated.)
#
# For an official CLDR data integration into ICU, these should be clean, freshly
# checked-out. For released CLDR sources, an alternative to checking out sources
@ -42,6 +39,21 @@
#
#----
#
# IP address whitelisting
#
# Parts of the build process (notably building the new ICU data files in step 4)
# require http: access to files in the CLDR repository; for example, processing
# the files in icu4c/source/data/xml/ may require access to
# http://www.unicode.org/repos/cldr/trunk/common/dtd/ldml.dtd
#
# Unless you cache the dtds locally by e.g. setting -DCLDR_DTD_CACHE=/tmp, the
# builds will repeatedly make such requests, which will likely result in the
# Unicode server blocking access and consequent timeout failures. You can
# prevent such blockage by having the external IP address of your build system
# whitelisted with Unicode; contact Rick McGowan or Steven Loomis.
#
#----
#
# There are several environment variables that need to be defined.
#
# a) Java- and ant-related variables
@ -52,8 +64,10 @@
#
# ANT_OPTS: You may want to set:
#
# -Xmx1024m, to give Java more memory; otherwise it may run out
# -Xmx3072m, to give Java more memory; otherwise it may run out
# of heap.
# -DCLDR_DTD_CACHE=/tmp, to reduce frequent http: access to dtds
# and consequent blockage by Unicode server.
#
# b) CLDR-related variables
#
@ -78,7 +92,7 @@
# files are used in addition to the CLDR files as inputs to the CLDR data build
# process for ICU):
#
# icu/trunk/source/data/icu-config.xml - Update <locales> to add or remove
# icu4c/source/data/icu-config.xml - Update <locales> to add or remove
# CLDR locales for inclusion in ICU. Update <paths> to prefer
# alt forms for certain paths, or to exclude certain paths; note
# that <paths> items can only have draft or alt attributes.
@ -89,11 +103,11 @@
# should also be included in <locales>, per PMC policy decision
# 2012-05-02 (see http://bugs.icu-project.org/trac/ticket/9298).
#
# icu/trunk/source/data/build.xml - If you are adding or removing break
# icu4c/source/data/build.xml - If you are adding or removing break
# iterators, you need to update <fileset id="brkitr" ...> under
# <target name="clean" ...> to clean the correct set of files.
#
# icu/trunk/source/data/xml/ - If you are adding a new locale, break
# icu4c/source/data/xml/ - If you are adding a new locale, break
# iterator, collation tailoring, or rule-based number formatter,
# you may need to add a corresponding xml file in (respectively)
# the main/, brkitr/, collation/, or rbnf/ subdirectory here.
@ -124,7 +138,7 @@
# 1a. Java and ant variables, adjust for your system
export JAVA_HOME=`/usr/libexec/java_home`
export ANT_OPTS="-Xmx1024m"
export ANT_OPTS="-Xmx3072m -DCLDR_DTD_CACHE=/tmp"
# 1b. CLDR variables, adjust for your setup; with cygwin it might be e.g.
# CLDR_DIR=`cygpath -wp /build/cldr`
@ -134,13 +148,12 @@ export CLDR_DIR=$HOME/cldr/trunk
# 1c. ICU variables
export ICU4C_DIR=$HOME/icu/icu/trunk
export ICU4J_ROOT=$HOME/icu/icu4j/trunk
export ICU4C_DIR=$HOME/icu/trunk/icu4c
export ICU4J_ROOT=$HOME/icu/trunk/icu4j
# 2. Build the CLDR Java tools
cd $CLDR_DIR/tools/java
#cd $CLDR_DIR/cldr-tools
ant jar
# 3. Configure ICU4C, build and test without new data first, to verify that
@ -159,16 +172,21 @@ make check 2>&1 | tee /tmp/icu4c-oldData-makeCheck.txt
# necessary CLDR tools including LDML2ICUConverter, ConvertTransforms, etc.
# This process will take several minutes.
# Keep a log so you can investigate anything that looks suspicious.
#
# If you see timeout errors when building the rbnf data, for example, then the
# system you are building on likely does not have its IP address whitelisted with
# Unicode for access to the CLDR repository, see note on "IP address whitelisting"
# near the top of this file.
cd $ICU4C_DIR/source/data
ant clean
ant all 2>&1 | tee /tmp/cldrNN-buildLog.txt
ant all 2>&1 | tee /tmp/cldr-newData-buildLog.txt
# 5. Check which data files have modifications, which have been added or removed
# (if there are no changes, you may not need to proceed further). Make sure the
# list seems reasonable.
svn status
git status
# 6. Fix any errors, investigate any warnings. Some warnings are expected,
# including warnings for missing versions in locale names which specify some
@ -220,10 +238,12 @@ cd $ICU4J_ROOT
ant all 2>&1 | tee /tmp/icu4j-oldData-antAll.txt
ant check 2>&1 | tee /tmp/icu4j-oldData-antCheck.txt
# 12. Now build the new data for ICU4J
# 12. Now build the new data and test data for ICU4J
cd $ICU4C_DIR/source/data
make icu4j-data-install
cd $ICU4C_DIR/source/test/testdata
make icu4j-data-install
# 13. Now rebuild ICU4J with the new data and run tests:
# Keep a log so you can investigate the errors.
@ -240,26 +260,25 @@ ant check 2>&1 | tee /tmp/icu4j-newData-antCheck.txt
# commit the changes.
cd $ICU4C_DIR/source
svn status
# add or remove as necessary, then commit
git status
# add or remove as necessary
cd $ICU4J_ROOT
svn status
# add or remove as necessary, then commit
git status
# add or remove as necessary
# 16. For an official CLDR data integration into ICU, now tag the CLDR, ICU4J,
# and ICU4C sources with an appropriate CLDR milestone (you can check previous
cd $HOME/icu/trunk/
# commit
# 16. For an official CLDR data integration into ICU, now tag the CLDR and
# ICU sources with an appropriate CLDR milestone (you can check previous
# tags for format), e.g.:
svn copy svn+ssh://unicode.org/repos/cldr/trunk \
svn+ssh://unicode.org/repos/cldr/tags/release-NNN \
--parents -m "cldrbug nnnn: tag cldr sources for NNN"
svn copy svn+ssh://source.icu-project.org/repos/icu/icu4j/trunk \
svn+ssh://source.icu-project.org/repos/icu/icu4j/tags/cldr-NNN \
--parents -m 'ticket:mmmm: tag the version used for integrating CLDR NNN'
svn copy svn+ssh://source.icu-project.org/repos/icu/icu/trunk \
svn+ssh://source.icu-project.org/repos/icu/icu/tags/cldr-NNN \
svn copy svn+ssh://source.icu-project.org/repos/icu/trunk \
svn+ssh://source.icu-project.org/repos/icu/tags/cldr-NNN \
--parents -m 'ticket:mmmm: tag the version used for integrating CLDR NNN'