[PATCH wayland-protocols] sysroot prefix

Daniel Stone daniel at fooishbar.org
Thu Jul 20 09:25:35 UTC 2017


Hi,

On 20 July 2017 at 10:14, Quentin Glidic
<sardemff7+wayland at sardemff7.net> wrote:
> Using ${pc_sysrootdir} sounds like the correct thing to do. However, your
> patch introduces a triple / when PKG_CONFIG_SYSROOT_DIR is not set.
> Having two / is already trouble on some platform (though the one we
> currently work on should be fine, I think), three / would break even more.
> Please just use "${pc_sysrootdir}@datadir@".

Yeah, this all LGTM, and gets my:
Reviewed-by: Daniel Stone <daniels at collabora.com>

> Also, using this variable should be in prefix=, IMO, since all the paths
> should be fixed.

I'm wary of doing that, if only because it establishes a pattern. It's
fine for wayland-protocols itself, but when doing sysroot builds,
includedir/libdir/etc already get prefixed by the compiler/linker. So
I wouldn't want anyone to look at wayland-protocols and blindly copy
the prepend to prefix. Containing it to just variables we know will be
used and queried directly seems more safe.

Cheers,
Daniel


More information about the wayland-devel mailing list