Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2015 13:50:43 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r395484 - head/Mk
Message-ID:  <201508281350.t7SDohL0094799@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Fri Aug 28 13:50:43 2015
New Revision: 395484
URL: https://svnweb.freebsd.org/changeset/ports/395484

Log:
  Mk/bsd.port.mk: Add PKG_CREATE_VERBOSE functionality
  
  When PKG_CREATE_VERBOSE is set, the "-v" option will be added to
  the arguments for PKG_CREATE.  The intended use is for poudriere and
  other build monitors that can time out.  The verbose option of pkg
  create will periodically emit output as the package is being created.
  It would be set mk.conf (the DragonFly version of poudriere will set
  it unconditionally during package building).
  
  Approved by:	portmgr
  Differential Revision:	https://reviews.freebsd.org/D3507

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Fri Aug 28 13:39:56 2015	(r395483)
+++ head/Mk/bsd.port.mk	Fri Aug 28 13:50:43 2015	(r395484)
@@ -1024,6 +1024,10 @@ FreeBSD_MAINTAINER=	portmgr@FreeBSD.org
 #				  has been specified in distinfo.  This is useful
 #				  when using an alternate FETCH_CMD.
 #
+# PKG_CREATE_VERBOSE		- If set, pass the -v option to pkg create which
+#				  ensures periodic output during packaging and
+#				  will help prevent timeouts by build monitors
+#
 # End of the list of all variables that need to be defined in a port.
 # Most port authors should not need to understand anything after this point.
 #
@@ -3453,6 +3457,9 @@ do-install:
 
 .if !target(do-package)
 PKG_CREATE_ARGS=	-r ${STAGEDIR} -m ${METADIR} -p ${TMPPLIST}
+.if defined(PKG_CREATE_VERBOSE)
+PKG_CREATE_ARGS+=	-v
+.endif
 do-package: create-manifest
 do-package: ${TMPPLIST}
 	@if [ -d ${PACKAGES} ]; then \



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