net/bind914: Fix build under NetBSD-current
This package automatically enabled the "blacklist" option under recent enough versions of NetBSD. However in NetBSD-current the "blacklist" library has been replaced by the "blocklist" library which BIND currently doesn't support. And as result the build failed with the default option because the "blacklist" could not be found. Change the option check to only enable this option under NetBSD if the "blacklist" header file can be found. This fixes the build under NetBSD-current with the default options. The correct long term fixed would be: * Wait for a BIND version which supports "blocklist" instead of "blacklist" * Add "blocklist" as a package in "pkgsrc" with an appropriate "builtin.mk"
This commit is contained in:
parent
792a5bd66a
commit
03ccbec1b5
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: options.mk,v 1.4 2020/05/10 14:25:42 rillig Exp $
|
||||
# $NetBSD: options.mk,v 1.5 2020/06/30 17:27:06 tron Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.bind914
|
||||
PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
|
||||
|
@ -23,7 +23,7 @@ PKG_SUGGESTED_OPTIONS+= threads
|
|||
.endif
|
||||
|
||||
.if ${OPSYS} == "NetBSD"
|
||||
. if !empty(OS_VERSION:M[8-9].*)
|
||||
. if exists(/usr/include/blacklist.h)
|
||||
PKG_SUGGESTED_OPTIONS+= blacklist
|
||||
. endif
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue