pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Output a more informative/desriptive err...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e298e887404f
branches: trunk
changeset: 469013:e298e887404f
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Feb 18 19:16:52 2004 +0000
description:
Output a more informative/desriptive error than:
cd: cd BUILDLINK_PREFIX.foo_not_found
We now say that the package wasn't installed at the time that we were
trying to buildlink its files.
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 605467228312 -r e298e887404f mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Wed Feb 18 19:13:30 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Wed Feb 18 19:16:52 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.93 2004/02/18 14:23:43 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.94 2004/02/18 19:16:52 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -546,6 +546,13 @@
${_BLNK_COOKIE.${_pkg_}}:
${_PKG_SILENT}${_PKG_DEBUG} \
case ${BUILDLINK_PREFIX.${_pkg_}} in \
+ *not_found) \
+ ${ECHO} "${_pkg_} is not installed; can't buildlink files."; \
+ ${FALSE}; \
+ ;; \
+ esac
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ case ${BUILDLINK_PREFIX.${_pkg_}} in \
${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \
*) buildlink_dir="${BUILDLINK_DIR}" ;; \
esac; \
Home |
Main Index |
Thread Index |
Old Index