diff options
author | Steve Wills <swills@FreeBSD.org> | 2015-02-13 17:59:04 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2015-02-13 17:59:04 +0000 |
commit | eb82f765c026d52ed72af3807967088f4b30e5f9 (patch) | |
tree | bd70a9f09a279246acfca66d85c957fcfa1a27f3 /www/node | |
parent | 0d8ece171e27472204477f51802b4a212bbacf23 (diff) |
Notes
Diffstat (limited to 'www/node')
-rw-r--r-- | www/node/Makefile | 1 | ||||
-rw-r--r-- | www/node/files/patch-lib_dns.js | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/www/node/Makefile b/www/node/Makefile index 99f840ffa10c..c23ef2e3cb72 100644 --- a/www/node/Makefile +++ b/www/node/Makefile @@ -3,6 +3,7 @@ PORTNAME= node PORTVERSION= 0.12.0 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/ DISTNAME= ${PORTNAME}-v${PORTVERSION} diff --git a/www/node/files/patch-lib_dns.js b/www/node/files/patch-lib_dns.js new file mode 100644 index 000000000000..48e287a90551 --- /dev/null +++ b/www/node/files/patch-lib_dns.js @@ -0,0 +1,14 @@ +--- 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 @@ + hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) { + throw new TypeError('invalid argument: hints must use valid flags'); + } ++ // FIXME(indutny): V4MAPPED on FreeBSD results in EAI_BADFLAGS, because ++ // the libc does not support it ++ if (process.platform === 'freebsd' && family !== 6) { ++ hints &= ~exports.V4MAPPED; ++ } + } else { + family = options >>> 0; + } |