blob: e9027d4c131b2eeb2cf1590eed731226e3d3b44c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: spec,v 1.1 2005/02/12 14:45:53 gavan Exp $
# Trigger the circular dependency detection logic to fail the package build before
# actually wasting time building anything.
_PKGSRC_DEPS=`cd ../../devel/bison && make show-var VARNAME=PKGNAME`
MAKEARGS_TEST="install _PKGSRC_DEPS=${_PKGSRC_DEPS}"
MAKEARGS_CLEAN="clean clean-depends"
# This test doesn't work if flex or bison are installed.
if pkg_info -qe flex
then
MAKEARGS_TEST="PKG_FAIL_REASON=flex-must-be-deinstalled"
fi
if pkg_info -qe bison
then
MAKEARGS_TEST="PKG_FAIL_REASON=bison-must-be-deinstalled"
fi
check_result()
{
# This test should fail with a circular dependency error
exit_status 1
output_require "Required package bison"
output_require "Circular dependency detected"
# This test should not start configuring anything
output_prohibit "Configuring for"
output_prohibit "bison-must-be-deinstalled"
output_prohibit "flex-must-be-deinstalled"
}
|