Subject: Re: Have pkgsrc building make use of SMP?
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-pkg
Date: 04/05/2005 14:30:00
On Tue, 5 Apr 2005, Hubert Feyrer wrote:
> The way to go is pass -j17 as MAKE_FLAGS to the Makefile being called for the 
> pkg to build. If you want to work on this, I may be able to review.

For an implementation, try the following patch with MAKE_J=-j3 in 
/etc/mk.conf:

Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1607
diff -u -r1.1607 bsd.pkg.mk
--- bsd.pkg.mk  5 Apr 2005 03:18:00 -0000       1.1607
+++ bsd.pkg.mk  5 Apr 2005 12:28:03 -0000
@@ -2182,7 +2182,7 @@
  # Build

  BUILD_DIRS?=           ${WRKSRC}
-BUILD_MAKE_FLAGS?=     ${MAKE_FLAGS}
+BUILD_MAKE_FLAGS?=     ${MAKE_J} ${MAKE_FLAGS}

  .PHONY: do-build
  .if !target(do-build)



What I'm afraid of is the non-pleasant, hard part - that pkg Makefiles 
won't properly handle -j. :)


  - Hubert

-- 
NetBSD - Free AND Open!      (And of course secure, portable, yadda yadda)