Skip to contentSkip to conversation

protobuf-c: Add protobuf's pkgconfig path into PKG_CONFIG_PATH

PATCH In review [email protected] 2 participants 2 messages Sep 30, 2015 – Oct 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 protobuf-c: Add protobuf's pkgconfig path into PKG_CONFIG_PATH

From: Jianchuan Wang <[email protected]>

Add the protobuf's pkgconfig path into PKG_CONFIG_PATH
so that pkg-config can find the protoc from sysroot in the configure process. And don't conflict even if installing the protobuf in the localhost.

---
 recipes-containers/criu/protobuf-c_1.1.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-containers/criu/protobuf-c_1.1.1.bb +4 -0
index 8c2d2b7..2800f12 100644
@@ -19,6 +19,10 @@ inherit autotools
 
 BBCLASSEXTEND = "native nativesdk"
 
+do_configure_prepend_class-target() {
+    export PKG_CONFIG_PATH="${STAGING_LIBDIR_NATIVE}/pkgconfig:${PKG_CONFIG_PATH}"
+}
+
 do_install_append_class-native() {
     install -m 755 ${B}/t/generated-code2/cxx-generate-packed-data ${D}/${bindir}
 }
Signature · 1 line
1.9.1
#1 lore raw
Quoted 6 lines · On Wed, Sep 30, 2015 at 3:15 AM, <[email protected]> wrote:

From: Jianchuan Wang <[email protected]>

Add the protobuf's pkgconfig path into PKG_CONFIG_PATH
so that pkg-config can find the protoc from sysroot in the configure process. And don't conflict even if installing the protobuf in the localhost.

merged.

Bruce

Quoted 28 lines
---
 recipes-containers/criu/protobuf-c_1.1.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-containers/criu/protobuf-c_1.1.1.bb +4 -1
index 8c2d2b7..2800f12 100644
@@ -19,6 +19,10 @@ inherit autotools
 
 BBCLASSEXTEND = "native nativesdk"
 
+do_configure_prepend_class-target() {
+    export PKG_CONFIG_PATH="${STAGING_LIBDIR_NATIVE}/pkgconfig:${PKG_CONFIG_PATH}"
+}
+
 do_install_append_class-native() {
     install -m 755 ${B}/t/generated-code2/cxx-generate-packed-data ${D}/${bindir}
 }
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"