Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2009 22:44:57 +0100
From:      cpghost <cpghost@cordula.ws>
To:        freebsd-questions@freebsd.org
Cc:        dougb@FreeBSD.org
Subject:   make -jN build with portmaster
Message-ID:  <20090125214457.GA4568@phenom.cordula.ws>

next in thread | raw e-mail | index | archive | help
To build ports in parallel on a 4 core machine, I usually
do this manually:

  # cd /usr/ports/some/port
  # make configure && make -j5 build && make install clean

because all steps except "make build" are not compatible
with -jN (some ports don't work with -jN in the "make build"
phase either, but they are quite rare).

Now, is there a way to teach portmaster to build or rebuild
ports this way? The only workaround for now is something
like:

  # cd /usr/ports/some/port
  # make configure && make -j5 build
  # portmaster -b -d -C <name-of-some/port-in-pkg-var-db>

which doesn't clean up some/port/work before building,
thus using the manual parallel step before.

So, how can portmaster run 'make -jN build' instead of
simple 'make build'?

(I know about portmaster's -m option, but passing -jN to
it won't work, as it would also try to apply this to other
phases than "make build").

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



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