1 From c271503d7e233428ac0323c51d6517113e26bef7 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Thu, 1 Dec 2016 00:27:13 -0800
4 Subject: [PATCH] Prepend PKG_CONFIG_SYSROOT_DIR to pkg-config output
6 In cross environment we have to prepend the sysroot to the path found by
7 pkgconfig since the path returned from pkgconfig does not have sysroot prefixed
8 it ends up using the files from host system. If build host has wayland installed
9 the build will succeed but if you dont have wayland-protocols installed on build host then
10 it wont find the files on build host
12 This should work ok with non sysrooted builds too since in those cases PKG_CONFIG_SYSROOT_DIR
15 Upstream-Status: Pending
17 Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 Index: gst-plugins-bad-1.10.1/configure.ac
23 ===================================================================
24 --- gst-plugins-bad-1.10.1.orig/configure.ac
25 +++ gst-plugins-bad-1.10.1/configure.ac
26 @@ -2233,7 +2233,7 @@ AG_GST_CHECK_FEATURE(WAYLAND, [wayland s
27 PKG_CHECK_MODULES(WAYLAND_PROTOCOLS, wayland-protocols >= 1.4, [
28 if test "x$wayland_scanner" != "x"; then
30 - AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, `$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)
31 + AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, ${WAYLAND_PROTOCOLS_SYSROOT_DIR}`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)
33 AC_MSG_RESULT([wayland-scanner is required to build the wayland plugin])