12.12.2012 15:55 пользователь "David Coppa" <dco...@gmail.com> написал:
>
> On Tue, 11 Dec 2012, Amit Kulkarni wrote:
>
> > >> > > I tried with USE_GMAKE = Yes and it drives all cores....
> > >> > >
> > >> > > so I think please add CONFIGURE_ARGS = --parallel=${MAKE_JOBS}
and
> > >> > > USE_GMAKE = Yes and then both configure and build will go
parallel.
> > >> > >
>
> ...
>
> > > The use of GNU make like this seems bogus. I take it CMake
> > > isn't doing something right.
> >
> > as far back as 2008 I seem to remember cmake having implicit
> > dependency on gmake (i tried it on on Solaris,FreeBSD and then
> > OpenBSD). my builds would always parallel build with gmake but not
> > with plain os make. i still haven't figured out why. maybe david can
> > chime in with more...
> >
> > perhaps
> > http://cmake.3232098.n2.nabble.com/parallel-make-j-N-td7193296.html
> >
> > which leads to
> > http://public.kitware.com/Bug/view.php?id=12882
>
> Hi again,
>
> Since I've tried all the weapons in my arsenal and found nothing
> useful, I think I can be ok with Amit's approach.
>
> I did the usual tests and it doesn't seem to introduce any regressions
> after all...
>
> Summarizing:
>
> I've added "--parallel=${MAKE_JOBS}".
>
> Added "--verbose" that prints some nice informations, like
>
> System:           OpenBSD
> Doing parallel make: 2
>
> Removed USE_GROFF which is not needed.
>
> Added a "XXX" to the comment.
>
> Thoughts? OKs?

Until this go in (if ever), could please anyone make clear a few things?

1. USE_GMAKE=Yes in CMake's port enables parallel build of CMake itself
only, or does it equate to setting USE_GMAKE=Yes to all CMake-based ports
too? IIRC, CMake does not care, thus we can use GMake to build CMake itself
and our make(1) for building CMake-based ports, but I could be wrong.

2. Do we have to set USE_GMAKE=Yes for each CMake-based port where we want
to achieve parallel building (at least until problem with our make and
CMake is fixed)?

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/devel/cmake/Makefile,v
> retrieving revision 1.73
> diff -u -p -r1.73 Makefile
> --- Makefile    11 Dec 2012 11:51:39 -0000      1.73
> +++ Makefile    12 Dec 2012 11:42:10 -0000
> @@ -8,7 +8,7 @@ HOMEPAGE =      http://www.cmake.org/
>  CATEGORIES =   devel
>  COMMENT =      portable build system
>  DISTNAME =     cmake-2.8.10.2
> -REVISION =     0
> +REVISION =     1
>  MASTER_SITES = ${HOMEPAGE}files/v2.8/
>
>  MAINTAINER =   David Coppa <dco...@openbsd.org>
> @@ -29,12 +29,16 @@ CONFIGURE_STYLE =   simple
>  CONFIGURE_ARGS =       --prefix=${PREFIX} \
>                         --datadir=/share/cmake \
>                         --docdir=/share/doc/cmake \
> -                       --system-libs
> +                       --parallel=${MAKE_JOBS} \
> +                       --system-libs \
> +                       --verbose
>
>  PORTHOME =             ${WRKDIR}
>
>  SEPARATE_BUILD =       Yes
> -USE_GROFF =            Yes
> +
> +# XXX: GNU make enables dpb parallel builds
> +USE_GMAKE =            Yes
>
>  REGRESS_TARGET =       test
>
>

Reply via email to