mirror of https://github.com/openbsd/ports.git
parent
279781f411
commit
6033a899b3
|
@ -5,7 +5,7 @@ USE_WXNEEDED = Yes
|
|||
|
||||
COMMENT = JavaScript runtime built on Chrome's V8 JavaScript engine
|
||||
|
||||
NODE_VERSION = v18.18.2
|
||||
NODE_VERSION = v18.19.0
|
||||
PLEDGE_VER = 1.1.3
|
||||
DISTFILES = ${DISTNAME}-headers.tar.gz \
|
||||
${DISTNAME}.tar.xz
|
||||
|
@ -98,7 +98,6 @@ post-install:
|
|||
${INSTALL_DATA_DIR} ${PREFIX}/share/node
|
||||
${INSTALL_DATA} ${FULLDISTDIR}/${DISTNAME}-headers.tar.gz \
|
||||
${PREFIX}/share/node/${DISTNAME}-headers.tar.gz
|
||||
rm -r ${PREFIX}/lib/node_modules/npm/node_modules/node-pledge/build/node_gyp_bins
|
||||
cd ${PREFIX}/lib/node_modules/npm/node_modules && for x in *; do \
|
||||
mv $$x ../..; \
|
||||
ln -s ../../$$x $$x; \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SHA256 (node-pledge-1.1.3.tar.gz) = fEaXvLg6hYEJ69K+mgQFizf8DiJY2/DtyFJB/pEanVU=
|
||||
SHA256 (node-v18.18.2-headers.tar.gz) = cMkWTBlSp3zga9gONQehESTPYLbIJAniw60abVvFqRA=
|
||||
SHA256 (node-v18.18.2.tar.xz) = ckni8K+UPsOFmVBPSyor0x+5OHhykbbMymyLrfAeO1Y=
|
||||
SHA256 (node-v18.19.0-headers.tar.gz) = 5VgggY3FL9HPOoY4DGJEqHI74lUdl9fQdo2XFrKW4N0=
|
||||
SHA256 (node-v18.19.0.tar.xz) = 9StBryBZapq9jtdSQYN+xDlFRoIhRIu/hBNh4gkYGbY=
|
||||
SIZE (node-pledge-1.1.3.tar.gz) = 3167
|
||||
SIZE (node-v18.18.2-headers.tar.gz) = 8713368
|
||||
SIZE (node-v18.18.2.tar.xz) = 40834428
|
||||
SIZE (node-v18.19.0-headers.tar.gz) = 8716497
|
||||
SIZE (node-v18.19.0.tar.xz) = 41248748
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
Index: deps/ada/ada.cpp
|
||||
--- deps/ada/ada.cpp.orig
|
||||
+++ deps/ada/ada.cpp
|
||||
@@ -10512,7 +10512,7 @@ ada_unused std::string get_state(ada::state s) {
|
||||
return "Special Authority Slashes";
|
||||
case ada::state::SPECIAL_RELATIVE_OR_AUTHORITY:
|
||||
return "Special Relative or Authority";
|
||||
- case ada::state::QUERY:
|
||||
+ case ada::state::ADAQUERY:
|
||||
return "Query";
|
||||
case ada::state::PATH:
|
||||
return "Path";
|
||||
@@ -12504,7 +12504,7 @@ result_type parse_url(std::string_view user_input,
|
||||
// state to query state.
|
||||
if ((input_position != input_size) &&
|
||||
(url_data[input_position] == '?')) {
|
||||
- state = ada::state::QUERY;
|
||||
+ state = ada::state::ADAQUERY;
|
||||
}
|
||||
// Otherwise, if c is not the EOF code point:
|
||||
else if (input_position != input_size) {
|
||||
@@ -12599,7 +12599,7 @@ result_type parse_url(std::string_view user_input,
|
||||
|
||||
break;
|
||||
}
|
||||
- case ada::state::QUERY: {
|
||||
+ case ada::state::ADAQUERY: {
|
||||
ada_log("QUERY ", helpers::substring(url_data, input_position));
|
||||
// Let queryPercentEncodeSet be the special-query percent-encode set if
|
||||
// url is special; otherwise the query percent-encode set.
|
||||
@@ -12681,7 +12681,7 @@ result_type parse_url(std::string_view user_input,
|
||||
size_t location = view.find('?');
|
||||
if (location != std::string_view::npos) {
|
||||
view.remove_suffix(view.size() - location);
|
||||
- state = ada::state::QUERY;
|
||||
+ state = ada::state::ADAQUERY;
|
||||
input_position += location + 1;
|
||||
} else {
|
||||
input_position = input_size + 1;
|
||||
@@ -12734,7 +12734,7 @@ result_type parse_url(std::string_view user_input,
|
||||
// set url's query to the empty string and state to query state.
|
||||
else if ((input_position != input_size) &&
|
||||
(url_data[input_position] == '?')) {
|
||||
- state = ada::state::QUERY;
|
||||
+ state = ada::state::ADAQUERY;
|
||||
}
|
||||
// Otherwise, if c is not the EOF code point:
|
||||
else if (input_position != input_size) {
|
||||
@@ -12758,7 +12758,7 @@ result_type parse_url(std::string_view user_input,
|
||||
// Furthermore, we can immediately locate the '?'.
|
||||
size_t locofquestionmark = view.find('?');
|
||||
if (locofquestionmark != std::string_view::npos) {
|
||||
- state = ada::state::QUERY;
|
||||
+ state = ada::state::ADAQUERY;
|
||||
view.remove_suffix(view.size() - locofquestionmark);
|
||||
input_position += locofquestionmark + 1;
|
||||
} else {
|
||||
@@ -12918,7 +12918,7 @@ result_type parse_url(std::string_view user_input,
|
||||
// If c is U+003F (?), then set url's query to the empty string and
|
||||
// state to query state.
|
||||
if (input_position != input_size && url_data[input_position] == '?') {
|
||||
- state = ada::state::QUERY;
|
||||
+ state = ada::state::ADAQUERY;
|
||||
}
|
||||
// Otherwise, if c is not the EOF code point:
|
||||
else if (input_position != input_size) {
|
|
@ -0,0 +1,12 @@
|
|||
Index: deps/ada/ada.h
|
||||
--- deps/ada/ada.h.orig
|
||||
+++ deps/ada/ada.h
|
||||
@@ -1219,7 +1219,7 @@ enum class state {
|
||||
SPECIAL_AUTHORITY_IGNORE_SLASHES,
|
||||
SPECIAL_AUTHORITY_SLASHES,
|
||||
SPECIAL_RELATIVE_OR_AUTHORITY,
|
||||
- QUERY,
|
||||
+ ADAQUERY,
|
||||
PATH,
|
||||
PATH_START,
|
||||
OPAQUE_PATH,
|
|
@ -1,7 +1,7 @@
|
|||
Index: deps/npm/node_modules/node-gyp/lib/install.js
|
||||
--- deps/npm/node_modules/node-gyp/lib/install.js.orig
|
||||
+++ deps/npm/node_modules/node-gyp/lib/install.js
|
||||
@@ -177,7 +177,7 @@ async function install (fs, gyp, argv) {
|
||||
@@ -172,7 +172,7 @@ async function install (gyp, argv) {
|
||||
}
|
||||
|
||||
// now download the node tarball
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Index: deps/v8/src/base/bit-field.h
|
||||
|
||||
Workaround for clang 16. known to not workaround in clang 17.
|
||||
|
||||
Index: deps/v8/src/base/bit-field.h
|
||||
--- deps/v8/src/base/bit-field.h.orig
|
||||
+++ deps/v8/src/base/bit-field.h
|
||||
@@ -39,8 +39,11 @@ class BitField final {
|
||||
|
|
|
@ -10,7 +10,7 @@ Index: deps/v8/src/base/platform/platform-posix.cc
|
|||
#define MAP_ANONYMOUS MAP_ANON
|
||||
#endif
|
||||
|
||||
@@ -294,8 +294,15 @@ void OS::SetRandomMmapSeed(int64_t seed) {
|
||||
@@ -300,8 +300,15 @@ void OS::SetRandomMmapSeed(int64_t seed) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ Index: deps/v8/src/base/platform/platform-posix.cc
|
|||
uintptr_t raw_addr;
|
||||
{
|
||||
MutexGuard guard(rng_mutex.Pointer());
|
||||
@@ -386,6 +393,7 @@ void* OS::GetRandomMmapAddr() {
|
||||
@@ -392,6 +399,7 @@ void* OS::GetRandomMmapAddr() {
|
||||
#endif
|
||||
return reinterpret_cast<void*>(raw_addr);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ Index: deps/v8/src/base/platform/platform-posix.cc
|
|||
|
||||
// TODO(bbudge) Move Cygwin and Fuchsia stuff into platform-specific files.
|
||||
#if !V8_OS_CYGWIN && !V8_OS_FUCHSIA
|
||||
@@ -594,7 +602,7 @@ void OS::DestroySharedMemoryHandle(PlatformSharedMemor
|
||||
@@ -600,7 +608,7 @@ void OS::DestroySharedMemoryHandle(PlatformSharedMemor
|
||||
|
||||
// static
|
||||
bool OS::HasLazyCommits() {
|
||||
|
@ -43,7 +43,7 @@ Index: deps/v8/src/base/platform/platform-posix.cc
|
|||
return true;
|
||||
#else
|
||||
// TODO(bbudge) Return true for all POSIX platforms.
|
||||
@@ -1213,7 +1221,7 @@ void Thread::SetThreadLocal(LocalStorageKey key, void*
|
||||
@@ -1219,7 +1227,7 @@ void Thread::SetThreadLocal(LocalStorageKey key, void*
|
||||
// keep this version in POSIX as most Linux-compatible derivatives will
|
||||
// support it. MacOS and FreeBSD are different here.
|
||||
#if !defined(V8_OS_FREEBSD) && !defined(V8_OS_DARWIN) && !defined(_AIX) && \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Index: lib/internal/modules/cjs/loader.js
|
||||
--- lib/internal/modules/cjs/loader.js.orig
|
||||
+++ lib/internal/modules/cjs/loader.js
|
||||
@@ -1391,7 +1391,10 @@ Module._initPaths = function() {
|
||||
@@ -1516,7 +1516,10 @@ Module._initPaths = function() {
|
||||
path.resolve(process.execPath, '..') :
|
||||
path.resolve(process.execPath, '..', '..');
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ devel/gtest if installed.
|
|||
Index: node.gyp
|
||||
--- node.gyp.orig
|
||||
+++ node.gyp
|
||||
@@ -465,7 +465,7 @@
|
||||
@@ -468,7 +468,7 @@
|
||||
],
|
||||
'dependencies': [
|
||||
'deps/base64/base64.gyp:base64',
|
||||
|
@ -13,7 +13,7 @@ Index: node.gyp
|
|||
'deps/histogram/histogram.gyp:histogram',
|
||||
'deps/uvwasi/uvwasi.gyp:uvwasi',
|
||||
'deps/simdutf/simdutf.gyp:simdutf',
|
||||
@@ -1216,8 +1216,8 @@
|
||||
@@ -1222,8 +1222,8 @@
|
||||
'dependencies': [
|
||||
'<(node_lib_target_name)',
|
||||
'deps/base64/base64.gyp:base64',
|
||||
|
@ -24,7 +24,7 @@ Index: node.gyp
|
|||
'deps/histogram/histogram.gyp:histogram',
|
||||
'deps/uvwasi/uvwasi.gyp:uvwasi',
|
||||
'node_dtrace_header',
|
||||
@@ -1293,6 +1293,10 @@
|
||||
@@ -1299,6 +1299,10 @@
|
||||
}],
|
||||
['OS=="solaris"', {
|
||||
'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Index: src/env.cc
|
||||
--- src/env.cc.orig
|
||||
+++ src/env.cc
|
||||
@@ -612,29 +612,7 @@ std::unique_ptr<v8::BackingStore> Environment::release
|
||||
@@ -621,29 +621,7 @@ std::unique_ptr<v8::BackingStore> Environment::release
|
||||
}
|
||||
|
||||
std::string GetExecPath(const std::vector<std::string>& argv) {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue