1 # $NetBSD: spec,v 1.2 2004/08/28 02:21:54 jlam Exp $
3 # Trigger the circular dependency detection logic to fail the package build before
4 # actually wasting time building anything.
6 _PKGSRC_DEPS=`cd ../../devel/bison && make show-var VARNAME=PKGNAME`
7 MAKEARGS_TEST="install _PKGSRC_DEPS=${_PKGSRC_DEPS}"
8 MAKEARGS_CLEAN="clean clean-depends"
10 # This test doesn't work if flex or bison are installed.
14 MAKEARGS_TEST="PKG_FAIL_REASON=flex-must-be-deinstalled"
19 MAKEARGS_TEST="PKG_FAIL_REASON=bison-must-be-deinstalled"
25 # This test should fail with a circular dependency error
29 output_require "Required package bison"
30 output_require "Circular dependency detected"
32 # This test should not start configuring anything
34 output_prohibit "Configuring for"
35 output_prohibit "bison-must-be-deinstalled"
36 output_prohibit "flex-must-be-deinstalled"