mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
1: Upgrade to 0.11.16.
2: switch USES+=execinfo 3: sort USES. PR: 197508 Submitted by: maintainer
This commit is contained in:
parent
fb94003de0
commit
9441b10951
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378815
@ -1,7 +1,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= node
|
PORTNAME= node
|
||||||
PORTVERSION= 0.11.14
|
PORTVERSION= 0.11.16
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
|
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
|
||||||
PKGNAMESUFFIX= -devel
|
PKGNAMESUFFIX= -devel
|
||||||
@ -12,9 +12,7 @@ COMMENT= V8 javascript for client and server
|
|||||||
|
|
||||||
LICENSE= MIT
|
LICENSE= MIT
|
||||||
|
|
||||||
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
|
USES= execinfo gmake python:2
|
||||||
|
|
||||||
USES= gmake python:2
|
|
||||||
HAS_CONFIGURE= yes
|
HAS_CONFIGURE= yes
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (node-v0.11.14.tar.gz) = ce08b0a2769bcc135ca25639c9d411a038e93e0f5f5a83000ecde9b763c4dd83
|
SHA256 (node-v0.11.16.tar.gz) = f0d141faa1f7da3aff53e9615d76040d29c0650542be3b09ee80aca2f2cc61f6
|
||||||
SIZE (node-v0.11.14.tar.gz) = 17255771
|
SIZE (node-v0.11.16.tar.gz) = 19059251
|
||||||
|
@ -1,6 +1,46 @@
|
|||||||
--- deps/v8/src/platform-freebsd.cc.orig 2014-05-01 20:49:51.000000000 -0400
|
--- ./deps/v8/src/base/platform/platform-freebsd.cc.orig 2015-02-07 04:04:23.000000000 +0800
|
||||||
+++ deps/v8/src/platform-freebsd.cc 2014-10-08 13:34:09.000000000 -0400
|
+++ ./deps/v8/src/base/platform/platform-freebsd.cc 2015-02-10 10:53:45.000000000 +0800
|
||||||
@@ -213,7 +213,7 @@
|
@@ -131,23 +131,23 @@
|
||||||
|
addr_buffer[0] = '0';
|
||||||
|
addr_buffer[1] = 'x';
|
||||||
|
addr_buffer[10] = 0;
|
||||||
|
- int result = read(fd, addr_buffer + 2, 8);
|
||||||
|
- if (result < 8) break;
|
||||||
|
+ ssize_t bytes_read = read(fd, addr_buffer + 2, 8);
|
||||||
|
+ if (bytes_read < 8) break;
|
||||||
|
unsigned start = StringToLong(addr_buffer);
|
||||||
|
- result = read(fd, addr_buffer + 2, 1);
|
||||||
|
- if (result < 1) break;
|
||||||
|
+ bytes_read = read(fd, addr_buffer + 2, 1);
|
||||||
|
+ if (bytes_read < 1) break;
|
||||||
|
if (addr_buffer[2] != '-') break;
|
||||||
|
- result = read(fd, addr_buffer + 2, 8);
|
||||||
|
- if (result < 8) break;
|
||||||
|
+ bytes_read = read(fd, addr_buffer + 2, 8);
|
||||||
|
+ if (bytes_read < 8) break;
|
||||||
|
unsigned end = StringToLong(addr_buffer);
|
||||||
|
char buffer[MAP_LENGTH];
|
||||||
|
- int bytes_read = -1;
|
||||||
|
+ bytes_read = -1;
|
||||||
|
do {
|
||||||
|
bytes_read++;
|
||||||
|
if (bytes_read >= MAP_LENGTH - 1)
|
||||||
|
break;
|
||||||
|
- result = read(fd, buffer + bytes_read, 1);
|
||||||
|
- if (result < 1) break;
|
||||||
|
+ bytes_read = read(fd, buffer + bytes_read, 1);
|
||||||
|
+ if (bytes_read < 1) break;
|
||||||
|
} while (buffer[bytes_read] != '\n');
|
||||||
|
buffer[bytes_read] = 0;
|
||||||
|
// Ignore mappings that are not executable.
|
||||||
|
@@ -182,13 +182,13 @@
|
||||||
|
|
||||||
|
VirtualMemory::VirtualMemory(size_t size, size_t alignment)
|
||||||
|
: address_(NULL), size_(0) {
|
||||||
|
- DCHECK(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment())));
|
||||||
|
+ DCHECK((alignment % OS::AllocateAlignment()) == 0);
|
||||||
|
size_t request_size = RoundUp(size + alignment,
|
||||||
|
static_cast<intptr_t>(OS::AllocateAlignment()));
|
||||||
void* reservation = mmap(OS::GetRandomMmapAddr(),
|
void* reservation = mmap(OS::GetRandomMmapAddr(),
|
||||||
request_size,
|
request_size,
|
||||||
PROT_NONE,
|
PROT_NONE,
|
||||||
@ -9,7 +49,7 @@
|
|||||||
kMmapFd,
|
kMmapFd,
|
||||||
kMmapFdOffset);
|
kMmapFdOffset);
|
||||||
if (reservation == MAP_FAILED) return;
|
if (reservation == MAP_FAILED) return;
|
||||||
@@ -285,7 +285,7 @@
|
@@ -260,7 +260,7 @@
|
||||||
void* result = mmap(OS::GetRandomMmapAddr(),
|
void* result = mmap(OS::GetRandomMmapAddr(),
|
||||||
size,
|
size,
|
||||||
PROT_NONE,
|
PROT_NONE,
|
||||||
@ -18,7 +58,7 @@
|
|||||||
kMmapFd,
|
kMmapFd,
|
||||||
kMmapFdOffset);
|
kMmapFdOffset);
|
||||||
|
|
||||||
@@ -313,7 +313,7 @@
|
@@ -288,7 +288,7 @@
|
||||||
return mmap(base,
|
return mmap(base,
|
||||||
size,
|
size,
|
||||||
PROT_NONE,
|
PROT_NONE,
|
||||||
|
@ -4,6 +4,7 @@ include/node/ares.h
|
|||||||
include/node/ares_version.h
|
include/node/ares_version.h
|
||||||
include/node/common.gypi
|
include/node/common.gypi
|
||||||
include/node/config.gypi
|
include/node/config.gypi
|
||||||
|
include/node/libplatform/libplatform.h
|
||||||
include/node/nameser.h
|
include/node/nameser.h
|
||||||
include/node/node.h
|
include/node/node.h
|
||||||
include/node/node_buffer.h
|
include/node/node_buffer.h
|
||||||
@ -37,8 +38,3 @@ include/node/v8stdint.h
|
|||||||
lib/node_modules/.keepme
|
lib/node_modules/.keepme
|
||||||
man/man1/node.1.gz
|
man/man1/node.1.gz
|
||||||
share/systemtap/tapset/node.stp
|
share/systemtap/tapset/node.stp
|
||||||
@dirrmtry include/node/openssl
|
|
||||||
@dirrmtry include/node
|
|
||||||
@dirrmtry lib/node_modules
|
|
||||||
@dirrmtry share/systemtap/tapset
|
|
||||||
@dirrmtry share/systemtap
|
|
||||||
|
Loading…
Reference in New Issue
Block a user