[Mesa-dev] meson builds don't read dri options

Kenneth Graunke kenneth at whitecape.org
Tue Jan 23 18:00:56 UTC 2018


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: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180123/0e4c0d1b/attachment.sig>


More information about the mesa-dev mailing list