build: Intl: deps: bump ICU to 56.1 (GA)
authorSteven R. Loomis <srl@icu-project.org>
Wed, 7 Oct 2015 22:40:26 +0000 (18:40 -0400)
committerJames M Snell <jasnell@gmail.com>
Thu, 8 Oct 2015 23:56:10 +0000 (16:56 -0700)
* ICU 56 was just released yesterday. Update to it.
* Notable changes: Unicode 8, CLDR 28, 2-3x number format perf,
  20% improvement in Collator startup
  * more at http://site.icu-project.org/download/56 or in #2917

Also:

* cleanup out/**/*.d and deps/icu  on "make clean"
* cleanup deps/icu on "vcbuild clean"

When building from an non-clean directory, it's important to
run `make clean` or `vcbuild clean` to remove the existing
ICU 55 from the deps path before building.

Fixes: https://github.com/nodejs/node/issues/2917
PR-URL: https://github.com/nodejs/node/pull/3281
Reviewed-By: James M Snell <jasnell@gmail.com>
Makefile
configure
vcbuild.bat

index 1d8b89b65b60c422aff29ba6c1e8c241d4ae0a70..02619fac98ddd7bd90648f6493ccf49fcf22c47b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -67,8 +67,9 @@ uninstall:
 
 clean:
        -rm -rf out/Makefile $(NODE_EXE) $(NODE_G_EXE) out/$(BUILDTYPE)/$(NODE_EXE)
-       @if [ -d out ]; then find out/ -name '*.o' -o -name '*.a' | xargs rm -rf; fi
+       @if [ -d out ]; then find out/ -name '*.o' -o -name '*.a' -o -name '*.d' | xargs rm -rf; fi
        -rm -rf node_modules
+       @if [ -d deps/icu ]; then echo deleting deps/icu; rm -rf deps/icu; fi
        -rm -f test.tap
 
 distclean:
index 6bc7172cf1816661ba8dc480f7d7e228ea5cb9e0..b4936f148a2b9c736dc23133db8601bee3627023 100755 (executable)
--- a/configure
+++ b/configure
@@ -843,9 +843,8 @@ def glob_to_var(dir_base, dir_sub, patch_dir):
 def configure_intl(o):
   icus = [
     {
-      'url': 'http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.zip',
-      # from https://ssl.icu-project.org/files/icu4c/55.1/icu4c-src-55_1.md5:
-      'md5': '4cddf1e1d47622fdd9de2cd7bb5001fd',
+      'url': 'https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.zip',
+      'md5': '61d71888f14bf00cc3e8a6f2c087d367',
     },
   ]
   def icu_download(path):
index 10beee50821e55bda4171728e0a567fb45da41dd..08b1462e172192f6766f9755e5f22b1601c6de63 100644 (file)
@@ -99,6 +99,11 @@ if "%i18n_arg%"=="full-icu" set i18n_arg=--with-intl=full-icu
 if "%i18n_arg%"=="small-icu" set i18n_arg=--with-intl=small-icu
 if "%i18n_arg%"=="intl-none" set i18n_arg=--with-intl=none
 
+if not exist "%~dp0deps\icu" goto no-depsicu
+if "%target%"=="Clean" echo deleting %~dp0deps\icu
+if "%target%"=="Clean" rmdir /S /Q %~dp0deps\icu
+:no-depsicu
+
 call :getnodeversion || exit /b 1
 
 @rem Set environment for msbuild