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

Dylan Baker dylan at pnwbakers.com
Wed Jan 24 00:23:33 UTC 2018


Quoting Kenneth Graunke (2018-01-23 15:04:18)
> On Tuesday, January 23, 2018 10:34:25 AM PST Dylan Baker wrote:
> > 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.
> 
> sysconfdir isn't always a subdirectory of prefix though.
> 
> By default, sysconfdir is $prefix/etc (i.e. /usr/local/etc).  But
> tho most common distro setting is prefix = /usr and sysconfdir = /etc.
> 
> So unless Meson makes sysconfdir "../etc" in that case, I don't think
> joining prefix and sysconfdir will do what you want...?

In that case shouldn't you pass sysconfdir as an absolute path to meson though?

If we can assume that we could do something like:

sysdir = get_option('sysconfigdir')
if not sysdir.startswith('/')  # TODO: windows
  sysdir = join_paths(get_option('prefix'), sysdir)
endif
-------------- 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/e908c913/attachment.sig>


More information about the mesa-dev mailing list