FreeBSD Bugzilla – Attachment 155829 Details for
Bug 199454
www/node: Update to 0.12.2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
node-0.12.2.patch
node-0.12.2.patch (text/plain), 9.62 KB, created by
linpct
on 2015-04-22 06:01:24 UTC
(
hide
)
Description:
node-0.12.2.patch
Filename:
MIME Type:
Creator:
linpct
Created:
2015-04-22 06:01:24 UTC
Size:
9.62 KB
patch
obsolete
>diff -ruN node.orig/Makefile node/Makefile >--- node.orig/Makefile 2015-03-09 10:22:52.000000000 +0800 >+++ node/Makefile 2015-04-22 12:29:53.000000000 +0800 >@@ -2,8 +2,7 @@ > # $FreeBSD: head/www/node/Makefile 380404 2015-03-04 02:59:15Z vanilla $ > > PORTNAME= node >-PORTVERSION= 0.12.0 >-PORTREVISION= 1 >+PORTVERSION= 0.12.2 > CATEGORIES= www > MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/ > DISTNAME= ${PORTNAME}-v${PORTVERSION} >diff -ruN node.orig/distinfo node/distinfo >--- node.orig/distinfo 2015-03-03 08:11:15.000000000 +0800 >+++ node/distinfo 2015-04-22 12:41:19.000000000 +0800 >@@ -1,2 +1,2 @@ >-SHA256 (node-v0.12.0.tar.gz) = 9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32 >-SIZE (node-v0.12.0.tar.gz) = 19096897 >+SHA256 (node-v0.12.2.tar.gz) = ac7e78ade93e633e7ed628532bb8e650caba0c9c33af33581957f3382e2a772d >+SIZE (node-v0.12.2.tar.gz) = 19311976 >diff -ruN node.orig/files/patch-deps_v8_src_base_platform_platform-freebsd.cc node/files/patch-deps_v8_src_base_platform_platform-freebsd.cc >--- node.orig/files/patch-deps_v8_src_base_platform_platform-freebsd.cc 1970-01-01 08:00:00.000000000 +0800 >+++ node/files/patch-deps_v8_src_base_platform_platform-freebsd.cc 2015-04-22 13:21:15.000000000 +0800 >@@ -0,0 +1,69 @@ >+--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2015-03-31 22:13:01 UTC >++++ deps/v8/src/base/platform/platform-freebsd.cc >+@@ -131,23 +131,23 @@ std::vector<OS::SharedLibraryAddress> OS >+ 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 >+ >+ 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(), >+ request_size, >+ PROT_NONE, >+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, >++ MAP_PRIVATE | MAP_ANON, >+ kMmapFd, >+ kMmapFdOffset); >+ if (reservation == MAP_FAILED) return; >+@@ -260,7 +260,7 @@ void* VirtualMemory::ReserveRegion(size_ >+ void* result = mmap(OS::GetRandomMmapAddr(), >+ size, >+ PROT_NONE, >+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, >++ MAP_PRIVATE | MAP_ANON, >+ kMmapFd, >+ kMmapFdOffset); >+ >+@@ -288,7 +288,7 @@ bool VirtualMemory::UncommitRegion(void* >+ return mmap(base, >+ size, >+ PROT_NONE, >+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED, >++ MAP_PRIVATE | MAP_ANON | MAP_FIXED, >+ kMmapFd, >+ kMmapFdOffset) != MAP_FAILED; >+ } >diff -ruN node.orig/files/patch-deps_v8_src_base_platform_platform-posix.cc node/files/patch-deps_v8_src_base_platform_platform-posix.cc >--- node.orig/files/patch-deps_v8_src_base_platform_platform-posix.cc 1970-01-01 08:00:00.000000000 +0800 >+++ node/files/patch-deps_v8_src_base_platform_platform-posix.cc 2015-04-22 13:21:22.000000000 +0800 >@@ -0,0 +1,11 @@ >+--- deps/v8/src/base/platform/platform-posix.cc.orig 2015-03-31 22:13:01 UTC >++++ deps/v8/src/base/platform/platform-posix.cc >+@@ -328,7 +328,7 @@ int OS::GetCurrentThreadId() { >+ #elif V8_OS_ANDROID >+ return static_cast<int>(gettid()); >+ #else >+- return static_cast<int>(pthread_self()); >++ return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self())); >+ #endif >+ } >+ >diff -ruN node.orig/files/patch-deps_v8_src_platform-freebsd.cc node/files/patch-deps_v8_src_platform-freebsd.cc >--- node.orig/files/patch-deps_v8_src_platform-freebsd.cc 2015-03-03 08:11:15.000000000 +0800 >+++ node/files/patch-deps_v8_src_platform-freebsd.cc 1970-01-01 08:00:00.000000000 +0800 >@@ -1,69 +0,0 @@ >---- ./deps/v8/src/base/platform/platform-freebsd.cc.orig 2015-02-07 04:04:23.000000000 +0800 >-+++ ./deps/v8/src/base/platform/platform-freebsd.cc 2015-02-10 10:53:45.000000000 +0800 >-@@ -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(), >- request_size, >- PROT_NONE, >-- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, >-+ MAP_PRIVATE | MAP_ANON, >- kMmapFd, >- kMmapFdOffset); >- if (reservation == MAP_FAILED) return; >-@@ -260,7 +260,7 @@ >- void* result = mmap(OS::GetRandomMmapAddr(), >- size, >- PROT_NONE, >-- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, >-+ MAP_PRIVATE | MAP_ANON, >- kMmapFd, >- kMmapFdOffset); >- >-@@ -288,7 +288,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; >- } >diff -ruN node.orig/files/patch-deps_v8_src_platform-posix.cc node/files/patch-deps_v8_src_platform-posix.cc >--- node.orig/files/patch-deps_v8_src_platform-posix.cc 2015-03-03 08:11:15.000000000 +0800 >+++ node/files/patch-deps_v8_src_platform-posix.cc 1970-01-01 08:00:00.000000000 +0800 >@@ -1,11 +0,0 @@ >---- ./deps/v8/src/base/platform/platform-posix.cc.orig 2015-02-07 04:04:23.000000000 +0800 >-+++ ./deps/v8/src/base/platform/platform-posix.cc 2015-02-08 01:11:42.000000000 +0800 >-@@ -328,7 +328,7 @@ >- #elif V8_OS_ANDROID >- return static_cast<int>(gettid()); >- #else >-- return static_cast<int>(pthread_self()); >-+ return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self())); >- #endif >- } >- >diff -ruN node.orig/files/patch-lib_dns.js node/files/patch-lib_dns.js >--- node.orig/files/patch-lib_dns.js 2015-03-03 08:11:15.000000000 +0800 >+++ node/files/patch-lib_dns.js 2015-04-22 13:21:55.000000000 +0800 >@@ -1,6 +1,6 @@ >---- lib/dns.js.orig 2015-02-13 23:42:28.000000000 +0800 >-+++ lib/dns.js 2015-02-13 23:46:39.000000000 +0800 >-@@ -125,6 +125,11 @@ >+--- lib/dns.js.orig 2015-03-31 22:13:01 UTC >++++ lib/dns.js >+@@ -125,6 +125,11 @@ exports.lookup = function lookup(hostnam > hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) { > throw new TypeError('invalid argument: hints must use valid flags'); > } >diff -ruN node.orig/files/patch-src_node.cc node/files/patch-src_node.cc >--- node.orig/files/patch-src_node.cc 1970-01-01 08:00:00.000000000 +0800 >+++ node/files/patch-src_node.cc 2015-04-22 13:22:30.000000000 +0800 >@@ -0,0 +1,11 @@ >+--- src/node.cc.orig 2015-04-15 04:37:29 UTC >++++ src/node.cc >+@@ -2790,7 +2790,7 @@ static void SignalExit(int signo) { >+ struct sigaction sa; >+ memset(&sa, 0, sizeof(sa)); >+ sa.sa_handler = SIG_DFL; >+- CHECK_EQ(sigaction(signo, &sa, nullptr), 0); >++ CHECK_EQ(sigaction(signo, &sa, NULL), 0); >+ #endif >+ raise(signo); >+ }
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 Raw
Flags:
koobs
:
maintainer-approval+
Actions:
View
Attachments on
bug 199454
:
155596
|
155640
|
155666
| 155829