Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  4 Feb 2013 05:12:57 +0400 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        linpct@gmail.com
Subject:   ports/175809: [PATCH] www/node, www/node-devel: fix build with nondefailt LOCALBASE
Message-ID:  <20130204011257.6FF27E8E@hades.panopticon>
Resent-Message-ID: <201302040120.r141K0u8013139@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175809
>Category:       ports
>Synopsis:       [PATCH] www/node, www/node-devel: fix build with nondefailt LOCALBASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 04 01:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Wed Jun 13 17:39:20 MSK 2012

>Description:
node and node-devel do not build with nondefault localbase, failing to find libexecinfo headers and libs.

Build logs:

http://people.freebsd.org/~amdmi3/node-0.8.18.log
http://people.freebsd.org/~amdmi3/node-devel-0.9.8.log

Attached patches fix the problem.

>How-To-Repeat:

>Fix:
--- node.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 311530)
+++ Makefile	(working copy)
@@ -33,6 +33,9 @@
 
 post-patch:
 	@${RM} ${WRKSRC}/tools/wafadmin/Node.py.orig
+	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
+		${WRKSRC}/deps/v8/build/common.gypi \
+		${WRKSRC}/deps/v8/tools/gyp/v8.gyp
 
 post-install:
 	${MKDIR} ${PREFIX}/lib/node_modules/
--- node.patch ends here ---

--- node-devel.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 311531)
+++ Makefile	(working copy)
@@ -27,6 +27,11 @@
 PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
 REINPLACE_ARGS=	-i ''
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
+		${WRKSRC}/deps/v8/build/common.gypi \
+		${WRKSRC}/deps/v8/tools/gyp/v8.gyp
+
 post-install:
 	${MKDIR} ${PREFIX}/lib/node_modules/
 	${TOUCH} ${PREFIX}/lib/node_modules/.keepme
--- node-devel.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130204011257.6FF27E8E>