FreeBSD Bugzilla – Attachment 230362 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]
patch
node16.diff (text/plain), 2.29 KB, created by
Brad Davis
on 2021-12-23 21:38:31 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Brad Davis
Created:
2021-12-23 21:38:31 UTC
Size:
2.29 KB
patch
obsolete
>diff --git a/www/node16/Makefile b/www/node16/Makefile >index 4525a0a41..058454c30 100644 >--- a/www/node16/Makefile >+++ b/www/node16/Makefile >@@ -1,6 +1,7 @@ > PORTNAME= node > DISTVERSIONPREFIX= v > DISTVERSION= 16.13.0 >+PORTREVISION= 1 > CATEGORIES= www > MASTER_SITES= https://nodejs.org/dist/v${DISTVERSION}/ > PKGNAMESUFFIX= 16 >diff --git a/www/node16/files/patch-deps_v8_src_base_platform_platform-posix.cc b/www/node16/files/patch-deps_v8_src_base_platform_platform-posix.cc >new file mode 100644 >index 000000000..cf5fc5ca9 >--- /dev/null >+++ b/www/node16/files/patch-deps_v8_src_base_platform_platform-posix.cc >@@ -0,0 +1,11 @@ >+--- deps/v8/src/base/platform/platform-posix.cc.orig 2021-12-23 18:02:43 UTC >++++ deps/v8/src/base/platform/platform-posix.cc >+@@ -189,7 +189,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/node16/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc b/www/node16/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc >new file mode 100644 >index 000000000..cb62aa268 >--- /dev/null >+++ b/www/node16/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-26 12:00:55 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 >+ #elif V8_OS_FREEBSD >++#include <sys/cdefs.h> >+ #include <machine/sysarch.h> // for cache flushing >+ #include <sys/types.h> >+ #elif V8_OS_STARBOARD >+@@ -31,9 +33,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
Actions:
View
|
Diff
Attachments on
bug 260651
: 230362 |
230380