[Mesa-dev] meson builds don't read dri options
Dylan Baker
dylan at pnwbakers.com
Tue Jan 23 18:34:25 UTC 2018
There's a bug in our meson build, and I sent a patch. We need to join_dirs with
get_option('prefix'). I got a little confused because when you pass a relative
directory to meson's `install` option it will autotmatically make it absolute,
but when you pass it to a C define it doesn't.
Quoting Kenneth Graunke (2018-01-23 10:00:56)
> On Tuesday, January 23, 2018 3:31:23 AM PST Marc Dietrich wrote:
> > Hi Dylan,
> >
> > running "Heaven" fails with "error: #extension directive is not allowed in the
> > middle of a shader" because drirc (which contains an exception for this
> > program) is somehow not read in meson builds.
> >
> > Marc
>
> Hey Dylan,
>
> Marc is right, this is not working correctly. driParseConfigFiles has:
>
> char *filenames[2] = { SYSCONFDIR "/drirc", NULL};
>
> where SYSCONFDIR comes from Meson's get_option('sysconfdir').
>
> The issue is that SYSCONFDIR is apparently getting expanded to "etc",
> so it's looking for "etc/drirc".
>
> sysconfdir is supposed to default to $(prefix)/etc, so /usr/local/etc:
> https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
>
> I wonder if this is a Meson bug or if we're handling sysconfdir wrong.
>
> --Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180123/4c89ee3d/attachment.sig>
More information about the mesa-dev
mailing list