svn commit: r395484 - head/Mk
John Marino
marino at FreeBSD.org
Fri Aug 28 13:50:44 UTC 2015
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 at 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 \
More information about the svn-ports-all
mailing list