Bug 176177 - [PATCH] editors/libreoffice: Respect user's MAKE_JOBS_NUMBER
Summary: [PATCH] editors/libreoffice: Respect user's MAKE_JOBS_NUMBER
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Office Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 18:00 UTC by Naram Qashat
Modified: 2013-02-15 22:21 UTC (History)
1 user (show)

See Also:


Attachments
libreoffice-3.6.5_2.patch (459 bytes, patch)
2013-02-15 18:00 UTC, Naram Qashat
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naram Qashat 2013-02-15 18:00:00 UTC
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)
Comment 1 Edwin Groothuis freebsd_committer 2013-02-15 18:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->office

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2013-02-15 22:19:17 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"
Comment 3 Jung-uk Kim freebsd_committer 2013-02-15 22:21:18 UTC
State Changed
From-To: open->closed

Committed (with some improvement), thanks!