mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
package/nodejs: remove 0.10.x support
nodejs 0.10.x is now end of life and is no longer maintained so remove it. See https://github.com/nodejs/LTS Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
87e9391e69
commit
dfb3cf2ef4
@ -1,27 +0,0 @@
|
|||||||
Remove dependency on Python bz2 module
|
|
||||||
|
|
||||||
The Python bz2 module is only needed in certain cases, so only import
|
|
||||||
it when needed. In the normal nodejs build, this allows to remove the
|
|
||||||
dependency on this module.
|
|
||||||
|
|
||||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
||||||
Index: b/deps/v8/tools/js2c.py
|
|
||||||
===================================================================
|
|
||||||
--- a/deps/v8/tools/js2c.py
|
|
||||||
+++ b/deps/v8/tools/js2c.py
|
|
||||||
@@ -33,7 +33,6 @@
|
|
||||||
|
|
||||||
import os, re, sys, string
|
|
||||||
import jsmin
|
|
||||||
-import bz2
|
|
||||||
|
|
||||||
|
|
||||||
def ToCAsciiArray(lines):
|
|
||||||
@@ -344,6 +343,7 @@
|
|
||||||
else:
|
|
||||||
raw_sources_declaration = RAW_SOURCES_COMPRESSION_DECLARATION
|
|
||||||
if env['COMPRESSION'] == 'bz2':
|
|
||||||
+ import bz2
|
|
||||||
all_sources = bz2.compress("".join(all_sources))
|
|
||||||
total_length = len(all_sources)
|
|
||||||
sources_data = ToCArray(all_sources)
|
|
@ -1,26 +0,0 @@
|
|||||||
From 00d809e9305241f8636a2d75e22c493293e6971a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Samuel Martin <s.martin49@gmail.com>
|
|
||||||
Date: Sun, 20 Apr 2014 15:03:01 +0200
|
|
||||||
Subject: [PATCH] gyp: force link command to use CXX
|
|
||||||
|
|
||||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
|
||||||
---
|
|
||||||
tools/gyp/pylib/gyp/generator/make.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/tools/gyp/pylib/gyp/generator/make.py b/tools/gyp/pylib/gyp/generator/make.py
|
|
||||||
index 0de510e..54e4c96 100644
|
|
||||||
--- a/tools/gyp/pylib/gyp/generator/make.py
|
|
||||||
+++ b/tools/gyp/pylib/gyp/generator/make.py
|
|
||||||
@@ -134,7 +134,7 @@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
|
|
||||||
# special "figure out circular dependencies" flags around the entire
|
|
||||||
# input list during linking.
|
|
||||||
quiet_cmd_link = LINK($(TOOLSET)) $@
|
|
||||||
-cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
|
|
||||||
+cmd_link = $(CXX.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
|
|
||||||
|
|
||||||
# We support two kinds of shared objects (.so):
|
|
||||||
# 1) shared_library, which is just bundling together many dependent libraries
|
|
||||||
--
|
|
||||||
1.9.2
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
|||||||
From 0bc482abeb814573251ecafb5a1e045c885b13a2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
|
|
||||||
Date: Mon, 25 May 2015 16:22:57 +0200
|
|
||||||
Subject: [PATCH 1/1] Fix musl __USE_MISC issue
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
The musl C library does not define __USE_MISC and so libuv (built-in dependency)
|
|
||||||
does not use the correct struct stat definition for musl.
|
|
||||||
|
|
||||||
The feature test macro __USE_MISC is defined by glibc if _BSD_SOURCE or
|
|
||||||
_SVID_SOURCE is defined.
|
|
||||||
|
|
||||||
The libuv build system enables the feature test macro _GNU_SOURCE for linux
|
|
||||||
builds.
|
|
||||||
|
|
||||||
Since glibc 2.19, defining _GNU_SOURCE also has the effect of implicitly
|
|
||||||
defining _DEFAULT_SOURCE - the replacement for _BSD_SOURCE and _SVID_SOURCE.
|
|
||||||
|
|
||||||
In glibc versions before 2.20, defining _GNU_SOURCE also had the effect of
|
|
||||||
implicitly defining _BSD_SOURCE and _SVID_SOURCE. This is also true for uClibc.
|
|
||||||
|
|
||||||
Alltogether, we can safely replace __USE_MISC by _GNU_SOURCE to support building
|
|
||||||
nodejs 0.10.x with the musl C library.
|
|
||||||
|
|
||||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
|
||||||
---
|
|
||||||
deps/uv/src/fs-poll.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/deps/uv/src/fs-poll.c b/deps/uv/src/fs-poll.c
|
|
||||||
index ad27f18..094447e 100644
|
|
||||||
--- a/deps/uv/src/fs-poll.c
|
|
||||||
+++ b/deps/uv/src/fs-poll.c
|
|
||||||
@@ -198,7 +198,7 @@ static int statbuf_eq(const uv_statbuf_t* a, const uv_statbuf_t* b) {
|
|
||||||
|
|
||||||
/* Jump through a few hoops to get sub-second granularity on Linux. */
|
|
||||||
# if defined(__linux__)
|
|
||||||
-# if defined(__USE_MISC) /* _BSD_SOURCE || _SVID_SOURCE */
|
|
||||||
+# if defined(_GNU_SOURCE) /* _BSD_SOURCE || _SVID_SOURCE */
|
|
||||||
if (a->st_ctim.tv_nsec != b->st_ctim.tv_nsec) return 0;
|
|
||||||
if (a->st_mtim.tv_nsec != b->st_mtim.tv_nsec) return 0;
|
|
||||||
# else
|
|
||||||
--
|
|
||||||
2.4.1
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
From 1cc08f6ceacbb0e5ba1f4638ca3a97ac002d7792 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Bark, Martin" <martin.bark@te.com>
|
|
||||||
Date: Mon, 14 Dec 2015 13:26:10 +0000
|
|
||||||
Subject: [PATCH 2/2] Fix support for uClibc-ng
|
|
||||||
|
|
||||||
uClibc-ng is currently at v1.0.9. The patch corrects the uClibc
|
|
||||||
version test so that HAVE_IFADDRS_H is defined for uClibc versions
|
|
||||||
after v0.9.32.
|
|
||||||
|
|
||||||
Submitted upstream to libuv and accepted, see
|
|
||||||
https://github.com/libuv/libuv/pull/653 and
|
|
||||||
https://github.com/libuv/libuv/commit/c861972
|
|
||||||
|
|
||||||
Signed-off-by: Bark, Martin <martin.bark@te.com>
|
|
||||||
---
|
|
||||||
deps/uv/src/unix/linux-core.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/deps/uv/src/unix/linux-core.c b/deps/uv/src/unix/linux-core.c
|
|
||||||
index e6e6828..6cbbb71 100644
|
|
||||||
--- a/deps/uv/src/unix/linux-core.c
|
|
||||||
+++ b/deps/uv/src/unix/linux-core.c
|
|
||||||
@@ -39,7 +39,7 @@
|
|
||||||
#define HAVE_IFADDRS_H 1
|
|
||||||
|
|
||||||
#ifdef __UCLIBC__
|
|
||||||
-# if __UCLIBC_MAJOR__ < 0 || __UCLIBC_MINOR__ < 9 || __UCLIBC_SUBLEVEL__ < 32
|
|
||||||
+# if __UCLIBC_MAJOR__ < 0 && __UCLIBC_MINOR__ < 9 && __UCLIBC_SUBLEVEL__ < 32
|
|
||||||
# undef HAVE_IFADDRS_H
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
--
|
|
||||||
2.6.2
|
|
@ -1,8 +1,13 @@
|
|||||||
|
config BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
|
||||||
|
bool
|
||||||
|
# On ARM, at least ARMv6+ with VFPv2+ is needed
|
||||||
|
default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2
|
||||||
|
default y if BR2_mipsel && !BR2_MIPS_SOFT_FLOAT
|
||||||
|
default y if BR2_aarch64 || BR2_i386 || BR2_x86_64
|
||||||
|
|
||||||
comment "nodejs needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.8, wchar"
|
comment "nodejs needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.8, wchar"
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 || BR2_mipsel
|
depends on BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
|
||||||
depends on !BR2_MIPS_SOFT_FLOAT
|
|
||||||
depends on !BR2_ARM_CPU_ARMV4
|
|
||||||
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
|
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||||
!BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR
|
!BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR
|
||||||
|
|
||||||
@ -10,12 +15,7 @@ config BR2_PACKAGE_NODEJS
|
|||||||
bool "nodejs"
|
bool "nodejs"
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
depends on BR2_INSTALL_LIBSTDCPP
|
depends on BR2_INSTALL_LIBSTDCPP
|
||||||
depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 || BR2_mipsel
|
depends on BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
|
||||||
depends on !BR2_MIPS_SOFT_FLOAT
|
|
||||||
# ARM needs BLX, so v5t+
|
|
||||||
depends on !BR2_ARM_CPU_ARMV4
|
|
||||||
# 0.10.x could be built without the following toolchain dependencies but
|
|
||||||
# simplify things by requiring these basic dependencies for all versions.
|
|
||||||
depends on BR2_HOST_GCC_AT_LEAST_4_8
|
depends on BR2_HOST_GCC_AT_LEAST_4_8
|
||||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||||
depends on BR2_USE_WCHAR
|
depends on BR2_USE_WCHAR
|
||||||
@ -32,20 +32,6 @@ config BR2_PACKAGE_NODEJS
|
|||||||
|
|
||||||
if BR2_PACKAGE_NODEJS
|
if BR2_PACKAGE_NODEJS
|
||||||
|
|
||||||
# Starting with 0.12.x, on ARM, V8 (the JS engine)
|
|
||||||
# now requires an armv6+ and a VFPv2+.
|
|
||||||
config BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
|
|
||||||
bool
|
|
||||||
# On supported architectures other than ARM, no special requirement
|
|
||||||
default y if !BR2_arm
|
|
||||||
# On ARM, at least ARMv6+ with VFPv2+ is needed
|
|
||||||
default y if !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2
|
|
||||||
|
|
||||||
config BR2_PACKAGE_NODEJS_VERSION_STRING
|
|
||||||
string
|
|
||||||
default "6.9.4" if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
|
|
||||||
default "0.10.48"
|
|
||||||
|
|
||||||
config BR2_PACKAGE_NODEJS_NPM
|
config BR2_PACKAGE_NODEJS_NPM
|
||||||
bool "NPM for the target"
|
bool "NPM for the target"
|
||||||
select BR2_PACKAGE_OPENSSL
|
select BR2_PACKAGE_OPENSSL
|
||||||
|
@ -1,5 +1,2 @@
|
|||||||
# From upstream URL: http://nodejs.org/dist/v0.10.48/SHASUMS256.txt
|
|
||||||
sha256 365a93d9acc076a0d93f087d269f376abeebccad599a9dab72f2f6ed96c8ae6e node-v0.10.48.tar.xz
|
|
||||||
|
|
||||||
# From upstream URL: http://nodejs.org/dist/v6.9.4/SHASUMS256.txt
|
# From upstream URL: http://nodejs.org/dist/v6.9.4/SHASUMS256.txt
|
||||||
sha256 c51d7c61db40455d57428abcadc7eb0f0a08a8878cb1d8ea3c1e211c54532c35 node-v6.9.4.tar.xz
|
sha256 c51d7c61db40455d57428abcadc7eb0f0a08a8878cb1d8ea3c1e211c54532c35 node-v6.9.4.tar.xz
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
NODEJS_VERSION = $(call qstrip,$(BR2_PACKAGE_NODEJS_VERSION_STRING))
|
NODEJS_VERSION = 6.9.4
|
||||||
NODEJS_SOURCE = node-v$(NODEJS_VERSION).tar.xz
|
NODEJS_SOURCE = node-v$(NODEJS_VERSION).tar.xz
|
||||||
NODEJS_SITE = http://nodejs.org/dist/v$(NODEJS_VERSION)
|
NODEJS_SITE = http://nodejs.org/dist/v$(NODEJS_VERSION)
|
||||||
NODEJS_DEPENDENCIES = host-python host-nodejs zlib \
|
NODEJS_DEPENDENCIES = host-python host-nodejs zlib \
|
||||||
@ -27,15 +27,12 @@ else
|
|||||||
NODEJS_CONF_OPTS += --without-ssl
|
NODEJS_CONF_OPTS += --without-ssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# 0.10.x does not have icu support
|
|
||||||
ifeq ($(findstring 0.10.,$(NODEJS_VERSION)),)
|
|
||||||
ifeq ($(BR2_PACKAGE_ICU),y)
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
||||||
NODEJS_DEPENDENCIES += icu
|
NODEJS_DEPENDENCIES += icu
|
||||||
NODEJS_CONF_OPTS += --with-intl=system-icu
|
NODEJS_CONF_OPTS += --with-intl=system-icu
|
||||||
else
|
else
|
||||||
NODEJS_CONF_OPTS += --with-intl=none
|
NODEJS_CONF_OPTS += --with-intl=none
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_NODEJS_NPM),y)
|
ifneq ($(BR2_PACKAGE_NODEJS_NPM),y)
|
||||||
NODEJS_CONF_OPTS += --without-npm
|
NODEJS_CONF_OPTS += --without-npm
|
||||||
@ -63,7 +60,7 @@ define HOST_NODEJS_CONFIGURE_CMDS
|
|||||||
--without-dtrace \
|
--without-dtrace \
|
||||||
--without-etw \
|
--without-etw \
|
||||||
--shared-zlib \
|
--shared-zlib \
|
||||||
$(if $(BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS),--with-intl=none) \
|
--with-intl=none \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user