make -jN build with portmaster
cpghost
cpghost at cordula.ws
Sun Jan 25 13:43:24 PST 2009
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/
More information about the freebsd-questions
mailing list