pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 mk: Limit buildlink message to PKG_DEBUG...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6078cf2fd57
branches:  trunk
changeset: 388596:c6078cf2fd57
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Nov 23 11:38:43 2022 +0000

description:
mk: Limit buildlink message to PKG_DEBUG_LEVEL > 0.

ECHO_BUILDLINK_MSG only echos something if PKG_DEBUG_LEVEL > 0 anyway, so
previously we were invoking a shell for each buildlink3 dependency to do
precisely nothing.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 9559e988194d -r c6078cf2fd57 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Wed Nov 23 11:32:47 2022 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Wed Nov 23 11:38:43 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.252 2022/11/23 11:04:42 jperkin Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.253 2022/11/23 11:38:43 jperkin Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -613,7 +613,9 @@
 _BLNK_COOKIE.${_pkg_}=         ${BUILDLINK_DIR}/.buildlink_${_pkg_}_done
 
 _BLNK_TARGETS+=                        buildlink-${_pkg_}
+.if ${PKG_DEBUG_LEVEL} > 0
 _BLNK_TARGETS.${_pkg_}=                buildlink-${_pkg_}-message
+.endif
 _BLNK_TARGETS.${_pkg_}+=       ${_BLNK_COOKIE.${_pkg_}}
 _BLNK_TARGETS.${_pkg_}+=       buildlink-${_pkg_}-cookie
 



Home | Main Index | Thread Index | Old Index