pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 If we can't find the package with pkg_in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2b51d018ccb
branches:  trunk
changeset: 511444:d2b51d018ccb
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Apr 14 16:59:04 2006 +0000

description:
If we can't find the package with pkg_info when computing BUILDLINK_PREFIX,
make the resulting error message more useful for debugging purposes
by including the name of the variable in a null statement that is part
of the command executed.

diffstat:

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

diffs (22 lines):

diff -r 9997ee665ea3 -r d2b51d018ccb mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Fri Apr 14 14:48:50 2006 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Fri Apr 14 16:59:04 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.173 2006/04/06 06:23:06 reed Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.174 2006/04/14 16:59:04 jlam Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -321,8 +321,10 @@
 BUILDLINK_PREFIX.${_pkg_}=     ${_BLNK_PKG_DBDIR.${_pkg_}}
 .    else
 .      if empty(BUILDLINK_PKGNAME.${_pkg_}:M*not_found)
-BUILDLINK_PREFIX.${_pkg_}!=    \
-       ${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} | ${SED}  -e "s,^[^/]*,,;q"
+BUILDLINK_PREFIX.${_pkg_}!=                                            \
+       ${TRUE} Computing BUILDLINK_PREFIX.${_pkg_:Q};                  \
+       ${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} |  \
+       ${SED}  -e "s,^[^/]*,,;q"
 .      else
 BUILDLINK_PREFIX.${_pkg_}=     BUILDLINK_PREFIX.${_pkg_}_not_found
 .      endif



Home | Main Index | Thread Index | Old Index