From owner-svn-ports-all@FreeBSD.ORG Fri Feb 13 17:59:05 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53C47C8D; Fri, 13 Feb 2015 17:59:05 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F2732B2; Fri, 13 Feb 2015 17:59:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1DHx5vo001651; Fri, 13 Feb 2015 17:59:05 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1DHx4FH001649; Fri, 13 Feb 2015 17:59:04 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201502131759.t1DHx4FH001649@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Fri, 13 Feb 2015 17:59:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378937 - in head/www/node: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 17:59:05 -0000 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 Submitted by: Daniel Lin (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; + }