From d520571619cf6fdc2c172e8f8ada08e9fec58f2f Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Tue, 12 May 2015 23:08:27 +0000 Subject: [PATCH] Fix BROKEN. PR: 200074 Submitted by: maintainer --- www/node010/Makefile | 3 +- .../patch-deps_v8_src_platform-freebsd.cc | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 www/node010/files/patch-deps_v8_src_platform-freebsd.cc diff --git a/www/node010/Makefile b/www/node010/Makefile index 77c3c45f943f..619055745f6b 100644 --- a/www/node010/Makefile +++ b/www/node010/Makefile @@ -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 diff --git a/www/node010/files/patch-deps_v8_src_platform-freebsd.cc b/www/node010/files/patch-deps_v8_src_platform-freebsd.cc new file mode 100644 index 000000000000..939202db8e92 --- /dev/null +++ b/www/node010/files/patch-deps_v8_src_platform-freebsd.cc @@ -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; + }