Upgrade protobuf and protobuf-c
cover Upgrade protobuf and protobuf-c
Hi Jianchun,
Here are two patches I am using while trying to upgrade to criu-2.5. These are reworked from the existing recipes in the tree. Hope this helps when you are rebasing the patches.
criu-1.6 build will not work with these patches.
regards,
Venkat
Venkateswara Rao Mandela (2):
protobuf: update 2.5.0 -> 3.0.2
protobuf-c: update 0.15 -> 1.2.1
recipes-devtools/protobuf/protobuf-3.0.2.inc | 4 ++ recipes-devtools/protobuf/protobuf-c-1.2.1.inc | 4 ++ recipes-devtools/protobuf/protobuf-c.inc | 11 +++ recipes-devtools/protobuf/protobuf-c_1.2.1.bb | 10 +++ recipes-devtools/protobuf/protobuf-native_3.0.2.bb | 5 ++ recipes-devtools/protobuf/protobuf.inc | 14 ++++ recipes-devtools/protobuf/protobuf_3.0.2.bb | 82 ++++++++++++++++++++++ 7 files changed, 130 insertions(+) create mode 100644 recipes-devtools/protobuf/protobuf-3.0.2.inc create mode 100644 recipes-devtools/protobuf/protobuf-c-1.2.1.inc create mode 100644 recipes-devtools/protobuf/protobuf-c.inc create mode 100644 recipes-devtools/protobuf/protobuf-c_1.2.1.bb create mode 100644 recipes-devtools/protobuf/protobuf-native_3.0.2.bb create mode 100644 recipes-devtools/protobuf/protobuf.inc create mode 100644 recipes-devtools/protobuf/protobuf_3.0.2.bb
Signature · 1 line
2.9.3
PATCH 1/2 protobuf: update 2.5.0 -> 3.0.2
- Create a separate file for 3.0.2 protobuf. This is the latest version as on Sep 8 2016.
Mimic the recipe organization used by m4 (oe-core/meta/recipes-devtools/m4)
- Move the description,source URI and license checksum to protobuf.inc
- Move tar ball checksum into protobuf-3.0.2.inc
- Create a separate recipes for native and cross compilation
--- recipes-devtools/protobuf/protobuf-3.0.2.inc | 4 ++ recipes-devtools/protobuf/protobuf-native_3.0.2.bb | 5 ++ recipes-devtools/protobuf/protobuf.inc | 14 ++++ recipes-devtools/protobuf/protobuf_3.0.2.bb | 82 ++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 recipes-devtools/protobuf/protobuf-3.0.2.inc create mode 100644 recipes-devtools/protobuf/protobuf-native_3.0.2.bb create mode 100644 recipes-devtools/protobuf/protobuf.inc create mode 100644 recipes-devtools/protobuf/protobuf_3.0.2.bb
recipes-devtools/protobuf/protobuf-3.0.2.inc new file +4 -0
@@ -0,0 +1,4 @@ +require protobuf.inc + +SRC_URI[md5sum] = "845b39e4b7681a2ddfd8c7f528299fbb" +SRC_URI[sha256sum] = "b700647e11556b643ccddffd1f41d8cb7704ed02090af54cc517d44d912d11c1"
recipes-devtools/protobuf/protobuf-native_3.0.2.bb new file +5 -0
@@ -0,0 +1,5 @@ +require protobuf-${PV}.inc + +EXTRA_OECONF += " --with-protoc=echo --disable-shared" + +inherit native autotools
recipes-devtools/protobuf/protobuf.inc new file +14 -0
@@ -0,0 +1,14 @@ +SUMMARY = "protobuf" +DESCRIPTION = "Protocol Buffers are a way of encoding structured data in \ +an efficient yet extensible format. Google uses Protocol Buffers for \ +almost all of its internal RPC protocols and file formats." +HOMEPAGE = "https://github.com/google/protobuf/" +SECTION = "console/tools" +LICENSE = "BSD-3-Clause" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" + +inherit autotools + +SRC_URI = "https://github.com/google/protobuf/archive/v${PV}.tar.gz \ + "
recipes-devtools/protobuf/protobuf_3.0.2.bb new file +82 -0
82 lines not on this page · raw message
Signature · 1 line
2.9.3
PATCH 2/2 protobuf-c: update 0.15 -> 1.2.1
In reply to Venkateswara Rao MandelaFollowing the same recipe organization as protobuf
1. Description, SRC URI and license checksum go into protobuf-c.inc
2. version specific checksums go into protobuf-c_1.2.1.inc
3. recipe for cross compilation goes into protobuf-c_1.2.1.bb
--- recipes-devtools/protobuf/protobuf-c-1.2.1.inc | 4 ++++ recipes-devtools/protobuf/protobuf-c.inc | 11 +++++++++++ recipes-devtools/protobuf/protobuf-c_1.2.1.bb | 10 ++++++++++ 3 files changed, 25 insertions(+) create mode 100644 recipes-devtools/protobuf/protobuf-c-1.2.1.inc create mode 100644 recipes-devtools/protobuf/protobuf-c.inc create mode 100644 recipes-devtools/protobuf/protobuf-c_1.2.1.bb
recipes-devtools/protobuf/protobuf-c-1.2.1.inc new file +4 -0
@@ -0,0 +1,4 @@ +require protobuf-c.inc + +SRC_URI[md5sum] = "b884aeba4283309445a8e3b6e7322dd6" +SRC_URI[sha256sum] = "2d708fb3c024b9e6e86df141faff802194f5db90a4b79e6d4aa6bd61dd983dd6"
recipes-devtools/protobuf/protobuf-c.inc new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "protobuf-c" +DESCRIPTION = "This package provides a code generator and runtime libraries to use Protocol Buffers from pure C" +HOMEPAGE = "https://github.com/protobuf-c/protobuf-c" +SECTION = "console/tools" +LICENSE = "BSD-2-Clause" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=235c3195a3968524dc1524b4ebea0c0e" + +SRC_URI = "https://github.com/protobuf-c/protobuf-c/archive/v${PV}.tar.gz \ + " +inherit autotools
recipes-devtools/protobuf/protobuf-c_1.2.1.bb new file +10 -0
@@ -0,0 +1,10 @@ +require protobuf-c-${PV}.inc + +DEPENDS = "protobuf" + +#SRC_URI += "file://disable_tests.patch \ +# " + +inherit autotools + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.9.3
Quoted 7 lines · Venkateswara Rao Mandela
Hi Jianchun,
Here are two patches I am using while trying to upgrade to criu-2.5. These are reworked from the existing recipes in the tree. Hope this helps when you are rebasing the patches.
criu-1.6 build will not work with these patches.
The criu-1.6 can work in my env after uprev protobuf and protobuf-c.
Thanks,
Jianchuan
Quoted 23 lines
regards,
VenkatVenkateswara Rao Mandela (2):
protobuf: update 2.5.0 -> 3.0.2 protobuf-c: update 0.15 -> 1.2.1recipes-devtools/protobuf/protobuf-3.0.2.inc | 4 ++ recipes-devtools/protobuf/protobuf-c-1.2.1.inc | 4 ++ recipes-devtools/protobuf/protobuf-c.inc | 11 +++ recipes-devtools/protobuf/protobuf-c_1.2.1.bb | 10 +++ recipes-devtools/protobuf/protobuf-native_3.0.2.bb | 5 ++ recipes-devtools/protobuf/protobuf.inc | 14 ++++ recipes-devtools/protobuf/protobuf_3.0.2.bb | 82 ++++++++++++++++++++++ 7 files changed, 130 insertions(+)create mode 100644 recipes-devtools/protobuf/protobuf-3.0.2.inc create mode 100644 recipes-devtools/protobuf/protobuf-c-1.2.1.inc create mode 100644 recipes-devtools/protobuf/protobuf-c.inc create mode 100644 recipes-devtools/protobuf/protobuf-c_1.2.1.bb create mode 100644 recipes-devtools/protobuf/protobuf-native_3.0.2.bb create mode 100644 recipes-devtools/protobuf/protobuf.inc create mode 100644 recipes-devtools/protobuf/protobuf_3.0.2.bb
Hi Jianchun,
Quoted 3 lines · Jianchuan Wang
Quoted 1 line
criu-1.6 build will not work with these patches.
The criu-1.6 can work in my env after uprev protobuf and protobuf-c.
What is the kernel and tool chain versions that you are using? i am trying with gcc-4.7 and kernel 3.14.
regards,
Venkat
Quoted 6 lines · Venkateswara Rao
Hi Jianchun,
Quoted 2 lines · Jianchuan Wang
Quoted 1 line
criu-1.6 build will not work with these patches.
The criu-1.6 can work in my env after uprev protobuf and protobuf-c.
What is the kernel and tool chain versions that you are using? i am trying with gcc-4.7 and kernel 3.14.
kernel version is 4.1/4.8
Gcc version is 6.1.1
Thanks,
Jianchuan
Quoted 3 lines
regards,
Venkat