Date: Wed, 25 Mar 2009 09:26:47 +0300 From: Anonymous <swell.k@gmail.com> To: pav@FreeBSD.org Cc: ports@FreeBSD.org Subject: Re: HEADS UP multi processor compilations for everyone Message-ID: <86eiwmglso.fsf@gmail.com> In-Reply-To: <1237901632.1849.19.camel@pav.hide.vol.cz> (Pav Lucistnik's message of "Tue, 24 Mar 2009 14:33:52 %2B0100") References: <1237901632.1849.19.camel@pav.hide.vol.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-= Pav Lucistnik <pav@FreeBSD.org> 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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=mark.diff 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? --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86eiwmglso.fsf>