Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2019 09:34:05 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Tobias Kortkamp <tobik@freebsd.org>
Cc:        Pietro Cerutti <gahr@freebsd.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r517341 - head/x11-wm/e16
Message-ID:  <20191113093405.GB34207@FreeBSD.org>
In-Reply-To: <20191113092534.GA61113@urd.tobik.me>
References:  <201911121700.xACH0fpg045907@repo.freebsd.org> <20191113092534.GA61113@urd.tobik.me>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 13, 2019 at 10:25:34AM +0100, Tobias Kortkamp wrote:
> On Tue, Nov 12, 2019 at 05:00:41PM +0000, Pietro Cerutti wrote:
> > Author: gahr
> > Date: Tue Nov 12 17:00:40 2019
> > New Revision: 517341
> > URL: https://svnweb.freebsd.org/changeset/ports/517341
> > 
> > Log:
> >   x11-wm/e16: update to 1.0.21, rework OPTIONS
> >   
> > ...
> > -OPTIONS_DEFINE=		DOCS NLS PANGO SOUND
> > +OPTIONS_DEFINE=		DOCS NLS PANGO
> > +OPTIONS_RADIO=		SOUND SOUNDLOADER
> > +OPTIONS_RADIO_SOUND=	PULSEAUDIO SNDIO
> > +OPTIONS_RADIO_SOUNDLOADER=	SNDFILE AUDIOFILE
> >  OPTIONS_SUB=		yes
> > ...
> > +# Double check SOUND and SOUNDLOADER
> > +E16_SOUND=	${PORT_OPTIONS:MPULSEAUDIO}${PORT_OPTIONS:MSNDIO}
> > +E16_SNDLDR=	${PORT_OPTIONS:MSNDFILE}${PORT_OPTIONS:MAUDIOFILE}
> > +.if !empty(E16_SOUND) && empty(E16_SNDLDR)
> > +IGNORE=	sound support requires a sound loader
> > +.endif
> > +.if empty(E16_SOUND) && !empty(E16_SNDLDR)
> > +IGNORE=	sound loader only makes sense with sound support
> > +.endif
> 
> could you please look this over again:
> 
> - USES is set twice which does not make sense
> - None of the *_CONFIGURE_{ENABLE,OFF,ON} or *_USES helpers do anything
>   since CONFIGURE_ARGS and USES are overwritten again after including
>   bsd.port.options.mk.

The entire "rework OPTIONS" code is a mess and should be fixed for good.
Perhaps Pietro might want to find an extra pair of eyes to review his work
prior to committing, or at leaset rehash /usr/ports/Mk/bsd.options.mk.

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191113093405.GB34207>