Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E8B37E00E56; Wed, 30 Sep 2015 00:26:42 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C38A5E0053A for ; Wed, 30 Sep 2015 00:26:39 -0700 (PDT) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id t8U7Qcdt001192 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 30 Sep 2015 00:26:38 -0700 (PDT) Received: from pek-hostel-deb01.wrs.com (128.224.153.151) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.235.1; Wed, 30 Sep 2015 00:26:37 -0700 From: To: Date: Wed, 30 Sep 2015 15:15:31 +0800 Message-ID: <1443597331-1166-1-git-send-email-jianchuan.wang@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [PATCH] protobuf-c: Add protobuf's pkgconfig path into PKG_CONFIG_PATH X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2015 07:26:43 -0000 Content-Type: text/plain From: Jianchuan Wang 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. Signed-off-by: Jianchuan Wang --- recipes-containers/criu/protobuf-c_1.1.1.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-containers/criu/protobuf-c_1.1.1.bb b/recipes-containers/criu/protobuf-c_1.1.1.bb index 8c2d2b7..2800f12 100644 --- a/recipes-containers/criu/protobuf-c_1.1.1.bb +++ b/recipes-containers/criu/protobuf-c_1.1.1.bb @@ -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