Commit 68aa33a8 authored by Jakub Jirutka's avatar Jakub Jirutka

main/nodejs: build with small-icu as it used to be in nodejs-12.x.y

small-icu used to be the default value before nodejs 14.x.
If the user needs ICU data for others than English, they can install
icu-data package.

This is a temporary solution for Alpine 3.13. I'm planning to improve
ICU packaging and compile Node against system-provided ICUfor the
next Alpine release.
parent 5e4a02a3
......@@ -58,7 +58,7 @@ pkgname=nodejs
# Note: Update only to even-numbered versions (e.g. 6.y.z, 8.y.z)!
# Odd-numbered versions are supported only for 9 months by upstream.
pkgver=14.15.3
pkgrel=1
pkgrel=2
pkgdesc="JavaScript runtime built on V8 engine - LTS version"
url="https://nodejs.org/"
arch="all !mips64 !mips64el"
......@@ -67,6 +67,7 @@ depends="ca-certificates nghttp2-libs>=1.41"
makedepends="
brotli-dev
c-ares-dev
icu-dev
linux-headers
nghttp2-dev
openssl-dev
......@@ -109,6 +110,9 @@ build() {
# compatibility and it has happened several times in past that we
# couldn't upgrade nodejs package in stable branches to fix CVEs due to
# libuv incompatibility.
#
# TODO: After icu package is modified to split data into multiple
# variants, change --with-intl to "system-icu".
python3 configure.py --prefix=/usr \
$_carchflags \
--shared-brotli \
......@@ -116,7 +120,9 @@ build() {
--shared-openssl \
--shared-cares \
--shared-nghttp2 \
--openssl-use-def-ca-store
--openssl-use-def-ca-store \
--with-icu-default-data-dir=$(icu-config --icudatadir) \
--with-intl=small-icu
make BUILDTYPE=Release
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment