svn commit: r378937 - in head/www/node: . files

Steve Wills swills at FreeBSD.org
Fri Feb 13 17:59:05 UTC 2015


Author: swills
Date: Fri Feb 13 17:59:04 2015
New Revision: 378937
URL: https://svnweb.freebsd.org/changeset/ports/378937
QAT: https://qat.redports.org/buildarchive/r378937/

Log:
  www/node: fix error getaddrinfo EAI_BADFLAGS
  
  PR:		197539
  Reported by:	Valery Komarov <komarov at valerka.net>
  Submitted by:	Daniel Lin <linpct at gmail.com> (maintainer)
  Obtained from:	https://github.com/joyent/node/issues/9204

Added:
  head/www/node/files/patch-lib_dns.js   (contents, props changed)
Modified:
  head/www/node/Makefile

Modified: head/www/node/Makefile
==============================================================================
--- head/www/node/Makefile	Fri Feb 13 15:16:53 2015	(r378936)
+++ head/www/node/Makefile	Fri Feb 13 17:59:04 2015	(r378937)
@@ -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}

Added: head/www/node/files/patch-lib_dns.js
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/node/files/patch-lib_dns.js	Fri Feb 13 17:59:04 2015	(r378937)
@@ -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;
+   }


More information about the svn-ports-head mailing list