pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Replaced _PKG_SILENT and _PKG_DEBUG with RUN.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/80e297181ba1
branches:  trunk
changeset: 556202:80e297181ba1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Mar 17 22:13:36 2009 +0000

description:
Replaced _PKG_SILENT and _PKG_DEBUG with RUN.

diffstat:

 mk/fetch/fetch.mk         |  14 +++++++-------
 mk/flavor/pkg/check.mk    |  11 ++++-------
 mk/flavor/pkg/views.mk    |   6 +++---
 mk/fuse.buildlink3.mk     |   4 ++--
 mk/oss.builtin.mk         |   4 ++--
 mk/package/bsd.package.mk |   4 ++--
 mk/package/package.mk     |   8 ++++----
 mk/plist/plist.mk         |   4 ++--
 mk/plist/print-plist.mk   |   9 ++++-----
 mk/tools/autoconf.mk      |   4 ++--
 mk/tools/bsd.tools.mk     |   8 ++++----
 mk/tools/create.mk        |   9 ++++-----
 mk/tools/intltool.mk      |   4 ++--
 13 files changed, 42 insertions(+), 47 deletions(-)

diffs (truncated from 312 to 300 lines):

diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/fetch/fetch.mk
--- a/mk/fetch/fetch.mk Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/fetch/fetch.mk Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 .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 @@
                        ${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 @@
 .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;                                         \
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/flavor/pkg/check.mk
--- a/mk/flavor/pkg/check.mk    Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/flavor/pkg/check.mk    Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
                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."
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/flavor/pkg/views.mk
--- a/mk/flavor/pkg/views.mk    Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/flavor/pkg/views.mk    Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
        @${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 @@
        @${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                                           \
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/fuse.buildlink3.mk
--- a/mk/fuse.buildlink3.mk     Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/fuse.buildlink3.mk     Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
        @${STEP_MSG} "Magical transformations for fuse on NetBSD."
 
 override-fuse-pkgconfig:
-       ${_PKG_SILENT}${_PKG_DEBUG}set -e;              \
+       ${RUN}                                          \
        ${MKDIR} ${BLKDIR_PKGCFG};                      \
        {                                               \
        ${ECHO} "prefix=/usr";                          \
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/oss.builtin.mk
--- a/mk/oss.builtin.mk Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/oss.builtin.mk Tue Mar 17 22:13:36 2009 +0000
@@ -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_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 \
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/package/bsd.package.mk
--- a/mk/package/bsd.package.mk Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/package/bsd.package.mk Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 ### 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}
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/package/package.mk
--- a/mk/package/package.mk     Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/package/package.mk     Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 ###
 .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.
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/plist/plist.mk
--- a/mk/plist/plist.mk Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/plist/plist.mk Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 
 # 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";\
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/plist/print-plist.mk
--- a/mk/plist/print-plist.mk   Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/plist/print-plist.mk   Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 .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 @@
                        next;                                           \
                }                                                       \
                { print $$0; }'
-       ${_PKG_SILENT}${_PKG_DEBUG}\
+       ${RUN}\
        for i in `${_PRINT_PLIST_DIRS_CMD}                              \
                        | ${SORT} -r                                    \
                        | ${AWK} '                                      \
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/tools/autoconf.mk
--- a/mk/tools/autoconf.mk      Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/tools/autoconf.mk      Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 .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                           \
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/tools/bsd.tools.mk
--- a/mk/tools/bsd.tools.mk     Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/tools/bsd.tools.mk     Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 ###
 .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)
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/tools/create.mk
--- a/mk/tools/create.mk        Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/tools/create.mk        Tue Mar 17 22:13:36 2009 +0000
@@ -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 @@
 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 @@
                ;;                                                      \
        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
diff -r 4ebafcdd8f90 -r 80e297181ba1 mk/tools/intltool.mk
--- a/mk/tools/intltool.mk      Tue Mar 17 22:10:48 2009 +0000
+++ b/mk/tools/intltool.mk      Tue Mar 17 22:13:36 2009 +0000
@@ -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 $



Home | Main Index | Thread Index | Old Index