summaryrefslogtreecommitdiffstats
path: root/recipes-containers
diff options
context:
space:
mode:
authorJianchuan Wang <jianchuan.wang@windriver.com>2015-09-07 13:29:56 +0800
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-09-08 10:01:36 -0400
commit4a55cb62130feb69fa7ce1b2112af22e8d574018 (patch)
treedc93232b0fddc664390f7c45e724df9c24c8a178 /recipes-containers
parentec8dfaf6b7c420728f1f1988b55f65e23e697f5e (diff)
downloadmeta-virtualization-4a55cb62130feb69fa7ce1b2112af22e8d574018.tar.gz
protobuf-c: upgrade 0.15 -> 1.1.1
Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers')
-rw-r--r--recipes-containers/criu/files/0001-protobuf-c-Remove-the-rules-which-depend-on-the-nati.patch46
-rw-r--r--recipes-containers/criu/protobuf-c_0.15.bb22
-rw-r--r--recipes-containers/criu/protobuf-c_1.1.1.bb24
3 files changed, 70 insertions, 22 deletions
diff --git a/recipes-containers/criu/files/0001-protobuf-c-Remove-the-rules-which-depend-on-the-nati.patch b/recipes-containers/criu/files/0001-protobuf-c-Remove-the-rules-which-depend-on-the-nati.patch
new file mode 100644
index 00000000..b6fbf017
--- /dev/null
+++ b/recipes-containers/criu/files/0001-protobuf-c-Remove-the-rules-which-depend-on-the-nati.patch
@@ -0,0 +1,46 @@
1From 81bc5928cdc1b432656eb6590967306d8cf3ac9d Mon Sep 17 00:00:00 2001
2From: Jianchuan Wang <jianchuan.wang@windriver.com>
3Date: Tue, 4 Aug 2015 10:22:21 +0800
4Subject: [PATCH] protobuf-c: Remove the rules which depend on the native
5 command
6
7Those rules are not for cross-compile since the command protoc-c/cxx-generate-packed-data
8need be executed to generate some local files in the compiling processing.
9
10Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
11---
12 Makefile.am | 13 +++++++------
13 1 file changed, 7 insertions(+), 6 deletions(-)
14
15diff --git a/Makefile.am b/Makefile.am
16index 310aa09..0602e96 100644
17--- a/Makefile.am
18+++ b/Makefile.am
19@@ -148,17 +148,18 @@ t_generated_code2_cxx_generate_packed_data_CXXFLAGS = \
20 t_generated_code2_cxx_generate_packed_data_LDADD = \
21 $(protobuf_LIBS)
22
23-t/test.pb-c.c t/test.pb-c.h: $(top_builddir)/protoc-c/protoc-c$(EXEEXT) $(top_srcdir)/t/test.proto
24- $(AM_V_GEN)$(top_builddir)/protoc-c/protoc-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test.proto
25+t/test.pb-c.c t/test.pb-c.h: $(top_srcdir)/t/test.proto
26+ $(AM_V_GEN)protoc-c -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test.proto
27
28-t/test-full.pb-c.c t/test-full.pb-c.h: $(top_builddir)/protoc-c/protoc-c$(EXEEXT) $(top_srcdir)/t/test-full.proto
29- $(AM_V_GEN)$(top_builddir)/protoc-c/protoc-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test-full.proto
30+t/test-full.pb-c.c t/test-full.pb-c.h: $(top_srcdir)/t/test-full.proto
31+ $(AM_V_GEN)protoc-c -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test-full.proto
32
33 t/test-full.pb.cc t/test-full.pb.h: @PROTOC@ $(top_srcdir)/t/test-full.proto
34 $(AM_V_GEN)@PROTOC@ -I$(top_srcdir) --cpp_out=$(top_builddir) $(top_srcdir)/t/test-full.proto
35
36-t/generated-code2/test-full-cxx-output.inc: t/generated-code2/cxx-generate-packed-data$(EXEEXT)
37- $(AM_V_GEN)$(top_builddir)/t/generated-code2/cxx-generate-packed-data$(EXEEXT) > $(top_builddir)/t/generated-code2/test-full-cxx-output.inc
38+t/generated-code2/test-full-cxx-output.inc:
39+ mkdir -p $(top_builddir)/t/generated-code2
40+ $(AM_V_GEN)cxx-generate-packed-data > $(top_builddir)/t/generated-code2/test-full-cxx-output.inc
41
42 BUILT_SOURCES += \
43 t/test.pb-c.c t/test.pb-c.h \
44--
451.9.1
46
diff --git a/recipes-containers/criu/protobuf-c_0.15.bb b/recipes-containers/criu/protobuf-c_0.15.bb
deleted file mode 100644
index 5d65c69a..00000000
--- a/recipes-containers/criu/protobuf-c_0.15.bb
+++ /dev/null
@@ -1,22 +0,0 @@
1SUMMARY = "protobuf-c"
2DESCRIPTION = "This package provides a code generator and runtime libraries to use Protocol Buffers from pure C"
3HOMEPAGE = "http://code.google.com/p/protobuf-c/"
4SECTION = "console/tools"
5LICENSE = "Apache-2.0"
6
7LIC_FILES_CHKSUM = "file://src/google/protobuf-c/protobuf-c.c;endline=33;md5=333140fae7cf8a38dc5f980ddb63704b"
8
9PR = "r0"
10
11COMPATIBLE_HOST = "(x86_64|arm).*-linux"
12
13DEPENDS = "protobuf"
14
15SRC_URI[md5sum] = "73ff0c8df50d2eee75269ad8f8c07dc8"
16SRC_URI[sha256sum] = "8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036"
17SRC_URI = "http://protobuf-c.googlecode.com/files/protobuf-c-${PV}.tar.gz \
18 file://disable_tests.patch"
19
20inherit autotools
21
22BBCLASSEXTEND = "native nativesdk"
diff --git a/recipes-containers/criu/protobuf-c_1.1.1.bb b/recipes-containers/criu/protobuf-c_1.1.1.bb
new file mode 100644
index 00000000..8c2d2b73
--- /dev/null
+++ b/recipes-containers/criu/protobuf-c_1.1.1.bb
@@ -0,0 +1,24 @@
1SUMMARY = "protobuf-c"
2DESCRIPTION = "This package provides a code generator and runtime libraries to use Protocol Buffers from pure C"
3HOMEPAGE = "http://code.google.com/p/protobuf-c/"
4SECTION = "console/tools"
5LICENSE = "Apache-2.0"
6
7LIC_FILES_CHKSUM = "file://protobuf-c/protobuf-c.c;endline=28;md5=0feb44cc63eacef97219b0174967492f"
8
9COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
10
11DEPENDS = "protobuf protobuf-c-native"
12
13SRC_URI[md5sum] = "41d437677ea16f9d3611d98841c4af3b"
14SRC_URI[sha256sum] = "09c5bb187b7a8e86bc0ff860f7df86370be9e8661cdb99c1072dcdab0763562c"
15SRC_URI = "https://github.com/protobuf-c/protobuf-c/releases/download/v1.1.1/protobuf-c-1.1.1.tar.gz "
16SRC_URI_append_class-target ="file://0001-protobuf-c-Remove-the-rules-which-depend-on-the-nati.patch"
17
18inherit autotools
19
20BBCLASSEXTEND = "native nativesdk"
21
22do_install_append_class-native() {
23 install -m 755 ${B}/t/generated-code2/cxx-generate-packed-data ${D}/${bindir}
24}