diff options
author | andrew <andrew@FreeBSD.org> | 2017-06-30 17:19:55 +0800 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2017-06-30 17:19:55 +0800 |
commit | af1cb4fa078028718985535c398054295ab2b597 (patch) | |
tree | f996cfe9e3ac74afb8eea5cc3d9864a2dc35abc9 /www/node | |
parent | f7b806c333e96ca8aa8d594ebc096e14df326f26 (diff) | |
download | freebsd-ports-gnome-af1cb4fa078028718985535c398054295ab2b597.tar.gz freebsd-ports-gnome-af1cb4fa078028718985535c398054295ab2b597.tar.zst freebsd-ports-gnome-af1cb4fa078028718985535c398054295ab2b597.zip |
www/node: Build on arm64
DTrace fails to build, however there is no userspace DTrace support on
arm64 for it to use.
PR: 220282
Approved by: bhughes (maintainer), matthew
Diffstat (limited to 'www/node')
-rw-r--r-- | www/node/Makefile | 3 | ||||
-rw-r--r-- | www/node/files/patch-deps_v8_src_base_cpu.cc | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/www/node/Makefile b/www/node/Makefile index 9f8fb00c18af..39141d144df9 100644 --- a/www/node/Makefile +++ b/www/node/Makefile @@ -24,6 +24,7 @@ OPTIONS_EXCLUDE+= DTRACE .endif OPTIONS_EXCLUDE_FreeBSD_10= DTRACE +OPTIONS_EXCLUDE_aarch64= DTRACE BUNDLED_SSL_DESC= Use node.js's bundled OpenSSL implementation BUNDLED_SSL_USES_OFF= ssl @@ -41,7 +42,7 @@ USE_LDCONFIG= yes CONFLICTS_INSTALL= node[456]-[0-9]* node01[02]-[0-9]* node-devel-[0-9]* iojs-[0-9]* -ONLY_FOR_ARCHS= amd64 armv6 i386 +ONLY_FOR_ARCHS= aarch64 amd64 armv6 i386 CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --without-npm \ diff --git a/www/node/files/patch-deps_v8_src_base_cpu.cc b/www/node/files/patch-deps_v8_src_base_cpu.cc new file mode 100644 index 000000000000..8a155cb0109f --- /dev/null +++ b/www/node/files/patch-deps_v8_src_base_cpu.cc @@ -0,0 +1,19 @@ +--- deps/v8/src/base/cpu.cc.orig 2017-06-19 14:24:53.928317000 +0000 ++++ deps/v8/src/base/cpu.cc 2017-06-19 14:24:57.294664000 +0000 +@@ -601,6 +601,7 @@ + + #elif V8_HOST_ARCH_ARM64 + ++#if V8_OS_LINUX + CPUInfo cpu_info; + + // Extract implementor from the "CPU implementer" field. +@@ -634,6 +635,8 @@ + } + delete[] part; + } ++ ++#endif // V8_OS_LINUX + + #elif V8_HOST_ARCH_PPC + |