From root@cyberbotx.com  Fri Feb 15 17:50:52 2013
Return-Path: <root@cyberbotx.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id DCDD1B47
	for <freebsd-gnats-submit@freebsd.org>; Fri, 15 Feb 2013 17:50:52 +0000 (UTC)
	(envelope-from root@cyberbotx.com)
Received: from qmta13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:243])
	by mx1.freebsd.org (Postfix) with ESMTP id C5F97B1E
	for <freebsd-gnats-submit@freebsd.org>; Fri, 15 Feb 2013 17:50:52 +0000 (UTC)
Received: from omta04.emeryville.ca.mail.comcast.net ([76.96.30.35])
	by qmta13.emeryville.ca.mail.comcast.net with comcast
	id 0fWY1l0070lTkoCADhqsl7; Fri, 15 Feb 2013 17:50:52 +0000
Received: from kirby.cyberbotx.com ([69.244.146.119])
	by omta04.emeryville.ca.mail.comcast.net with comcast
	id 0hqq1l00V2anbQt8QhqrqD; Fri, 15 Feb 2013 17:50:52 +0000
Received: by kirby.cyberbotx.com (Postfix, from userid 0)
	id 7005D28498; Fri, 15 Feb 2013 12:50:50 -0500 (EST)
Message-Id: <20130215175050.7005D28498@kirby.cyberbotx.com>
Date: Fri, 15 Feb 2013 12:50:50 -0500 (EST)
From: Naram Qashat <cyberbotx@cyberbotx.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: office@FreeBSD.org
Subject: [PATCH] editors/libreoffice: Respect user's MAKE_JOBS_NUMBER
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         176177
>Category:       ports
>Synopsis:       [PATCH] editors/libreoffice: Respect user's MAKE_JOBS_NUMBER
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    office
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 15 18:00:00 UTC 2013
>Closed-Date:    Fri Feb 15 22:21:56 UTC 2013
>Last-Modified:  Fri Feb 15 22:21:56 UTC 2013
>Originator:     Naram Qashat
>Release:        FreeBSD 8.3-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD kirby.cyberbotx.com 8.3-RELEASE-p4 FreeBSD 8.3-RELEASE-p4 #4: Mon Oct  1 19:56:21 EDT
>Description:
Currently, libreoffice attempts to use the maximum number of
cores on your CPU when building, completely ignoring any
MAKE_JOBS_NUMBER setting the user may have set in their
/etc/make.conf file.  This corrects the issue, which still
will use max cores if MAKE_JOBS_NUMBER is undefined.

Port maintainer (office@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- libreoffice-3.6.5_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/editors/libreoffice/Makefile ./Makefile
--- /usr/ports/editors/libreoffice/Makefile	2013-02-15 12:49:10.000000000 -0500
+++ ./Makefile	2013-02-15 12:33:57.000000000 -0500
@@ -178,7 +178,8 @@
 			--with-system-gettext \
 			--with-system-libpng \
 			--disable-gnome-vfs \
-			--enable-python=system
+			--enable-python=system \
+			--with-num-cpus=${MAKE_JOBS_NUMBER}
 
 # extensions
 CONFIGURE_ARGS+=	--enable-ext-pdfimport
--- libreoffice-3.6.5_2.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->office 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Feb 15 18:00:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176177 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/176177: commit references a PR
Date: Fri, 15 Feb 2013 22:19:17 +0000 (UTC)

 Author: jkim
 Date: Fri Feb 15 22:19:09 2013
 New Revision: 312312
 URL: http://svnweb.freebsd.org/changeset/ports/312312
 
 Log:
   - Do not let the configure script guess number of CPUs in the system.
   - Honor MAKE_JOBS_NUMBER if available.
   
   PR:		ports/176177
 
 Modified:
   head/editors/libreoffice/Makefile
 
 Modified: head/editors/libreoffice/Makefile
 ==============================================================================
 --- head/editors/libreoffice/Makefile	Fri Feb 15 22:08:37 2013	(r312311)
 +++ head/editors/libreoffice/Makefile	Fri Feb 15 22:19:09 2013	(r312312)
 @@ -105,6 +105,12 @@ JAVA_DESC=	Add java support (XML Filters
  
  ACLOCAL_ARGS=	-I "${WRKSRC}/m4"
  
 +.if defined(DISABLE_MAKE_JOBS)
 +MAKE_JOBS_NUMBER=	1
 +.else
 +MAKE_JOBS_NUMBER?=	`${SYSCTL} -n kern.smp.cpus`
 +.endif
 +
  CONFIGURE_ENV=		BDB_INCLUDE_DIR=${BDB_INCLUDE_DIR} \
  			BDB_LIB_DIR=${BDB_LIB_DIR} \
  			BDB_LIB_NAME=${BDB_LIB_NAME} \
 @@ -121,6 +127,7 @@ CONFIGURE_ARGS+=	--with-unix-wrapper="li
  			--exec-prefix=${PREFIX} \
  			--with-gnu-patch=${LOCALBASE}/bin/gpatch \
  			--with-external-tar=${DISTDIR}/${DIST_SUBDIR} \
 +			--with-num-cpus=${MAKE_JOBS_NUMBER} \
  			--with-solver-and-workdir-root=${TMPDIR}/lobuild \
  			--with-system-boost \
  			--with-system-clucene \
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: jkim 
State-Changed-When: Fri Feb 15 22:21:18 UTC 2013 
State-Changed-Why:  
Committed (with some improvement), thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176177 
>Unformatted:
