pkgconf needs to unset PKG_CONFIG_SYSROOT_DIR for relative path.

Signed-off-by: Maxin B. John <maxin.j...@intel.com>
---
 ...c-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch | 31 ++++++++++++++++++++++
 .../glib-networking/glib-networking_2.54.1.bb      |  2 ++
 2 files changed, 33 insertions(+)
 create mode 100644 
meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch

diff --git 
a/meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
 
b/meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
new file mode 100644
index 0000000..08879b9
--- /dev/null
+++ 
b/meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
@@ -0,0 +1,31 @@
+From f0fe611b1b24cbeafed380b1956ab21b09419c64 Mon Sep 17 00:00:00 2001
+From: "Maxin B. John" <maxin.j...@intel.com>
+Date: Fri, 16 Feb 2018 16:12:22 +0200
+Subject: [PATCH] configure.ac: unset PKG_CONFIG_SYSROOT_DIR for relative path
+
+pkgconf requires unsetting  PKG_CONFIG_SYSROOT_DIR to find
+the relative path of giomoduledir.
+
+Upstream-Status: Inappropriate [specific to pkgconf]
+
+Signed-off-by: Maxin B. John <maxin.j...@intel.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index ddee2a7..e31f397 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -35,7 +35,7 @@ dnl *****************************
+ AM_PATH_GLIB_2_0(2.46.0,,AC_MSG_ERROR(GLIB not found),gio)
+ GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46"
+ 
+-GIO_MODULE_DIR=$($PKG_CONFIG --variable giomoduledir gio-2.0)
++GIO_MODULE_DIR=$(unset PKG_CONFIG_SYSROOT_DIR; $PKG_CONFIG --variable 
giomoduledir gio-2.0)
+ AS_IF([test "$GIO_MODULE_DIR" = ""],
+       [AC_MSG_FAILURE(GIO_MODULE_DIR is missing from gio-2.0.pc)])
+ AC_SUBST(GIO_MODULE_DIR)
+-- 
+2.4.0
+
diff --git a/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb 
b/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb
index 2a6f8af..c9dceae 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb
@@ -9,6 +9,8 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
 SECTION = "libs"
 DEPENDS = "glib-2.0"
 
+SRC_URI_append = " 
file://0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch"
+
 SRC_URI[archive.md5sum] = "99867463f182c2767bce0c74bc9cc981"
 SRC_URI[archive.sha256sum] = 
"eaa787b653015a0de31c928e9a17eb57b4ce23c8cf6f277afaec0d685335012f"
 
-- 
2.4.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to