Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2019 10:53:37 +0100
From:      Tobias Kortkamp <tobik@freebsd.org>
To:        Niclas Zeising <zeising@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r516921 - head/Mk/Uses
Message-ID:  <20191108095337.GA69008@urd.tobik.me>
In-Reply-To: <3f3eac2c-d705-c7dd-ccfd-a0ab5fef9c23@freebsd.org>
References:  <201911061902.xA6J2hV6031987@repo.freebsd.org> <20191108045247.GA82122@urd.tobik.me> <3f3eac2c-d705-c7dd-ccfd-a0ab5fef9c23@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 08, 2019 at 10:42:15AM +0100, Niclas Zeising wrote:
> On 2019-11-08 05:52, Tobias Kortkamp wrote:
> > On Wed, Nov 06, 2019 at 07:02:43PM +0000, Niclas Zeising wrote:
> >> Author: zeising
> >> Date: Wed Nov  6 19:02:42 2019
> >> New Revision: 516921
> >> URL: https://svnweb.freebsd.org/changeset/ports/516921
> >>
> >> Log:
> >>    Mk/Uses: Add USES+=3Dxorg when including xorg.mk
> >>   =20
> >>    Add USES+=3Dxorg to the places where MK/Uses/xorg.mk is included fr=
om other
> >>    files in the Uses infrastructure.  This is done to silence an erron=
eous
> >>    warning about USES=3Dxorg not being set when using USES=3Dgl, motif=
 or xorg-cat,
> >>    even when it's included from the framework.
> >>   =20
> >>    This is a different proposal than what was originally suggested in =
pr 241627
> >>    and https://reviews.freebsd.org/D22210 .
> >>   =20
> >>    PR:		238988, 241627
> >>    Discussed with:	mat
> >>    MFH:		2019Q4
> >>    Differential Revision:	https://reviews.freebsd.org/D22210
> >=20
> > Something is still wrong.  A port with for example
> >=20
> > USES=3D	gl
> > USE_GL=3D	glut
> >=20
> > will still give the bogus warning.  It goes away with:
> >=20
> > Index: Mk/Uses/gl.mk
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- Mk/Uses/gl.mk	(revision 517030)
> > +++ Mk/Uses/gl.mk	(working copy)
> > @@ -40,7 +40,9 @@
> >   .if !defined(_GL_${_component}_LIB_DEPENDS)
> >   IGNORE=3D		uses unknown GL component
> >   .else
> > +.if defined(_GL_${_component}_USE_XORG)
> >   USE_XORG+=3D	${_GL_${_component}_USE_XORG}
> > +.endif
> >   LIB_DEPENDS+=3D	${_GL_${_component}_LIB_DEPENDS}
> >   .endif
> >   .endfor
> >=20
>=20
> Ok, I have to look into this as well, but your patch is probably good.
> I wonder if this is still needed after the warnings in bsd.port.mk are=20
> removed (since I've tried to move everything to USES).
> Do you have an example of a port that's an issue?

Here are some ports that have this problem (might be behind non-default
options):

$ rg -l GL=3Dglut
graphics/pfstools/Makefile
[...]
graphics/webp/Makefile
[...]
games/d2x/Makefile
^C


--UlVJffcvxoiEqYs2
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEElXvTEJc6ePgdQuobpPCftzzFH2EFAl3FOxxfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk1
N0JEMzEwOTczQTc4RjgxRDQyRUExQkE0RjA5RkI3M0NDNTFGNjEACgkQpPCftzzF
H2HKGwf8D4SrtQfZ+sQzX+d/ReouIOInHD8rnCRFMhhSQPVQ8xmoc/HLOSIpSV4E
7UL15JKYW98cwmwuWmpFFTnr0IIqlNpnxavAga+ME6uhDZd8NbzJTaJrBKAPnLkH
2EM0ozNe+TKQU2nLNEf9g5wu6K6plenjbEg1MXI6EaUveYx5jplWGvEb9hUGpdTZ
amPx49eZHLFWYIpZcY01dc8KEQ18IrUN54ppFnCVh5qlZqpmpZGKWw/Pinl0bdvO
rnr1gHy67yY2rJJqXReAL1Gm8BGWtPY23pZ4byversi0Glu9Y+dl1Vvsg2tk9xVa
/+HjQL5GS3Yv88WEjKJpIAaSzi2EuQ==
=2VRY
-----END PGP SIGNATURE-----

--UlVJffcvxoiEqYs2--



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