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
signature.asc
Description: signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev