diff options
author | gavan <gavan@pkgsrc.org> | 2003-10-02 14:41:42 +0000 |
---|---|---|
committer | gavan <gavan@pkgsrc.org> | 2003-10-02 14:41:42 +0000 |
commit | bf5773bd5148bce8027739d5659014140c1cd423 (patch) | |
tree | 170389aa98b7abb34e89b7c3e47ccb4bf01fef58 /mk | |
parent | 7cc6e02b6e2d2287f3727719c022e7eb7a494651 (diff) | |
download | pkgsrc-bf5773bd5148bce8027739d5659014140c1cd423.tar.gz |
Fail-safe check for circular dependencies.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 4a5b413f3a1..72f5087e323 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -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 @@ build-defs-message: ${WRKDIR} . 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. |