From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 13 13:48:42 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE457F65 for ; Fri, 13 Mar 2015 13:48:42 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 991FAB68 for ; Fri, 13 Mar 2015 13:48:42 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t2DDmgVM013676 for ; Fri, 13 Mar 2015 13:48:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198350] [www/node] segfault when installing npm on 8.4, 9.3 on i386 Date: Fri, 13 Mar 2015 13:48:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: saper@saper.info X-Bugzilla-Status: Closed X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2015 13:48:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D198350 --- Comment #4 from Marcin Cie=C5=9Blak --- Here is a quick workaround to get www/npm to build on amd64 host running i3= 86 jail: diff -ruN /usr/ports/www/npm/Makefile npm/Makefile --- /usr/ports/www/npm/Makefile 2015-03-11 16:10:57.000000000 +0000 +++ npm/Makefile 2015-03-13 12:50:19.000000000 +0000 @@ -3,6 +3,7 @@ PORTNAME=3D npm PORTVERSION=3D 2.7.0 +PORTREVISION=3D 1 CATEGORIES=3D www MASTER_SITES=3D LOCAL/sunpoet @@ -79,4 +80,11 @@ @sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.= xz ${DISTDIR}/ @cd ${.CURDIR}/ && ${MAKE_CMD} makesum -.include +.include + +.if ${ARCH} =3D=3D "i386" +# Workaround for kernel bug 178881 +EXTRA_PATCHES+=3D ${PATCHDIR}/bug178881-workaround +.endif + +.include diff -ruN /usr/ports/www/npm/files/bug178881-workaround npm/files/bug178881-workaround --- /usr/ports/www/npm/files/bug178881-workaround 1970-01-01 00:00:00.000000000 +0000 +++ npm/files/bug178881-workaround 2015-03-13 11:13:41.000000000 +0000 @@ -0,0 +1,20 @@ +--- lib/config/defaults.js.orig 2015-02-20 16:48:40.000000000 +0000 ++++ lib/config/defaults.js 2015-03-13 11:11:16.000000000 +0000 +@@ -325,16 +325,7 @@ + } +=20 + function getLocalAddresses() { +- Object.keys(os.networkInterfaces()).map(function (nic) { +- return os.networkInterfaces()[nic].filter(function (addr) { +- return addr.family =3D=3D=3D "IPv4" +- }) +- .map(function (addr) { +- return addr.address +- }) +- }).reduce(function (curr, next) { +- return curr.concat(next) +- }, []).concat(undefined) ++ return [ '127.0.0.1', undefined ] + } +=20 + exports.shorthands =3D it just cheats npm to think it only has 127.0.0.1 IPv4 address. of course the "i386" test is wrong, because we have a problem probably only on amd64 host/i386 guest combination. --=20 You are receiving this mail because: You are the assignee for the bug.=