Skip to content

Commit

Permalink
WIP Update of node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Jan 8, 2020
1 parent a381053 commit fe3e66e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
7 changes: 3 additions & 4 deletions packages/nodejs/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://nodejs.org/
TERMUX_PKG_DESCRIPTION="Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=13.0.0
TERMUX_PKG_VERSION=13.6.0
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=45ff3b40afc3fc93fd62e31c0f5dfa046f307f0b33d0f32e09019f306bc74767
TERMUX_PKG_SHA256=553f6b7ac3826f616fecf640d92be77498efdd19776ef958ae32ae108bb5c949
# Note that we do not use a shared libuv to avoid an issue with the Android
# linker, which does not use symbols of linked shared libraries when resolving
# symbols on dlopen(). See https://github.com/termux/termux-packages/issues/462.
Expand Down Expand Up @@ -71,12 +71,11 @@ termux_step_configure() {
--shared-openssl \
--shared-zlib \
--with-intl=system-icu \
--without-snapshot \
--without-node-snapshot \
--cross-compiling

export LD_LIBRARY_PATH=$TERMUX_PKG_HOSTBUILD_DIR/icu-installed/lib
perl -p -i -e "s@LIBS := \\$\\(LIBS\\)@LIBS := -L$TERMUX_PKG_HOSTBUILD_DIR/icu-installed/lib -lpthread -licui18n -licuuc -licudata@" \
$TERMUX_PKG_SRCDIR/out/tools/v8_gypfiles/mksnapshot.host.mk \
$TERMUX_PKG_SRCDIR/out/tools/v8_gypfiles/torque.host.mk \
$TERMUX_PKG_SRCDIR/out/tools/v8_gypfiles/bytecode_builtins_list_generator.host.mk \
$TERMUX_PKG_SRCDIR/out/tools/v8_gypfiles/v8_libbase.host.mk \
Expand Down
12 changes: 0 additions & 12 deletions packages/nodejs/configure.py.patch

This file was deleted.

11 changes: 7 additions & 4 deletions packages/nodejs/node.gyp.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff -u -r ../node-v12.9.0/node.gyp ./node.gyp
--- ../node-v12.9.0/node.gyp 2019-08-20 17:14:52.000000000 +0000
+++ ./node.gyp 2019-08-24 20:21:21.471982543 +0000
@@ -1062,107 +1062,6 @@
diff -u -r ../node-v13.5.0/node.gyp ./node.gyp
--- ../node-v13.5.0/node.gyp 2019-12-18 17:26:46.000000000 +0000
+++ ./node.gyp 2020-01-02 19:50:15.649331755 +0000
@@ -1066,110 +1066,6 @@
} ],
]
}, # specialize_node_d
Expand All @@ -12,6 +12,7 @@ diff -u -r ../node-v12.9.0/node.gyp ./node.gyp
- 'dependencies': [
- '<(node_lib_target_name)',
- 'deps/histogram/histogram.gyp:histogram',
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
Expand All @@ -27,6 +28,7 @@ diff -u -r ../node-v12.9.0/node.gyp ./node.gyp
- 'deps/v8/include',
- 'deps/cares/include',
- 'deps/uv/include',
- 'deps/uvwasi/include',
- 'test/cctest',
- ],
-
Expand All @@ -41,6 +43,7 @@ diff -u -r ../node-v12.9.0/node.gyp ./node.gyp
- 'test/cctest/node_test_fixture.h',
- 'test/cctest/test_aliased_buffer.cc',
- 'test/cctest/test_base64.cc',
- 'test/cctest/test_base_object_ptr.cc',
- 'test/cctest/test_node_postmortem_metadata.cc',
- 'test/cctest/test_environment.cc',
- 'test/cctest/test_linked_binding.cc',
Expand Down

0 comments on commit fe3e66e

Please sign in to comment.