Ports options in make.conf vs. GSSIAPI

Stefan Bethke stb at lassitu.de
Mon Jan 16 17:46:27 UTC 2017


> Am 13.01.2017 um 14:12 schrieb Stefan Bethke <stb at lassitu.de>:
> 
> 
>> Am 13.01.2017 um 13:30 schrieb Stefan Bethke <stb at lassitu.de>:
>> 
>> For example, with dns/bind99, without options for that port in make.conf, I can run make showconfig and other build commands without issue.  As soon as I add either of these:
>> #OPTIONS_UNSET+=  GSSAPI_BASE
>> #OPTIONS_SET+=    GSSAPI_MIT
>> dns_bind99_UNSET+=  GSSAPI_BASE
>> dns_bind99_SET+=    GSSAPI_MIT
>> 
>> running make showconfig produces:
>> # make showconfig
>> ====> You must select one and only one option from the GSSAPI single
>> *** Error code 1
>> 
>> Stop.
>> make: stopped in /freebsd/checkout/ports/dns/bind99
> 
> I swear I’ve looked at this for I don’t know how long, but it’s really trivial:
> 
> Some ports have GSSAPI_BASE as their OPTIONS_DEFAULTS, some have GSSAPI_NONE.
> 
> $ find . -name Makefile | xargs grep 'OPTIONS_DEFAULT=.*GSSAPI_' | sort
> ./databases/mariadb101-server/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./dns/bind9-devel/Makefile:OPTIONS_DEFAULT=	SSL THREADS SIGCHASE IDN GSSAPI_NONE JSON
> ./dns/bind910/Makefile:OPTIONS_DEFAULT=	SSL THREADS SIGCHASE IDN GSSAPI_NONE JSON \
> ./dns/bind911/Makefile:OPTIONS_DEFAULT=	SSL THREADS SIGCHASE IDN GSSAPI_NONE JSON
> ./dns/bind99/Makefile:OPTIONS_DEFAULT=	SSL THREADS SIGCHASE IDN GSSAPI_NONE RRL DLZ_FILESYSTEM \
> ./mail/dovecot2-pigeonhole/Makefile:OPTIONS_DEFAULT=MANAGESIEVE GSSAPI_NONE
> ./mail/dovecot2/Makefile:OPTIONS_DEFAULT=KQUEUE GSSAPI_NONE
> ./mail/fetchmail/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./net-mgmt/adcli/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./security/cyrus-sasl2-gssapi/Makefile:OPTIONS_DEFAULT=		GSSAPI_BASE
> ./security/p5-Authen-Krb5-Simple/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./security/p5-Authen-Krb5/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./security/p5-GSSAPI/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./security/p5-Heimdal-Kadm5/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./security/py-kerberos/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> ./sysutils/msktutil/Makefile:OPTIONS_DEFAULT=GSSAPI_BASE
> ./www/mod_auth_kerb2/Makefile:OPTIONS_DEFAULT=	GSSAPI_BASE
> 
> In order to have only a single GSSAPI option selected, OPTIONS_UNSET must include both:
> OPTIONS_UNSET+=  GSSAPI_BASE GSSAPI_NONE

Here’s a small improvement to bsd.port.mk to print out all the active options for OPTION_SINGLEs and OPTION_RADIOs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216150


Stefan

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811






More information about the freebsd-ports mailing list