FreeBSD Bugzilla – Attachment 230380 Details for
Bug 260651
www/node16: Fix build on armv7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
node14 patch
node14.diff (text/plain), 2.31 KB, created by
Brad Davis
on 2021-12-24 20:05:44 UTC
(
hide
)
Description:
node14 patch
Filename:
MIME Type:
Creator:
Brad Davis
Created:
2021-12-24 20:05:44 UTC
Size:
2.31 KB
patch
obsolete
>diff --git a/www/node14/Makefile b/www/node14/Makefile >index d3f472a0d..b22e87880 100644 >--- a/www/node14/Makefile >+++ b/www/node14/Makefile >@@ -1,7 +1,7 @@ > PORTNAME= node > DISTVERSIONPREFIX= v > DISTVERSION= 14.18.1 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= www > MASTER_SITES= http://nodejs.org/dist/v${DISTVERSION}/ > PKGNAMESUFFIX= 14 >diff --git a/www/node14/files/patch-deps_v8_src_base_platform_platform-posix.cc b/www/node14/files/patch-deps_v8_src_base_platform_platform-posix.cc >new file mode 100644 >index 000000000..0c9c49266 >--- /dev/null >+++ b/www/node14/files/patch-deps_v8_src_base_platform_platform-posix.cc >@@ -0,0 +1,11 @@ >+--- deps/v8/src/base/platform/platform-posix.cc.orig 2021-10-12 04:13:34 UTC >++++ deps/v8/src/base/platform/platform-posix.cc >+@@ -162,7 +162,7 @@ void* Allocate(void* hint, size_t size, OS::MemoryPerm >+ >+ } // namespace >+ >+-#if V8_OS_LINUX || V8_OS_FREEBSD >++#if V8_OS_LINUX >+ #ifdef __arm__ >+ >+ bool OS::ArmUsingHardFloat() { >diff --git a/www/node14/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc b/www/node14/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc >new file mode 100644 >index 000000000..d34ecad3c >--- /dev/null >+++ b/www/node14/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc >@@ -0,0 +1,28 @@ >+--- deps/v8/src/codegen/arm/cpu-arm.cc.orig 2021-10-12 04:13:34 UTC >++++ deps/v8/src/codegen/arm/cpu-arm.cc >+@@ -2,12 +2,14 @@ >+ // Use of this source code is governed by a BSD-style license that can be >+ // found in the LICENSE file. >+ >++#include "include/v8config.h" >+ // CPU specific code for arm independent of OS goes here. >+ #ifdef __arm__ >+ #ifdef __QNXNTO__ >+ #include <sys/mman.h> // for cache flushing. >+ #undef MAP_TYPE // NOLINT >+ #elif V8_OS_FREEBSD >++#include <sys/cdefs.h> >+ #include <machine/sysarch.h> // for cache flushing >+ #include <sys/types.h> >+ #else >+@@ -29,9 +31,7 @@ V8_NOINLINE void CpuFeatures::FlushICache(void* start, >+ #if V8_OS_QNX >+ msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE); >+ #elif V8_OS_FREEBSD >+- struct arm_sync_icache_args args = { >+- .addr = reinterpret_cast<uintptr_t>(start), .len = size}; >+- sysarch(ARM_SYNC_ICACHE, reinterpret_cast<void*>(&args)); >++ arm_sync_icache(reinterpret_cast<uintptr_t>(start), size); >+ #else >+ register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start); >+ register uint32_t end asm("r1") = beg + size;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
koobs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 260651
:
230362
| 230380