diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2011-09-08 08:44:17 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2011-09-08 08:44:17 +0000 |
commit | ecaa793d7a08ba5fa83bbb85c12cb606030b5d04 (patch) | |
tree | 7b26c34ea6188d601b47d6de99d79f49038a6d52 /www/node04 | |
parent | 0384302b961ef0f201c0829f3ad04f1123fc86ed (diff) |
Notes
Diffstat (limited to 'www/node04')
-rw-r--r-- | www/node04/Makefile | 2 | ||||
-rw-r--r-- | www/node04/files/extra-patch-src__node_buffer.cc | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/www/node04/Makefile b/www/node04/Makefile index f326ad717576..7388baa4fc0a 100644 --- a/www/node04/Makefile +++ b/www/node04/Makefile @@ -36,7 +36,7 @@ PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,} LIB_DEPENDS+= v8.1:${PORTSDIR}/lang/v8 CONFIGURE_ARGS+= --shared-v8-includes=${LOCALBASE}/include --shared-v8-libpath=${LOCALBASE}/lib PLIST_SUB+= SHAREDV8="@comment " -BROKEN= does not build with new v8 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-src__node_buffer.cc .else PLIST_SUB+= SHAREDV8="" .endif diff --git a/www/node04/files/extra-patch-src__node_buffer.cc b/www/node04/files/extra-patch-src__node_buffer.cc new file mode 100644 index 000000000000..265219e77cfd --- /dev/null +++ b/www/node04/files/extra-patch-src__node_buffer.cc @@ -0,0 +1,11 @@ +--- src/node_buffer.cc.orig 2011-09-08 16:40:06.000000000 +0800 ++++ src/node_buffer.cc 2011-09-08 16:40:18.000000000 +0800 +@@ -478,7 +478,7 @@ Handle<Value> Buffer::Utf8Write(const Ar + + if (written > 0 && p[written-1] == '\0' && char_written == length) { + uint16_t last_char; +- s->Write(&last_char, length - 1, 1, String::NO_HINTS); ++ s->Write(&last_char, length - 1, 1, String::NO_OPTIONS); + if (last_char != 0 || written > s->Utf8Length()) { + written--; + } |