Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2017 13:30:09 +0100
From:      Stefan Bethke <stb@lassitu.de>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Ports options in make.conf vs. GSSIAPI
Message-ID:  <E7D08169-A157-4C7C-B2F2-EAA524D0E8E9@lassitu.de>

next in thread | raw e-mail | index | archive | help
I=E2=80=99m having trouble selecting options for ports through =
make.conf.

For most ports, this works fine.  I have set NO_DIALOG=3Dyes so I can =
run ports commands from scripts and cron without being stuck in a =
dialog; for those few ports where I do need custom options, I set =
appropriate _SET and _UNSET options in make.conf, for example:
graphics_ImageMagick_SET+=3D      PANGO
graphics_ImageMagick_UNSET+=3D    X11
graphics_ImageMagick7_UNSET+=3D   X11

However, if I try to do the same with GSSAPI, ports won=E2=80=99t build =
unless I do create a config file for that port.

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+=3D  GSSAPI_BASE
#OPTIONS_SET+=3D    GSSAPI_MIT
dns_bind99_UNSET+=3D  GSSAPI_BASE
dns_bind99_SET+=3D    GSSAPI_MIT

running make showconfig produces:
# make showconfig
=3D=3D=3D=3D> You must select one and only one option from the GSSAPI =
single
*** Error code 1

Stop.
make: stopped in /freebsd/checkout/ports/dns/bind99

If I then run make do-config and simply save the config presented, the =
port starts working again as expected.

This appears to affect any port that uses GSSAPI.

I would very much like to be able to build ports without any =
interaction, and since I=E2=80=99m setting config options through =
make.conf, I=E2=80=99d also prefer not having to create ports options =
files, ever.

Is there some option I=E2=80=99m missing for GSSAPI?  I find the user =
documentation for GSSAPI not very helpful in this regard.  I=E2=80=99ve =
tried to understand what Mk/Uses/gssapi.mk does, but failed.


Stefan

p.s. here=E2=80=99s a slightly condensed version of make.conf that I=E2=80=
=99m using:

DISTDIR?=3D		/var/ports/distfiles
WRKDIRPREFIX?=3D	/var/ports/work
INDEXDIR=3D		/var/ports
DISABLE_VULNERABILITIES?=3D	true
NO_DIALOG=3D	yes
WITH_OPENSSL_PORT=3D	YES
DEFAULT_VERSIONS+=3D	bdb=3D48
DEFAULT_VERSIONS+=3D	perl5=3D5.20
DEFAULT_VERSIONS+=3D	ssl=3Dopenssl
OPTIONS_UNSET+=3D  GSSAPI_BASE
OPTIONS_SET+=3D    GSSAPI_MIT
editors_emacs_UNSET+=3D	MAGICK
# =E2=80=A6 more ports options

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E7D08169-A157-4C7C-B2F2-EAA524D0E8E9>