Skip to contentSkip to conversation

bitbake.conf: fix pkg-config relocation issue

PATCH In review Chris Larson 2 participants 2 messages Oct 10, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake.conf: fix pkg-config relocation issue

From: Chris Larson <[email protected]>

By default, pkg-config falls back to checking the default search path for .pc files, which is the native location. If you relocate it, it will be unable to hit that location, which can cause problems in certain cases. In particular, gnome-bluetooth requires gtk-doc-native to run its tools, and uses pkg-config to determine its availability.

Fix by adding the native pkg-config locations to the PKG_CONFIG_PATH.

---
 conf/bitbake.conf |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
conf/bitbake.conf +3 -2
index 4e80d97..71f15a8 100644
@@ -636,8 +636,9 @@ SLOT = "0"
 
 # Other
 
-export PKG_CONFIG_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig"
-export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig"
+export PKG_CONFIG_PATH = "${STAGING_LIBDIR}/pkgconfig:${STAGING_DATADIR}/pkgconfig"
+PKG_CONFIG_PATH .= ":${STAGING_LIBDIR_NATIVE}/pkgconfig:${STAGING_DATADIR_NATIVE}/pkgconfig"
+
 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
 export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
 
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Chris Larson

From: Chris Larson <[email protected]>

By default, pkg-config falls back to checking the default search path for .pc files, which is the native location.  If you relocate it, it will be unable to hit that location, which can cause problems in certain cases.  In particular, gnome-bluetooth requires gtk-doc-native to run its tools, and uses pkg-config to determine its availability.

Fix by adding the native pkg-config locations to the PKG_CONFIG_PATH.

Quoted 29 lines

---
 conf/bitbake.conf |    5 +++--

 1 files changed, 3 insertions(+), 2 deletions(-)
conf/bitbake.conf +3 -2
index 4e80d97..71f15a8 100644
@@ -636,8 +636,9 @@ SLOT = "0"
 
  # Other
 
-export PKG_CONFIG_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig"
-export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig"
+export PKG_CONFIG_PATH = "${STAGING_LIBDIR}/pkgconfig:${STAGING_DATADIR}/pkgconfig"
+PKG_CONFIG_PATH .= ":${STAGING_LIBDIR_NATIVE}/pkgconfig:${STAGING_DATADIR_NATIVE}/pkgconfig"
+

 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"

--
1.7.2.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel