Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id F1272E004F5; Wed, 20 Aug 2014 13:46:23 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [147.11.146.13 listed in list.dnswl.org] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B9E23E004F5 for ; Wed, 20 Aug 2014 13:46:16 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id s7KKkFaw016092 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 20 Aug 2014 13:46:16 -0700 (PDT) Received: from yow-kholman-lx1.wrs.com (128.224.56.110) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 20 Aug 2014 13:46:15 -0700 From: Keith Holman To: Date: Wed, 20 Aug 2014 16:46:08 -0400 Message-ID: <1408567571-27481-2-git-send-email-Keith.Holman@windriver.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1408567571-27481-1-git-send-email-Keith.Holman@windriver.com> References: <1408567571-27481-1-git-send-email-Keith.Holman@windriver.com> MIME-Version: 1.0 X-Originating-IP: [128.224.56.110] Cc: keith.holman@windriver.com Subject: [PATCH 2/5] protobuf: add python support 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, 20 Aug 2014 20:46:24 -0000 Content-Type: text/plain The compiler generated by Google Protocol Buffers currently includes support for Python bindings. However, currently the python files required to use the generated files are not included on the system. This fix installs the python header files using python setup-tools after the compiler is built. Signed-off-by: Keith Holman --- recipes-containers/criu/protobuf_2.5.0.bb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/recipes-containers/criu/protobuf_2.5.0.bb b/recipes-containers/criu/protobuf_2.5.0.bb index 4a90b2c..a9a26d8 100644 --- a/recipes-containers/criu/protobuf_2.5.0.bb +++ b/recipes-containers/criu/protobuf_2.5.0.bb @@ -13,8 +13,22 @@ PR = "r0" SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8" SRC_URI[sha256sum] = "c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e" SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz" +PYTHON_SRC_DIR="python" EXTRA_OECONF += " --with-protoc=echo" -inherit autotools +inherit autotools setuptools + +do_compile() { + # Compile protoc compiler + base_do_compile +} + +do_install() { + # Install protoc compiler + autotools_do_install + # Install header files + cd "${PYTHON_SRC_DIR}" + distutils_do_install +} BBCLASSEXTEND = "native nativesdk" -- 1.9.3