Pav Lucistnik <[email protected]> writes:
> If you are FreeBSD port maintainer:
I'm not one.
>
> Nothing changes for you, if you don't want. If you want to enable the
> use of multiple cores in your port, add MAKE_JOBS_SAFE=yes to a block
> somewhere below dependency declarations. If you know your port does not
> handle -jX well, and want to disable it from using -jX even when user
> forces this feature, use MAKE_JOBS_UNSAFE=yes. And that's all to it.
Not all ports build using make/gmake. Wouldn't it be better to export
the number of parallel processes so maintainer can decide whether to use
it in his port build system? For example
Index: devel/boost/Makefile
===================================================================
RCS file: /home/csup/ports/devel/boost/Makefile,v
retrieving revision 1.42
diff -u -p -r1.42 Makefile
--- devel/boost/Makefile 20 Feb 2009 01:13:49 -0000 1.42
+++ devel/boost/Makefile 25 Mar 2009 06:12:06 -0000
@@ -17,6 +17,7 @@ COMMENT= Free peer-reviewed portable C++
USE_BZIP2= yes
USE_LDCONFIG= yes
+MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
.if defined(WITH_PYTHON) || defined (WITH_PYSTE)
@@ -87,6 +88,7 @@ PLIST_SUB+= BOOST_PYSTE="@comment "
BOOST_TOOLS= gcc
BJAM_OPTIONS= --layout=system
+BJAM_OPTIONS+= -j${_MAKE_JOBS:S/-j//}
.if defined (WITH_VERBOSE_BUILD)
BJAM_OPTIONS+= -d2
.endif
Is this completely discouraged?
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"