pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 During the "extract" phase (which is whe...
details: https://anonhg.NetBSD.org/pkgsrc/rev/eba908abd965
branches: trunk
changeset: 470932:eba908abd965
user: jlam <jlam%pkgsrc.org@localhost>
date: Sat Mar 13 03:33:31 2004 +0000
description:
During the "extract" phase (which is when "install-depends" is invoked),
add all of the direct _and_ indirect dependencies to the DEPENDS list.
This causes "install-depends" to check that every dependency, whether
it be direct or indirect, is up-to-date. This fixes PR 24721 by Jeremy
Reed.
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r 71fb593178fd -r eba908abd965 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Sat Mar 13 01:10:57 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Sat Mar 13 03:33:31 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.114 2004/03/12 18:45:20 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.115 2004/03/13 03:33:31 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -135,6 +135,17 @@
. endif
.endfor
+# _BLNK_RECURSIVE_DEPENDS lists all of the packages that this package
+# directly or indirectly depends on.
+#
+_BLNK_RECURSIVE_DEPENDS= # empty
+.for _pkg_ in ${_BLNK_PACKAGES}
+. if empty(_BLNK_RECURSIVE_DEPENDS:M${_pkg_}) && \
+ !empty(USE_BUILTIN.${_pkg_}:M[nN][oO])
+_BLNK_RECURSIVE_DEPENDS+= ${_pkg_}
+. endif
+.endfor
+
# _BLNK_DEPENDS contains all of the elements of BUILDLINK_DEPENDS that
# shouldn't be skipped and that name packages for which we aren't using
# the built-in software and hence need to add a dependency.
@@ -159,8 +170,11 @@
#
_BLNK_PHASES_SKIP_DEPENDS= fetch patch tools buildlink configure \
build test
+_BLNK_PHASES_RECURSIVE_DEPENDS= extract
.if !empty(_BLNK_PHASES_SKIP_DEPENDS:M${PKG_PHASE})
_BLNK_DEPENDS_LIST= # empty
+.elif !empty(_BLNK_PHASES_RECURSIVE_DEPENDS:M${PKG_PHASE})
+_BLNK_DEPENDS_LIST= ${_BLNK_RECURSIVE_DEPENDS}
.else
_BLNK_DEPENDS_LIST= ${_BLNK_DEPENDS}
.endif
Home |
Main Index |
Thread Index |
Old Index