pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Fail-safe check for circular dependencies.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93facb320296
branches:  trunk
changeset: 462430:93facb320296
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Oct 02 14:41:42 2003 +0000

description:
Fail-safe check for circular dependencies.

diffstat:

 mk/bsd.pkg.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r dcd63e757cdc -r 93facb320296 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu Oct 02 14:20:35 2003 +0000
+++ b/mk/bsd.pkg.mk     Thu Oct 02 14:41:42 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1291 2003/09/28 08:52:13 grant Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1292 2003/10/02 14:41:42 gavan Exp $
 #
 # This file is in the public domain.
 #
@@ -62,6 +62,11 @@
 .  endif
 .endif
 
+# Fail-safe in the case of circular dependencies
+.if defined(_PKGSRC_DEPS) && defined(PKGNAME) && !empty(_PKGSRC_DEPS:M${PKGNAME})
+    PKG_FAIL_REASON+="Circular dependency detected"
+.endif
+
 ##### Some NetBSD platforms permitted the user to set the binary format while
 ##### they were in the process of transitioning to ELF. Packages with BSD-style
 ##### make systems need this setting to be passed in.



Home | Main Index | Thread Index | Old Index