Subject: pkg/34437: net/bind9 Solaris USE_INET6 ipv6.h
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 08/31/2006 08:45:00
>Number:         34437
>Category:       pkg
>Synopsis:       net/bind9 Solaris USE_INET6 ipv6.h
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 31 08:45:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


=> Checking for missing run-time search paths in bind-9.3.2nb1
=> Checking for work-directory references in bind-9.3.2nb1
=> Checking file-check results for bind-9.3.2nb1
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/include/isc/ipv6.h
*** Error code 1

Stop.



>How-To-Repeat:


bmake install


>Fix:


Something goes wrong in Makefile or i don't understand !!!

here is part of original Makefile:
# include/isc/ipv6.h is installed on non-ipv6 platforms
.if defined(USE_INET6) &&  (${USE_INET6} == "YES")
PLIST_SUBST+=   IPV6H="@comment "
.else
PLIST_SUBST+=   IPV6H=
.endif

In my mk.conf I set USE_INET6=no
The problem is that configure detect Solaris is an ipv6 platform
and set ISC_IPV6_H='' and don't install it.

The test like 
${USE_INET6} == "YES" is wrong and must be like
empty(_OPSYS_HAS_INET6:M[nN][oO])