Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  2 Apr 2009 02:59:34 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/133287: [bsd.scons.mk] support parallel build
Message-ID:  <20090401225934.C891710883C@hades.panopticon>
Resent-Message-ID: <200904012300.n31N04p8086718@freefall.freebsd.org>

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

>Number:         133287
>Category:       ports
>Synopsis:       [bsd.scons.mk] support parallel build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 01 23:00:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Mar 21 18:50:30 MSK 2009 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
Support parallel build with scons. It has the same arguments as make (-jXXX), so using ${_MAKE_JOBS} just works.
>How-To-Repeat:
>Fix:

--- bsd.scons.mk.patch begins here ---
Index: bsd.scons.mk
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/Mk/bsd.scons.mk,v
retrieving revision 1.10
diff -u -r1.10 bsd.scons.mk
--- bsd.scons.mk	19 Apr 2008 17:46:02 -0000	1.10
+++ bsd.scons.mk	1 Apr 2009 22:56:26 -0000
@@ -76,8 +76,8 @@
 .if !target(do-build)
 do-build:
 	@cd ${BUILD_WRKSRC} && \
-	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${SCONS_ARGS} \
-	${SCONS_TARGET}
+	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${_MAKE_JOBS} \
+	${SCONS_ARGS} ${SCONS_TARGET}
 .endif
 
 .if !target(do-install)
--- bsd.scons.mk.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?20090401225934.C891710883C>