Replaced _PKG_SILENT and _PKG_DEBUG with RUN.

This commit is contained in:
rillig 2009-03-17 22:13:36 +00:00
parent 25c04e4c1e
commit b1bf3ebab8
13 changed files with 42 additions and 47 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: fetch.mk,v 1.41 2009/02/17 10:42:45 joerg Exp $
# $NetBSD: fetch.mk,v 1.42 2009/03/17 22:13:36 rillig Exp $
_MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
_MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@ -249,8 +249,8 @@ _FETCH_ARGS+= -d ${DIST_SUBDIR}
.PHONY: do-fetch-file
do-fetch-file: .USE
@${STEP_MSG} "Fetching ${.TARGET:T}"
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} ${MKDIR} ${.TARGET:H}
${RUN} \
for d in "" ${DIST_PATH:S/:/ /g}; do \
case $$d in \
""|${DISTDIR}) continue ;; \
@ -262,12 +262,12 @@ do-fetch-file: .USE
${LN} -s $$file ${.TARGET}; \
fi; \
done
${_PKG_SILENT}${_PKG_DEBUG}set -e; \
${RUN} \
unsorted_sites="${SITES.${.TARGET:T:S/=/--/}}"; \
sites="${_ORDERED_SITES} ${_MASTER_SITE_BACKUP}"; \
cd ${.TARGET:H:S/\/${DIST_SUBDIR}$//} && \
${_FETCH_CMD} ${_FETCH_ARGS} ${.TARGET:T} $$sites
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} \
if ${TEST} ! -f ${.TARGET}; then \
${ERROR_MSG} "Could not fetch the following file:"; \
${ERROR_MSG} " ${.TARGET:T}"; \
@ -302,9 +302,9 @@ mirror-distfiles: fetch
.if !target(show-distfiles)
show-distfiles:
. if defined(PKG_FAIL_REASON)
${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
${RUN} ${DO_NADA}
. else
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} \
for file in "" ${_CKSUMFILES}; do \
if [ "X$$file" = "X" ]; then continue; fi; \
${ECHO} $$file; \

View file

@ -1,4 +1,4 @@
# $NetBSD: check.mk,v 1.10 2009/02/11 14:34:36 joerg Exp $
# $NetBSD: check.mk,v 1.11 2009/03/17 22:13:36 rillig Exp $
#
# _flavor-check-vulnerable:
@ -6,7 +6,7 @@
# file exists.
#
_flavor-check-vulnerable: .PHONY
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN}\
_PKGVULNDIR=`${_EXTRACT_PKGVULNDIR}`; \
vulnfile=$$_PKGVULNDIR/pkg-vulnerabilities; \
if ${TEST} ! -f "$$vulnfile"; then \
@ -16,8 +16,5 @@ _flavor-check-vulnerable: .PHONY
exit 0; \
fi; \
${PHASE_MSG} "Checking for vulnerabilities in ${PKGNAME}"; \
${AUDIT_PACKAGES} ${_AUDIT_PACKAGES_CMD} ${AUDIT_PACKAGES_FLAGS} ${PKGNAME}; \
if ${TEST} "$$?" -ne 0; then \
${ERROR_MSG} "Define ALLOW_VULNERABLE_PACKAGES in mk.conf or IGNORE_URLS in audit-packages.conf(5) if this package is absolutely essential."; \
${FALSE}; \
fi
${AUDIT_PACKAGES} ${_AUDIT_PACKAGES_CMD} ${AUDIT_PACKAGES_FLAGS} ${PKGNAME} \
|| ${FAIL_MSG} "Define ALLOW_VULNERABLE_PACKAGES in mk.conf or IGNORE_URLS in audit-packages.conf(5) if this package is absolutely essential."

View file

@ -1,4 +1,4 @@
# $NetBSD: views.mk,v 1.5 2007/01/05 18:52:08 rillig Exp $
# $NetBSD: views.mk,v 1.6 2009/03/17 22:13:36 rillig Exp $
# By default, all packages attempt to link into the views.
.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
@ -36,7 +36,7 @@ build-views: su-target
@${STEP_MSG} "Building views for ${PKGNAME}"
su-build-views:
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} \
${MKDIR} ${LOCALBASE}; \
for v in ${PKGVIEWS}; do \
case "$$v" in \
@ -78,7 +78,7 @@ remove-views: su-target
@${STEP_MSG} "Removing ${PKGNAME} from views"
su-remove-views:
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} \
for v in "" ${PKGVIEWS}; do \
${TEST} -n "$$v" || continue; \
case "$$v" in \

View file

@ -1,4 +1,4 @@
# $NetBSD: fuse.buildlink3.mk,v 1.8 2007/10/17 10:43:38 rillig Exp $
# $NetBSD: fuse.buildlink3.mk,v 1.9 2009/03/17 22:13:36 rillig Exp $
#
# Makefile fragment for packages using the FUSE framework.
#
@ -28,7 +28,7 @@ override-message-fuse-pkgconfig:
@${STEP_MSG} "Magical transformations for fuse on NetBSD."
override-fuse-pkgconfig:
${_PKG_SILENT}${_PKG_DEBUG}set -e; \
${RUN} \
${MKDIR} ${BLKDIR_PKGCFG}; \
{ \
${ECHO} "prefix=/usr"; \

View file

@ -1,4 +1,4 @@
# $NetBSD: oss.builtin.mk,v 1.2 2006/04/06 06:23:06 reed Exp $
# $NetBSD: oss.builtin.mk,v 1.3 2009/03/17 22:13:36 rillig Exp $
BUILTIN_PKG:= oss
@ -77,7 +77,7 @@ BUILDLINK_TRANSFORM+= rm:-lossaudio
BUILDLINK_TARGETS+= buildlink-oss-soundcard-h
.PHONY: buildlink-oss-soundcard-h
buildlink-oss-soundcard-h:
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} \
sys_soundcard_h=${BUILDLINK_DIR}/include/sys/soundcard.h; \
soundcard_h=${BUILDLINK_PREFIX.oss}/include/soundcard.h; \
if ${TEST} ! -f $${sys_soundcard_h} -a -f $${soundcard_h}; then \

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.package.mk,v 1.10 2008/01/04 01:46:27 rillig Exp $
# $NetBSD: bsd.package.mk,v 1.11 2009/03/17 22:13:36 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to binary packages.
@ -50,4 +50,4 @@ repackage: package-clean package
### phase so that the "package" target may be re-invoked.
###
package-clean:
${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${_COOKIE.package}
${RUN} ${RM} -f ${_COOKIE.package}

View file

@ -1,4 +1,4 @@
# $NetBSD: package.mk,v 1.19 2007/03/08 23:33:35 rillig Exp $
# $NetBSD: package.mk,v 1.20 2009/03/17 22:13:36 rillig Exp $
#
# This file provides the code for the "package" phase.
#
@ -69,9 +69,9 @@ package-message:
###
.PHONY: package-cookie
package-cookie:
${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_COOKIE.package} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_COOKIE.package:H}
${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} > ${_COOKIE.package}
${RUN} ${TEST} ! -f ${_COOKIE.package} || ${FALSE}
${RUN} ${MKDIR} ${_COOKIE.package:H}
${RUN} ${ECHO} ${PKGNAME} > ${_COOKIE.package}
######################################################################
### The targets below are run with elevated privileges.

View file

@ -1,4 +1,4 @@
# $NetBSD: plist.mk,v 1.38 2008/10/30 18:48:13 joerg Exp $
# $NetBSD: plist.mk,v 1.39 2009/03/17 22:13:36 rillig Exp $
#
# This Makefile fragment handles the creation of PLISTs for use by
# pkg_create(8).
@ -264,7 +264,7 @@ ${PLIST}:
# for list of keywords see pkg_create(1)
${_PLIST_NOKEYWORDS}: ${PLIST}
${_PKG_SILENT}${_PKG_DEBUG} ${AWK} < ${PLIST} > ${.TARGET} ' \
${RUN} ${AWK} < ${PLIST} > ${.TARGET} ' \
BEGIN { \
FILTER="@("; \
FILTER=FILTER"cd|cwd|src|exec|unexec|mode|option";\

View file

@ -1,4 +1,4 @@
# $NetBSD: print-plist.mk,v 1.16 2008/07/23 23:46:26 seb Exp $
# $NetBSD: print-plist.mk,v 1.17 2009/03/17 22:13:36 rillig Exp $
###
### Automatic PLIST generation
@ -139,9 +139,8 @@ _PRINT_PLIST_LIBTOOLIZE_FILTER?= ${CAT}
.PHONY: print-PLIST
.if !target(print-PLIST)
print-PLIST:
${_PKG_SILENT}${_PKG_DEBUG}\
${ECHO} '@comment $$'NetBSD'$$'
${_PKG_SILENT}${_PKG_DEBUG}\
${RUN} ${ECHO} '@comment $$'NetBSD'$$'
${RUN}\
shlib_type=${SHLIB_TYPE:Q}; \
case $$shlib_type in \
"a.out") genlinks=1 ;; \
@ -175,7 +174,7 @@ print-PLIST:
next; \
} \
{ print $$0; }'
${_PKG_SILENT}${_PKG_DEBUG}\
${RUN}\
for i in `${_PRINT_PLIST_DIRS_CMD} \
| ${SORT} -r \
| ${AWK} ' \

View file

@ -1,4 +1,4 @@
# $NetBSD: autoconf.mk,v 1.14 2006/12/15 13:15:07 martti Exp $
# $NetBSD: autoconf.mk,v 1.15 2009/03/17 22:13:36 rillig Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@ -206,7 +206,7 @@ LIBTOOL_M4_OVERRIDE?= libtool.m4 */libtool.m4 */*/libtool.m4
.PHONY: tools-libtool-m4-override
tools-libtool-m4-override:
.for _pattern_ in ${LIBTOOL_M4_OVERRIDE}
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} \
cd ${WRKSRC}; \
for cfile in ${_pattern_:S/libtool.m4$/configure/}; do \
if ${TEST} -f "$$cfile"; then \

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.tools.mk,v 1.49 2008/01/04 01:46:27 rillig Exp $
# $NetBSD: bsd.tools.mk,v 1.50 2009/03/17 22:13:36 rillig Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@ -118,9 +118,9 @@ tools-message:
###
.PHONY: tools-cookie
tools-cookie:
${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_COOKIE.tools} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_COOKIE.tools:H}
${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${USE_TOOLS:Q} > ${_COOKIE.tools}
${RUN} ${TEST} ! -f ${_COOKIE.tools} || ${FALSE}
${RUN} ${MKDIR} ${_COOKIE.tools:H}
${RUN} ${ECHO} ${USE_TOOLS:Q} > ${_COOKIE.tools}
######################################################################
### override-tools (PRIVATE)

View file

@ -1,4 +1,4 @@
# $NetBSD: create.mk,v 1.3 2008/02/13 09:11:01 rillig Exp $
# $NetBSD: create.mk,v 1.4 2009/03/17 22:13:36 rillig Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@ -148,9 +148,8 @@ TOOLS_SCRIPT_DFLT.${_t_}= \
override-tools: ${TOOLS_CMD.${_t_}}
${TOOLS_CMD.${_t_}}:
${_PKG_SILENT}${_PKG_DEBUG}${TEST} -d ${.TARGET:H:Q} || \
${MKDIR} ${.TARGET:H:Q}
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} ${TEST} -d ${.TARGET:H:Q} || ${MKDIR} ${.TARGET:H:Q}
${RUN} \
if ${TEST} -n ${TOOLS_SCRIPT.${_t_}:Q}""; then \
create=wrapper; \
script=${TOOLS_SCRIPT.${_t_}:Q}; \
@ -183,7 +182,7 @@ ${TOOLS_CMD.${_t_}}:
;; \
esac
. for _a_ in ${TOOLS_ALIASES.${_t_}}
${_PKG_SILENT}${_PKG_DEBUG} \
${RUN} \
${TEST} ${.TARGET:Q} = ${.TARGET:H:Q}/${_a_} || \
${LN} -fs ${.TARGET:T:Q} ${.TARGET:H:Q}/${_a_}
. endfor

View file

@ -1,4 +1,4 @@
# $NetBSD: intltool.mk,v 1.4 2008/12/05 08:25:15 wiz Exp $
# $NetBSD: intltool.mk,v 1.5 2009/03/17 22:13:36 rillig Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@ -84,7 +84,7 @@ override-message-intltool:
.PHONY: override-intltool-${_t_}
override-intltool: override-intltool-${_t_}
override-intltool-${_t_}:
${_PKG_SILENT}${_PKG_DEBUG}set -e; \
${RUN} \
cd ${WRKSRC}; for f in ${_t_} */${_t_} */*/${_t_}; do \
if ${TEST} -f "$$f"; then \
${RM} -f $$f; \