mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Fix BROKEN.
PR: 200074 Submitted by: maintainer
This commit is contained in:
parent
45824826fe
commit
d520571619
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386177
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= node
|
||||
PORTVERSION= 0.10.38
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
|
||||
PKGNAMESUFFIX= 010
|
||||
@ -13,8 +14,6 @@ COMMENT= V8 JavaScript for client and server
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
BROKEN= Uses removed MAP_NORESERVE
|
||||
|
||||
USES= compiler execinfo gmake python:2
|
||||
HAS_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
29
www/node010/files/patch-deps_v8_src_platform-freebsd.cc
Normal file
29
www/node010/files/patch-deps_v8_src_platform-freebsd.cc
Normal file
@ -0,0 +1,29 @@
|
||||
--- deps/v8/src/platform-freebsd.cc.orig 2015-05-09 09:01:07.000000000 +0800
|
||||
+++ deps/v8/src/platform-freebsd.cc 2015-05-09 09:02:25.000000000 +0800
|
||||
@@ -343,7 +343,7 @@
|
||||
void* reservation = mmap(OS::GetRandomMmapAddr(),
|
||||
request_size,
|
||||
PROT_NONE,
|
||||
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
|
||||
+ MAP_PRIVATE | MAP_ANON,
|
||||
kMmapFd,
|
||||
kMmapFdOffset);
|
||||
if (reservation == MAP_FAILED) return;
|
||||
@@ -415,7 +415,7 @@
|
||||
void* result = mmap(OS::GetRandomMmapAddr(),
|
||||
size,
|
||||
PROT_NONE,
|
||||
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
|
||||
+ MAP_PRIVATE | MAP_ANON,
|
||||
kMmapFd,
|
||||
kMmapFdOffset);
|
||||
|
||||
@@ -445,7 +445,7 @@
|
||||
return mmap(base,
|
||||
size,
|
||||
PROT_NONE,
|
||||
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED,
|
||||
+ MAP_PRIVATE | MAP_ANON | MAP_FIXED,
|
||||
kMmapFd,
|
||||
kMmapFdOffset) != MAP_FAILED;
|
||||
}
|
Loading…
Reference in New Issue
Block a user