Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2010 00:44:39 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Greg Lewis <glewis@eyesbeyond.com>
Cc:        Greg Lewis <glewis@freebsd.org>, David Naylor <naylor.b.david@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: MAKE_JOBS and openjdk6
Message-ID:  <86lj7q31s8.fsf@gmail.com>
In-Reply-To: <20100828184017.GA78278@misty.eyesbeyond.com> (Greg Lewis's message of "Sat, 28 Aug 2010 11:40:17 -0700")
References:  <201006251808.29467.naylor.b.david@gmail.com> <861vazh881.fsf@gmail.com> <8662z58gid.fsf@gmail.com> <201008281428.06609.naylor.b.david@gmail.com> <20100828184017.GA78278@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lewis <glewis@eyesbeyond.com> writes:

> I would argue that overriding a private variable is a hack (other ports
> doing it doesn't make it not a hack).

You could've spoke up in ports/148754 about your concern in order for
portmgr@ to notice. The PR strived to be less intrusive than divorcing
build jobs from make jobs. Besides, I think adding more clutter to
Makefiles defeats purpose of having stuff in bsd.port.mk.

> Alternative patch attached which seems to achieve the same result from
> my perspective without overriding _MAKE_JOBS.

Hardcoding kern.smp.cpus and ignoring MAKE_JOBS_SAFE/UNSAFE doesn't seem
like a less hacky solution. I'd argue that it's more confusing because
MAKE_JOBS_UNSAFE is not equal to DISABLE_MAKE_JOBS.

> Index: Makefile
> ===================================================================
> RCS file: /var/fcvs/ports/java/openjdk6/Makefile,v
> retrieving revision 1.28
> diff -u -r1.28 Makefile
> --- Makefile	15 Aug 2010 05:23:06 -0000	1.28
> +++ Makefile	28 Aug 2010 18:27:44 -0000
> @@ -147,8 +147,14 @@
>  USE_DISPLAY=	yes
>  .endif
 
> -BUILD_JOBS_NUMBER!=	${SYSCTL} -n kern.smp.cpus
> +.if !defined(DISABLE_MAKE_JOBS)
> +.if defined(MAKE_JOBS_NUMBER)
> +BUILD_JOBS_NUMBER=	${MAKE_JOBS_NUMBER}
> +.else
> +BUILD_JOBS_NUMBER=	`${SYSCTL} -n kern.smp.cpus`
> +.endif
>  MAKE_ENV+=	HOTSPOT_BUILD_JOBS=${BUILD_JOBS_NUMBER}
> +.endif
 
>  COPYDIRS=	\
>  	hotspot/src/os/linux/launcher \



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