|
|
|
|
Index: common.gypi
|
|
|
|
|
--- common.gypi.orig 2019-01-24 08:54:21.000000000 +0100
|
|
|
|
|
+++ common.gypi 2019-01-24 08:56:12.985453000 +0100
|
|
|
|
|
@@ -210,7 +210,7 @@
|
|
|
|
|
'variables': {
|
|
|
|
|
'v8_enable_handle_zapping': 0,
|
|
|
|
|
},
|
|
|
|
|
- 'cflags': [ '-O3' ],
|
|
|
|
|
+ 'cflags': [ '-O2' ],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['target_arch=="x64"', {
|
|
|
|
|
'msvs_configuration_platform': 'x64',
|
|
|
|
|
@@ -420,7 +420,7 @@
|
|
|
|
|
'ldflags': [ '-pthread' ],
|
|
|
|
|
}],
|
|
|
|
|
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
|
|
|
|
|
- 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
|
|
|
|
+ 'cflags': [ '-Wno-unused-parameter', ],
|
|
|
|
|
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
|
|
|
|
|
'ldflags': [ '-rdynamic' ],
|
|
|
|
|
'target_conditions': [
|
|
|
|
|
@@ -525,10 +525,7 @@
|
|
|
|
|
'-fno-strict-aliasing',
|
|
|
|
|
],
|
|
|
|
|
'WARNING_CFLAGS': [
|
|
|
|
|
- '-Wall',
|
|
|
|
|
- '-Wendif-labels',
|
|
|
|
|
- '-W',
|
|
|
|
|
- '-Wno-unused-parameter',
|
|
|
|
|
+ '-Wno-unused-parameter'
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
'target_conditions': [
|
|
|
|
|
Index: deps/uv/common.gypi
|
|
|
|
|
--- deps/uv/common.gypi.orig 2019-01-24 08:54:18.000000000 +0100
|
|
|
|
|
+++ deps/uv/common.gypi 2019-01-24 08:56:12.985614000 +0100
|
|
|
|
|
@@ -46,7 +46,7 @@
|
|
|
|
|
'Release': {
|
|
|
|
|
'defines': [ 'NDEBUG' ],
|
|
|
|
|
'cflags': [
|
|
|
|
|
- '-O3',
|
|
|
|
|
+ '-O2',
|
|
|
|
|
],
|
|
|
|
|
'msvs_settings': {
|
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
|
Index: deps/uv/uv.gyp
|
|
|
|
|
--- deps/uv/uv.gyp.orig 2019-01-24 08:54:18.000000000 +0100
|
|
|
|
|
+++ deps/uv/uv.gyp 2019-01-24 08:56:12.985764000 +0100
|
|
|
|
|
@@ -175,7 +175,7 @@
|
|
|
|
|
'src/unix/udp.c',
|
|
|
|
|
],
|
|
|
|
|
'link_settings': {
|
|
|
|
|
- 'libraries': [ '-lm' ],
|
|
|
|
|
+ 'libraries': [ '-lz', '-lm' ],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['OS=="solaris"', {
|
|
|
|
|
'ldflags': [ '-pthreads' ],
|
|
|
|
|
Index: deps/v8/gypfiles/toolchain.gypi
|
|
|
|
|
--- deps/v8/gypfiles/toolchain.gypi.orig 2019-01-24 08:54:18.000000000 +0100
|
|
|
|
|
+++ deps/v8/gypfiles/toolchain.gypi 2019-01-24 08:56:12.986022000 +0100
|
|
|
|
|
@@ -1110,12 +1110,6 @@
|
|
|
|
|
['OS=="solaris"', {
|
|
|
|
|
'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
|
|
|
|
|
}],
|
|
|
|
|
- ['OS=="freebsd" or OS=="openbsd"', {
|
|
|
|
|
- 'cflags': [ '-I/usr/local/include' ],
|
|
|
|
|
- }],
|
|
|
|
|
- ['OS=="netbsd"', {
|
|
|
|
|
- 'cflags': [ '-I/usr/pkg/include' ],
|
|
|
|
|
- }],
|
|
|
|
|
['OS=="aix"', {
|
|
|
|
|
'defines': [
|
|
|
|
|
# Support for malloc(0)
|
|
|
|
|
@@ -1283,8 +1277,8 @@
|
|
|
|
|
# Don't use -O3 with sanitizers.
|
|
|
|
|
['asan==0 and msan==0 and lsan==0 \
|
|
|
|
|
and tsan==0 and ubsan==0 and ubsan_vptr==0', {
|
|
|
|
|
- 'cflags': ['-O3'],
|
|
|
|
|
- 'cflags!': ['-O2'],
|
|
|
|
|
+ 'cflags': ['-O2'],
|
|
|
|
|
+ 'cflags!': ['-O3'],
|
|
|
|
|
}, {
|
|
|
|
|
'cflags': ['-O2'],
|
|
|
|
|
'cflags!': ['-O3'],
|
|
|
|
|
@@ -1332,8 +1326,8 @@
|
|
|
|
|
# Don't use -O3 with sanitizers.
|
|
|
|
|
['asan==0 and msan==0 and lsan==0 \
|
|
|
|
|
and tsan==0 and ubsan==0 and ubsan_vptr==0', {
|
|
|
|
|
- 'cflags': ['-O3'],
|
|
|
|
|
- 'cflags!': ['-O2'],
|
|
|
|
|
+ 'cflags': ['-O2'],
|
|
|
|
|
+ 'cflags!': ['-O3'],
|
|
|
|
|
}, {
|
|
|
|
|
'cflags': ['-O2'],
|
|
|
|
|
'cflags!': ['-O3'],
|
|
|
|
|
Index: deps/v8/src/base/platform/platform-freebsd.cc
|
|
|
|
|
--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2019-01-24 08:54:18.000000000 +0100
|
|
|
|
|
+++ deps/v8/src/base/platform/platform-freebsd.cc 2019-01-24 08:56:12.986151000 +0100
|
|
|
|
|
@@ -25,6 +25,7 @@
|
|
|
|
|
#include <strings.h> // index
|
|
|
|
|
|
|
|
|
|
#include <cmath>
|
|
|
|
|
+#include <cstdio>
|
|
|
|
|
|
|
|
|
|
#undef MAP_TYPE
|
|
|
|
|
|
|
|
|
|
Index: deps/v8/src/log-utils.cc
|
|
|
|
|
--- deps/v8/src/log-utils.cc.orig 2019-01-24 08:54:21.000000000 +0100
|
|
|
|
|
+++ deps/v8/src/log-utils.cc 2019-01-24 08:56:12.986287000 +0100
|
|
|
|
|
@@ -2,6 +2,9 @@
|
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
+#include <stdio.h>
|
|
|
|
|
+#include <stdlib.h>
|
|
|
|
|
+
|
|
|
|
|
#include "src/log-utils.h"
|
|
|
|
|
|
|
|
|
|
#include "src/assert-scope.h"
|
|
|
|
|
Index: deps/v8/src/wasm/wasm-result.cc
|
|
|
|
|
--- deps/v8/src/wasm/wasm-result.cc.orig 2019-01-24 08:54:21.000000000 +0100
|
|
|
|
|
+++ deps/v8/src/wasm/wasm-result.cc 2019-01-24 08:56:12.986421000 +0100
|
|
|
|
|
@@ -2,6 +2,8 @@
|
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
+#include <cstdarg>
|
|
|
|
|
+
|
|
|
|
|
#include "src/wasm/wasm-result.h"
|
|
|
|
|
|
|
|
|
|
#include "src/heap/factory.h"
|
|
|
|
|
Index: lib/dns.js
|
|
|
|
|
--- lib/dns.js.orig 2019-01-24 08:54:19.000000000 +0100
|
|
|
|
|
+++ lib/dns.js 2019-01-24 08:56:12.986556000 +0100
|
|
|
|
|
@@ -139,6 +139,10 @@
|
|
|
|
|
req.hostname = hostname;
|
|
|
|
|
req.oncomplete = all ? onlookupall : onlookup;
|
|
|
|
|
|
|
|
|
|
+ /* FreeBSD getaddrinfo(3) knows AI_V4MAPPED, but dislikes it */
|
|
|
|
|
+ if (process.platform === "freebsd")
|
|
|
|
|
+ hints &= ~(exports.V4MAPPED);
|
|
|
|
|
+
|
|
|
|
|
var err = cares.getaddrinfo(req, hostname, family, hints, verbatim);
|
|
|
|
|
if (err) {
|
|
|
|
|
process.nextTick(callback, dnsException(err, 'getaddrinfo', hostname));
|
|
|
|
|
Index: lib/internal/modules/cjs/loader.js
|
|
|
|
|
--- lib/internal/modules/cjs/loader.js.orig 2019-01-24 08:54:19.000000000 +0100
|
|
|
|
|
+++ lib/internal/modules/cjs/loader.js 2019-01-24 08:56:12.986770000 +0100
|
|
|
|
|
@@ -832,7 +832,10 @@
|
|
|
|
|
} else {
|
|
|
|
|
prefixDir = path.resolve(process.execPath, '..', '..');
|
|
|
|
|
}
|
|
|
|
|
- var paths = [path.resolve(prefixDir, 'lib', 'node')];
|
|
|
|
|
+ var paths = [
|
|
|
|
|
+ path.resolve(prefixDir, '..', 'lib', 'node', 'usr'),
|
|
|
|
|
+ path.resolve(prefixDir, '..', 'lib', 'node', 'pkg')
|
|
|
|
|
+ ];
|
|
|
|
|
|
|
|
|
|
if (homeDir) {
|
|
|
|
|
paths.unshift(path.resolve(homeDir, '.node_libraries'));
|
|
|
|
|
Index: src/inspector_socket_server.cc
|
|
|
|
|
--- src/inspector_socket_server.cc.orig 2019-01-24 08:54:19.000000000 +0100
|
|
|
|
|
+++ src/inspector_socket_server.cc 2019-01-24 08:56:12.986921000 +0100
|
|
|
|
|
@@ -19,7 +19,7 @@
|
|
|
|
|
bool include_protocol);
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
|
|
-static const uint8_t PROTOCOL_JSON[] = {
|
|
|
|
|
+static uint8_t PROTOCOL_JSON[] = {
|
|
|
|
|
#include "v8_inspector_protocol_json.h" // NOLINT(build/include_order)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Index: src/node_constants.cc
|
|
|
|
|
--- src/node_constants.cc.orig 2019-01-24 08:54:19.000000000 +0100
|
|
|
|
|
+++ src/node_constants.cc 2019-01-24 08:56:12.987128000 +0100
|
|
|
|
|
@@ -35,10 +35,10 @@
|
|
|
|
|
#include <limits>
|
|
|
|
|
|
|
|
|
|
#if HAVE_OPENSSL
|
|
|
|
|
-# include <openssl/ec.h>
|
|
|
|
|
-# include <openssl/ssl.h>
|
|
|
|
|
+# include "openssl/ec.h"
|
|
|
|
|
+# include "openssl/ssl.h"
|
|
|
|
|
# ifndef OPENSSL_NO_ENGINE
|
|
|
|
|
-# include <openssl/engine.h>
|
|
|
|
|
+# include "openssl/engine.h"
|
|
|
|
|
# endif // !OPENSSL_NO_ENGINE
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
Index: src/node_crypto.h
|
|
|
|
|
--- src/node_crypto.h.orig 2019-01-24 08:54:19.000000000 +0100
|
|
|
|
|
+++ src/node_crypto.h 2019-01-24 08:56:12.987316000 +0100
|
|
|
|
|
@@ -36,22 +36,22 @@
|
|
|
|
|
|
|
|
|
|
#include "v8.h"
|
|
|
|
|
|
|
|
|
|
-#include <openssl/ssl.h>
|
|
|
|
|
-#include <openssl/ec.h>
|
|
|
|
|
-#include <openssl/ecdh.h>
|
|
|
|
|
+#include "openssl/ssl.h"
|
|
|
|
|
+#include "openssl/ec.h"
|
|
|
|
|
+#include "openssl/ecdh.h"
|
|
|
|
|
#ifndef OPENSSL_NO_ENGINE
|
|
|
|
|
-# include <openssl/engine.h>
|
|
|
|
|
+# include "openssl/engine.h"
|
|
|
|
|
#endif // !OPENSSL_NO_ENGINE
|
|
|
|
|
-#include <openssl/err.h>
|
|
|
|
|
-#include <openssl/evp.h>
|
|
|
|
|
+#include "openssl/err.h"
|
|
|
|
|
+#include "openssl/evp.h"
|
|
|
|
|
// TODO(shigeki) Remove this after upgrading to 1.1.1
|
|
|
|
|
-#include <openssl/obj_mac.h>
|
|
|
|
|
-#include <openssl/pem.h>
|
|
|
|
|
-#include <openssl/x509.h>
|
|
|
|
|
-#include <openssl/x509v3.h>
|
|
|
|
|
-#include <openssl/hmac.h>
|
|
|
|
|
-#include <openssl/rand.h>
|
|
|
|
|
-#include <openssl/pkcs12.h>
|
|
|
|
|
+#include "openssl/obj_mac.h"
|
|
|
|
|
+#include "openssl/pem.h"
|
|
|
|
|
+#include "openssl/x509.h"
|
|
|
|
|
+#include "openssl/x509v3.h"
|
|
|
|
|
+#include "openssl/hmac.h"
|
|
|
|
|
+#include "openssl/rand.h"
|
|
|
|
|
+#include "openssl/pkcs12.h"
|
|
|
|
|
|
|
|
|
|
namespace node {
|
|
|
|
|
namespace crypto {
|
|
|
|
|
Index: src/tls_wrap.h
|
|
|
|
|
--- src/tls_wrap.h.orig 2019-01-24 08:54:19.000000000 +0100
|
|
|
|
|
+++ src/tls_wrap.h 2019-01-24 08:56:12.987738000 +0100
|
|
|
|
|
@@ -32,7 +32,7 @@
|
|
|
|
|
#include "stream_wrap.h"
|
|
|
|
|
#include "v8.h"
|
|
|
|
|
|
|
|
|
|
-#include <openssl/ssl.h>
|
|
|
|
|
+#include "openssl/ssl.h"
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
Index: src/util.h
|
|
|
|
|
--- src/util.h.orig 2019-01-24 08:54:19.000000000 +0100
|
|
|
|
|
+++ src/util.h 2019-01-24 08:56:12.987899000 +0100
|
|
|
|
|
@@ -126,14 +126,23 @@
|
|
|
|
|
} \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
+#undef CHECK_EQ
|
|
|
|
|
#define CHECK_EQ(a, b) CHECK((a) == (b))
|
|
|
|
|
+#undef CHECK_GE
|
|
|
|
|
#define CHECK_GE(a, b) CHECK((a) >= (b))
|
|
|
|
|
+#undef CHECK_GT
|
|
|
|
|
#define CHECK_GT(a, b) CHECK((a) > (b))
|
|
|
|
|
+#undef CHECK_LE
|
|
|
|
|
#define CHECK_LE(a, b) CHECK((a) <= (b))
|
|
|
|
|
+#undef CHECK_LT
|
|
|
|
|
#define CHECK_LT(a, b) CHECK((a) < (b))
|
|
|
|
|
+#undef CHECK_NE
|
|
|
|
|
#define CHECK_NE(a, b) CHECK((a) != (b))
|
|
|
|
|
+#undef CHECK_NULL
|
|
|
|
|
#define CHECK_NULL(val) CHECK((val) == nullptr)
|
|
|
|
|
+#undef CHECK_NOT_NULL
|
|
|
|
|
#define CHECK_NOT_NULL(val) CHECK((val) != nullptr)
|
|
|
|
|
+#undef CHECK_IMPLIES
|
|
|
|
|
#define CHECK_IMPLIES(a, b) CHECK(!(a) || (b))
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
@@ -161,6 +170,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+#undef UNREACHABLE
|
|
|
|
|
#define UNREACHABLE() ABORT()
|
|
|
|
|
|
|
|
|
|
// TAILQ-style intrusive list node.
|
|
|
|
|
Index: tools/install.py
|
|
|
|
|
--- tools/install.py.orig 2019-01-24 08:54:21.000000000 +0100
|
|
|
|
|
+++ tools/install.py 2019-01-24 08:56:12.988027000 +0100
|
|
|
|
|
@@ -147,10 +147,7 @@
|
|
|
|
|
action(['deps/v8/tools/gdbinit'], 'share/doc/node/')
|
|
|
|
|
action(['deps/v8/tools/lldb_commands.py'], 'share/doc/node/')
|
|
|
|
|
|
|
|
|
|
- if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
|
|
|
|
|
- action(['doc/node.1'], 'man/man1/')
|
|
|
|
|
- else:
|
|
|
|
|
- action(['doc/node.1'], 'share/man/man1/')
|
|
|
|
|
+ action(['doc/node.1'], 'man/man1/')
|
|
|
|
|
|
|
|
|
|
if 'true' == variables.get('node_install_npm'): npm_files(action)
|
|
|
|
|
|