All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
@ 2016-09-07  8:09 jianchuan.wang
  2016-09-07  8:09 ` [PATCH 2/3] protobuf-c: uprev to 1.2.1 from 1.1.1 jianchuan.wang
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: jianchuan.wang @ 2016-09-07  8:09 UTC (permalink / raw)
  To: meta-virtualization

From: Jianchuan Wang <jianchuan.wang@windriver.com>

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
---
 .../criu/protobuf-native_2.6.1.bb                  | 21 -----
 .../criu/protobuf-native_3.0.0.bb                  | 21 +++++
 .../recipes-containers/criu/protobuf_2.6.1.bb      | 97 ----------------------
 .../recipes-containers/criu/protobuf_3.0.0.bb      | 97 ++++++++++++++++++++++
 4 files changed, 118 insertions(+), 118 deletions(-)
 delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
 create mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
 delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
 create mode 100644 meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb

diff --git a/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb b/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
deleted file mode 100644
index e88c9e7..0000000
--- a/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
+++ /dev/null
@@ -1,21 +0,0 @@
-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 = "http://code.google.com/p/protobuf/"
-SECTION = "console/tools"
-LICENSE = "BSD-3-Clause"
-
-LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a24514"
-
-PR = "r0"
-
-SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
-SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1"
-SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.gz;downloadfilename=protobuf-2.6.1.tar.gz \
-	"
-
-EXTRA_OECONF += " --with-protoc=echo --disable-shared"
-
-inherit native autotools
-
diff --git a/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb b/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
new file mode 100644
index 0000000..33467b3
--- /dev/null
+++ b/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
@@ -0,0 +1,21 @@
+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 = "http://code.google.com/p/protobuf/"
+SECTION = "console/tools"
+LICENSE = "BSD-3-Clause"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
+
+PR = "r0"
+
+SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
+SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
+SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz \
+	"
+
+EXTRA_OECONF += " --with-protoc=echo --disable-shared"
+
+inherit native autotools
+
diff --git a/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb b/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
deleted file mode 100644
index 1b7ab20..0000000
--- a/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
+++ /dev/null
@@ -1,97 +0,0 @@
-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 = "http://code.google.com/p/protobuf/"
-SECTION = "console/tools"
-LICENSE = "BSD-3-Clause"
-
-LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a24514"
-
-PR = "r0"
-EXCLUDE_FROM_WORLD = "1"
-
-SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
-SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1"
-SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.gz;downloadfilename=protobuf-2.6.1.tar.gz\
-	file://protobuf-allow-running-python-scripts-from-anywhere.patch \
-	file://Omit-google-apputils-dependency.patch \
-	file://run-ptest"
-
-COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
-
-EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
-inherit autotools setuptools ptest
-
-DEPENDS += "protobuf-native"
-
-PYTHON_SRC_DIR="python"
-TEST_SRC_DIR="examples"
-LANG_SUPPORT="cpp python"
-
-do_compile() {
-	# Compile protoc compiler
-	base_do_compile
-}
-
-do_compile_ptest() {
-	# Modify makefile to use the cross-compiler
-	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
-
-	mkdir -p "${B}/${TEST_SRC_DIR}"
-
-	# Add the location of the cross-compiled header and library files
-	# which haven't been installed yet.
-	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
-
-	# Save the pkgcfg sysroot variable, and update it to nothing so
-	# that it doesn't append the sysroot to the beginning of paths.
-	# The header and library files aren't installed to the target
-	# system yet.  So the absolute paths were specified above.
-	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
-	export PKG_CONFIG_SYSROOT_DIR=
-
-	# Compile the tests
-	for lang in ${LANG_SUPPORT}; do
-		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
-	done
-
-	# Restore the pkgconfig sysroot variable
-	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
-}
-
-do_install() {
-	local olddir=`pwd`
-
-	# Install protoc compiler
-	autotools_do_install
-
-	# Install header files
-	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
-	cd "${S}/${PYTHON_SRC_DIR}"
-	distutils_do_install
-
-	cd "$olddir"
-}
-
-do_install_ptest() {
-	local olddir=`pwd`
-
-	cd "${S}/${TEST_SRC_DIR}"
-	install -d "${D}/${PTEST_PATH}"
-	for i in add_person* list_people*; do
-		if [ -x "$i" ]; then
-			install "$i" "${D}/${PTEST_PATH}"
-		fi
-	done
-	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
-	
-	cd "$olddir"
-}
-
-BBCLASSEXTEND = "nativesdk"
-
diff --git a/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
new file mode 100644
index 0000000..e1deeac
--- /dev/null
+++ b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
@@ -0,0 +1,97 @@
+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 = "http://code.google.com/p/protobuf/"
+SECTION = "console/tools"
+LICENSE = "BSD-3-Clause"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
+
+PR = "r0"
+EXCLUDE_FROM_WORLD = "1"
+
+SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
+SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
+SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz\
+	        file://protobuf-allow-running-python-scripts-from-anywhere.patch \
+	        file://run-ptest \
+            "
+
+COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
+
+EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
+inherit autotools setuptools ptest
+
+DEPENDS += "protobuf-native"
+
+PYTHON_SRC_DIR="python"
+TEST_SRC_DIR="examples"
+LANG_SUPPORT="cpp python"
+
+do_compile() {
+	# Compile protoc compiler
+	base_do_compile
+}
+
+do_compile_ptest() {
+	# Modify makefile to use the cross-compiler
+	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
+
+	mkdir -p "${B}/${TEST_SRC_DIR}"
+
+	# Add the location of the cross-compiled header and library files
+	# which haven't been installed yet.
+	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
+
+	# Save the pkgcfg sysroot variable, and update it to nothing so
+	# that it doesn't append the sysroot to the beginning of paths.
+	# The header and library files aren't installed to the target
+	# system yet.  So the absolute paths were specified above.
+	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
+	export PKG_CONFIG_SYSROOT_DIR=
+
+	# Compile the tests
+	for lang in ${LANG_SUPPORT}; do
+		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
+	done
+
+	# Restore the pkgconfig sysroot variable
+	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
+}
+
+do_install() {
+	local olddir=`pwd`
+
+	# Install protoc compiler
+	autotools_do_install
+
+	# Install header files
+	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
+	cd "${S}/${PYTHON_SRC_DIR}"
+	distutils_do_install
+
+	cd "$olddir"
+}
+
+do_install_ptest() {
+	local olddir=`pwd`
+
+	cd "${S}/${TEST_SRC_DIR}"
+	install -d "${D}/${PTEST_PATH}"
+	for i in add_person* list_people*; do
+		if [ -x "$i" ]; then
+			install "$i" "${D}/${PTEST_PATH}"
+		fi
+	done
+	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
+	
+	cd "$olddir"
+}
+
+BBCLASSEXTEND = "nativesdk"
+
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/3] protobuf-c: uprev to 1.2.1 from 1.1.1
  2016-09-07  8:09 [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 jianchuan.wang
@ 2016-09-07  8:09 ` jianchuan.wang
  2016-09-07  8:09 ` [PATCH 3/3] criu: uprev to 2.5 jianchuan.wang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: jianchuan.wang @ 2016-09-07  8:09 UTC (permalink / raw)
  To: meta-virtualization

From: Jianchuan Wang <jianchuan.wang@windriver.com>

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
---
 .../files/Omit-google-apputils-dependency.patch    | 25 -------------------
 .../recipes-containers/criu/protobuf-c_1.1.1.bb    | 28 ----------------------
 .../recipes-containers/criu/protobuf-c_1.2.1.bb    | 28 ++++++++++++++++++++++
 3 files changed, 28 insertions(+), 53 deletions(-)
 delete mode 100644 meta-virtualization/recipes-containers/criu/files/Omit-google-apputils-dependency.patch
 delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf-c_1.1.1.bb
 create mode 100644 meta-virtualization/recipes-containers/criu/protobuf-c_1.2.1.bb

diff --git a/meta-virtualization/recipes-containers/criu/files/Omit-google-apputils-dependency.patch b/meta-virtualization/recipes-containers/criu/files/Omit-google-apputils-dependency.patch
deleted file mode 100644
index ef60fc0..0000000
--- a/meta-virtualization/recipes-containers/criu/files/Omit-google-apputils-dependency.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From f8b7c90f6da90b67bdd7d5301894c5c28bd9d076 Mon Sep 17 00:00:00 2001
-From: Jianchuan Wang <jianchuan.wang@windriver.com>
-Date: Mon, 10 Aug 2015 11:23:31 +0800
-Subject: [PATCH] Omit google-apputils dependency
-
-Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
----
- python/setup.py | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/python/setup.py b/python/setup.py
-index 2450a77..6f6bffb 100755
---- a/python/setup.py
-+++ b/python/setup.py
-@@ -189,7 +189,6 @@ if __name__ == '__main__':
-           'google.protobuf.text_format'],
-         cmdclass = { 'clean': clean, 'build_py': build_py },
-         install_requires = ['setuptools'],
--        setup_requires = ['google-apputils'],
-         ext_modules = ext_module_list,
-         url = 'https://developers.google.com/protocol-buffers/',
-         maintainer = maintainer_email,
--- 
-1.9.1
-
diff --git a/meta-virtualization/recipes-containers/criu/protobuf-c_1.1.1.bb b/meta-virtualization/recipes-containers/criu/protobuf-c_1.1.1.bb
deleted file mode 100644
index 0d03ebe..0000000
--- a/meta-virtualization/recipes-containers/criu/protobuf-c_1.1.1.bb
+++ /dev/null
@@ -1,28 +0,0 @@
-SUMMARY = "protobuf-c"
-DESCRIPTION = "This package provides a code generator and runtime libraries to use Protocol Buffers from pure C"
-HOMEPAGE = "http://code.google.com/p/protobuf-c/"
-SECTION = "console/tools"
-LICENSE = "Apache-2.0"
-
-LIC_FILES_CHKSUM = "file://protobuf-c/protobuf-c.c;endline=28;md5=0feb44cc63eacef97219b0174967492f"
-
-COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
-
-DEPENDS = "protobuf protobuf-c-native"
-
-SRC_URI[md5sum] = "41d437677ea16f9d3611d98841c4af3b"
-SRC_URI[sha256sum] = "09c5bb187b7a8e86bc0ff860f7df86370be9e8661cdb99c1072dcdab0763562c"
-SRC_URI = "https://github.com/protobuf-c/protobuf-c/releases/download/v1.1.1/protobuf-c-1.1.1.tar.gz "
-SRC_URI_append_class-target ="file://0001-protobuf-c-Remove-the-rules-which-depend-on-the-nati.patch"
-
-inherit autotools pkgconfig
-
-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}
-}
diff --git a/meta-virtualization/recipes-containers/criu/protobuf-c_1.2.1.bb b/meta-virtualization/recipes-containers/criu/protobuf-c_1.2.1.bb
new file mode 100644
index 0000000..ff2499e
--- /dev/null
+++ b/meta-virtualization/recipes-containers/criu/protobuf-c_1.2.1.bb
@@ -0,0 +1,28 @@
+SUMMARY = "protobuf-c"
+DESCRIPTION = "This package provides a code generator and runtime libraries to use Protocol Buffers from pure C"
+HOMEPAGE = "http://code.google.com/p/protobuf-c/"
+SECTION = "console/tools"
+LICENSE = "Apache-2.0"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=235c3195a3968524dc1524b4ebea0c0e"
+
+COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
+
+DEPENDS = "protobuf protobuf-c-native"
+
+SRC_URI[md5sum] = "e544249c329391fff512c3874895cfbe"
+SRC_URI[sha256sum] = "846eb4846f19598affdc349d817a8c4c0c68fd940303e6934725c889f16f00bd"
+SRC_URI = "https://github.com/protobuf-c/protobuf-c/releases/download/v1.2.1/protobuf-c-1.2.1.tar.gz "
+#SRC_URI_append_class-target ="file://0001-protobuf-c-Remove-the-rules-which-depend-on-the-nati.patch"
+
+inherit autotools pkgconfig
+
+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}
+}
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/3] criu: uprev to 2.5
  2016-09-07  8:09 [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 jianchuan.wang
  2016-09-07  8:09 ` [PATCH 2/3] protobuf-c: uprev to 1.2.1 from 1.1.1 jianchuan.wang
@ 2016-09-07  8:09 ` jianchuan.wang
  2016-09-07  9:43 ` [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 Mandela, Venkateswara Rao
  2016-09-07 10:05 ` Jack Mitchell
  3 siblings, 0 replies; 10+ messages in thread
From: jianchuan.wang @ 2016-09-07  8:09 UTC (permalink / raw)
  To: meta-virtualization

From: Jianchuan Wang <jianchuan.wang@windriver.com>

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
---
 .../recipes-containers/criu/criu_git.bb            |  40 ++---
 ...1-criu-Change-libraries-install-directory.patch |  63 +++----
 .../files/0001-criu-Fix-toolchain-hardcode.patch   |  81 ++++++---
 .../0001-criu-add-alias-aarch64-for-arm64.patch    |  36 ++++
 ...0001-kerndat-Introduce-task_size-variable.patch | 140 ----------------
 .../0002-criu-Skip-documentation-install.patch     |  28 ++--
 ...rer-Replace-most-hard-coded-TASK_SIZE-use.patch | 113 -------------
 ...003-Pass-task_size-to-vma_area_is_private.patch | 181 ---------------------
 ...eplace-remaining-hard-coded-TASK_SIZE-use.patch | 132 ---------------
 9 files changed, 157 insertions(+), 657 deletions(-)
 create mode 100644 meta-virtualization/recipes-containers/criu/files/0001-criu-add-alias-aarch64-for-arm64.patch
 delete mode 100644 meta-virtualization/recipes-containers/criu/files/0001-kerndat-Introduce-task_size-variable.patch
 delete mode 100644 meta-virtualization/recipes-containers/criu/files/0002-restorer-Replace-most-hard-coded-TASK_SIZE-use.patch
 delete mode 100644 meta-virtualization/recipes-containers/criu/files/0003-Pass-task_size-to-vma_area_is_private.patch
 delete mode 100644 meta-virtualization/recipes-containers/criu/files/0004-Replace-remaining-hard-coded-TASK_SIZE-use.patch

diff --git a/meta-virtualization/recipes-containers/criu/criu_git.bb b/meta-virtualization/recipes-containers/criu/criu_git.bb
index 10cb52c..683b176 100644
--- a/meta-virtualization/recipes-containers/criu/criu_git.bb
+++ b/meta-virtualization/recipes-containers/criu/criu_git.bb
@@ -11,25 +11,22 @@ LICENSE = "GPLv2"
 
 EXCLUDE_FROM_WORLD = "1"
 
-LIC_FILES_CHKSUM = "file://COPYING;md5=5cc804625b8b491b6b4312f0c9cb5efa"
+LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2"
 
-SRCREV = "4c5b23e52c1dc4e3fbbc7472b92e7b1ce9d22f02"
+SRCREV = "c031417255f6a5c4409d15ff0b36af5f6e90c559"
 PR = "r0"
-PV = "1.6+git${SRCPV}"
+PV = "2.5+git${SRCPV}"
 
 SRC_URI = "git://github.com/xemul/criu.git;protocol=git \
-       file://0001-criu-Fix-toolchain-hardcode.patch \
-	   file://0002-criu-Skip-documentation-install.patch \
-       file://0001-criu-Change-libraries-install-directory.patch \
-       file://0001-kerndat-Introduce-task_size-variable.patch \
-       file://0002-restorer-Replace-most-hard-coded-TASK_SIZE-use.patch \
-       file://0003-Pass-task_size-to-vma_area_is_private.patch \
-       file://0004-Replace-remaining-hard-coded-TASK_SIZE-use.patch \
-       "
+        file://0001-criu-Fix-toolchain-hardcode.patch \
+        file://0002-criu-Skip-documentation-install.patch \
+        file://0001-criu-Change-libraries-install-directory.patch \
+        file://0001-criu-add-alias-aarch64-for-arm64.patch \
+        "
 
 COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
 
-DEPENDS += "protobuf-c-native protobuf-c"
+DEPENDS += "libnl libcap protobuf-c-native protobuf-c"
 
 S = "${WORKDIR}/git"
 
@@ -38,14 +35,17 @@ S = "${WORKDIR}/git"
 # if the ARCH is ARMv7 or ARMv6.
 # ARM BSPs need set CRIU_BUILD_ARCH variable for building CRIU.
 #
-EXTRA_OEMAKE_arm += "ARCH=${CRIU_BUILD_ARCH} WERROR=0"
-EXTRA_OEMAKE_x86-64 += "ARCH=${TARGET_ARCH} WERROR=0"
+EXTRA_OEMAKE_arm += "ARCH=arm UNAME-M=${CRIU_BUILD_ARCH} WERROR=0"
+EXTRA_OEMAKE_x86-64 += "ARCH=x86 WERROR=0"
 EXTRA_OEMAKE_aarch64 += "ARCH=${TARGET_ARCH} WERROR=0"
 
 EXTRA_OEMAKE_append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
 EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}"
 
-CFLAGS += "-D__USE_GNU -D_GNU_SOURCE"
+CFLAGS += "-D__USE_GNU -D_GNU_SOURCE " 
+
+CFLAGS += " -I${STAGING_INCDIR}/libnl3 "
+CFLAGS += " -I${STAGING_INCDIR} "
 
 # overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'"
 export LDFLAGS=""
@@ -56,8 +56,8 @@ export HOST_SYS
 inherit setuptools
 
 do_compile_prepend() {
-    rm -rf ${S}/protobuf/google/protobuf/descriptor.proto
-    ln -s  ${PKG_CONFIG_SYSROOT_DIR}/usr/include/google/protobuf/descriptor.proto ${S}/protobuf/google/protobuf/descriptor.proto
+    rm -rf ${S}/images/google/protobuf/descriptor.proto
+    ln -s  ${PKG_CONFIG_SYSROOT_DIR}/usr/include/google/protobuf/descriptor.proto ${S}/images/google/protobuf/descriptor.proto
 }
 
 do_compile () {
@@ -69,7 +69,7 @@ do_install () {
 }
 
 FILES_${PN} += "${systemd_unitdir}/ \
-            ${libdir}/python2.7/site-packages/ \
-            ${libdir}/pycriu/ \
-            ${libdir}/crit-0.0.1-py2.7.egg-info \
+            ${base_libdir}/python2.7/site-packages/ \
+            ${base_libdir}/pycriu/ \
+            ${base_libdir}/crit-0.0.1-py2.7.egg-info \
             "
diff --git a/meta-virtualization/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch b/meta-virtualization/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch
index 28d638b..a721405 100644
--- a/meta-virtualization/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch
+++ b/meta-virtualization/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch
@@ -1,48 +1,39 @@
-From cb9933dc34af0b4d52c4584332600114ac65c402 Mon Sep 17 00:00:00 2001
+From 7ebde06e00b591a88397dad74a1aa47fd562eb50 Mon Sep 17 00:00:00 2001
 From: Jianchuan Wang <jianchuan.wang@windriver.com>
-Date: Tue, 4 Aug 2015 17:45:51 +0800
-Subject: [PATCH] criu: Change libraries install directory
+Date: Tue, 16 Aug 2016 09:48:08 +0800
+Subject: [PATCH 1/2] criu: Change libraries install directory
 
-Install the libraries into /usr/lib(/usr/lib64)
+Install the libraries into /usr/lib(or /usr/lib64)
 
 Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
 ---
- Makefile     | 2 +-
- Makefile.inc | 9 ---------
- 2 files changed, 1 insertion(+), 10 deletions(-)
+ Makefile.install | 13 -------------
+ 1 file changed, 13 deletions(-)
 
-diff --git a/Makefile b/Makefile
-index 7f5c890..6dbc436 100644
---- a/Makefile
-+++ b/Makefile
-@@ -351,7 +351,7 @@ install-man:
+diff --git a/Makefile.install b/Makefile.install
+index dbc22e1..a30dc96 100644
+--- a/Makefile.install
++++ b/Makefile.install
+@@ -11,19 +11,6 @@ LIBDIR		?= $(PREFIX)/lib
+ INCLUDEDIR	?= $(PREFIX)/include/criu
+ LIBEXECDIR	?= $(PREFIX)/libexec
  
- install-crit: crit
- 	$(E) "  INSTALL crit"
--	$(Q) python scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX)
-+	$(Q) python scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) --install-lib=$(LIBDIR)
- 
- .PHONY: install install-man install-crit install-criu
- 
-diff --git a/Makefile.inc b/Makefile.inc
-index 5496f41..ba70aea 100644
---- a/Makefile.inc
-+++ b/Makefile.inc
-@@ -17,14 +17,5 @@ MANDIR		:= $(PREFIX)/share/man
- SYSTEMDUNITDIR	:= $(PREFIX)/lib/systemd/system/
- LOGROTATEDIR	:= $(PREFIX)/etc/logrotate.d/
- LIBDIR		:= $(PREFIX)/lib
--# For recent Debian/Ubuntu with multiarch support
--DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture \
--			-qDEB_HOST_MULTIARCH 2>/dev/null)
+-#
+-# For recent Debian/Ubuntu with multiarch support.
+-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null)
 -ifneq "$(DEB_HOST_MULTIARCH)" ""
--LIBDIR		:= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
--# For most other systems
--else ifeq "$(shell uname -m)" "x86_64"
--LIBDIR		:= $(PREFIX)/lib64
+-        LIBDIR			?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
+-else
+-        #
+-        # For most other systems
+-        ifeq "$(shell uname -m)" "x86_64"
+-                LIBDIR		?= $(PREFIX)/lib64
+-        endif
 -endif
+-
+ export BINDIR SBINDIR MANDIR SYSTEMDUNITDIR LOGROTATEDIR
+ export INCLUDEDIR LIBDIR DESTDIR PREFIX LIBEXECDIR
  
- INCLUDEDIR	:= $(PREFIX)/include/criu
 -- 
-1.9.1
+2.7.4
 
diff --git a/meta-virtualization/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch b/meta-virtualization/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch
index a91b589..f54df4f 100644
--- a/meta-virtualization/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch
+++ b/meta-virtualization/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch
@@ -1,45 +1,84 @@
-From 3d4f112fdb434712eba09239a468842323f1af4c Mon Sep 17 00:00:00 2001
-From: Yang Shi <yang.shi@windriver.com>
-Date: Tue, 26 Aug 2014 14:42:42 -0700
-Subject: [PATCH 1/2] criu: Fix toolchain hardcode
+From a058ec2dc7ae79d7fda358cc496e1341033a84f1 Mon Sep 17 00:00:00 2001
+From: Jianchuan Wang <jianchuan.wang@windriver.com>
+Date: Wed, 7 Sep 2016 02:22:31 -0400
+Subject: [PATCH] criu: Fix toolchain hardcode
 
 Replace ":=" to "?=" so that the toolchain used by bitbake build system will
 be taken.
 
 Signed-off-by: Yang Shi <yang.shi@windriver.com>
+Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
 ---
- Makefile | 18 +++++++++---------
- 1 file changed, 9 insertions(+), 9 deletions(-)
+ Makefile                     |  2 +-
+ scripts/nmk/scripts/tools.mk | 40 ++++++++++++++++++++--------------------
+ 2 files changed, 21 insertions(+), 21 deletions(-)
 
 diff --git a/Makefile b/Makefile
-index f1c8784..43252ec 100644
+index 52cbd6a..f66279b 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -23,15 +23,15 @@ export VERSION_SO_MAJOR VERSION_SO_MINOR
- # Common definitions
- #
+@@ -60,7 +60,7 @@ LDARCH			?= $(SRCARCH)
+
+ export SRCARCH LDARCH VDSO
+
+-UNAME-M := $(shell uname -m)
++UNAME-M ?= $(shell uname -m)
+ export UNAME-M
+
+ ifeq ($(ARCH),arm)
+diff --git a/scripts/nmk/scripts/tools.mk b/scripts/nmk/scripts/tools.mk
+index 0538dde..e4af068 100644
+--- a/scripts/nmk/scripts/tools.mk
++++ b/scripts/nmk/scripts/tools.mk
+@@ -2,28 +2,28 @@ ifndef ____nmk_defined__tools
  
--FIND		:= find
--CSCOPE		:= cscope
+ #
+ # System tools shorthands
 -RM		:= rm -f
 -LD		:= $(CROSS_COMPILE)ld
 -CC		:= $(CROSS_COMPILE)gcc
+-CPP		:= $(CC) -E
+-AS		:= $(CROSS_COMPILE)as
+-AR		:= $(CROSS_COMPILE)ar
+-STRIP		:= $(CROSS_COMPILE)strip
+-OBJCOPY		:= $(CROSS_COMPILE)objcopy
+-OBJDUMP		:= $(CROSS_COMPILE)objdump
 -NM		:= $(CROSS_COMPILE)nm
--SH		:= bash
 -MAKE		:= make
--OBJCOPY		:= $(CROSS_COMPILE)objcopy
-+FIND		?= find
-+CSCOPE		?= cscope
+-MKDIR		:= mkdir -p
+-AWK		:= awk
+-PERL		:= perl
+-PYTHON		:= python
+-FIND		:= find
+-SH		:= $(shell if [ -x "$$BASH" ]; then echo $$BASH;        \
 +RM		?= rm -f
 +LD		?= $(CROSS_COMPILE)ld
 +CC		?= $(CROSS_COMPILE)gcc
++CPP		?= $(CC) -E
++AS		?= $(CROSS_COMPILE)as
++AR		?= $(CROSS_COMPILE)ar
++STRIP		?= $(CROSS_COMPILE)strip
++OBJCOPY		?= $(CROSS_COMPILE)objcopy
++OBJDUMP		?= $(CROSS_COMPILE)objdump
 +NM		?= $(CROSS_COMPILE)nm
-+SH		?= bash
 +MAKE		?= make
-+OBJCOPY		?= $(CROSS_COMPILE)objcopy
- 
- CFLAGS		+= $(USERCFLAGS)
++MKDIR		?= mkdir -p
++AWK		?= awk
++PERL		?= perl
++PYTHON		?= python
++FIND		?= find
++SH		?= $(shell if [ -x "$$BASH" ]; then echo $$BASH;        \
+                         else if [ -x /bin/bash ]; then echo /bin/bash;  \
+                         else echo sh; fi ; fi)
+-CSCOPE		:= cscope
+-ETAGS		:= etags
+-CTAGS		:= ctags
++CSCOPE		?= cscope
++ETAGS		?= etags
++CTAGS		?= ctags
  
+ export RM LD CC CPP AS AR STRIP OBJCOPY OBJDUMP
+ export NM SH MAKE MKDIR AWK PERL PYTHON SH CSCOPE
 -- 
-2.0.2
+2.8.1
 
diff --git a/meta-virtualization/recipes-containers/criu/files/0001-criu-add-alias-aarch64-for-arm64.patch b/meta-virtualization/recipes-containers/criu/files/0001-criu-add-alias-aarch64-for-arm64.patch
new file mode 100644
index 0000000..6288e8e
--- /dev/null
+++ b/meta-virtualization/recipes-containers/criu/files/0001-criu-add-alias-aarch64-for-arm64.patch
@@ -0,0 +1,36 @@
+From 810265372c1085f8761e1e2adcc6f09db2af7cc1 Mon Sep 17 00:00:00 2001
+From: Jianchuan Wang <jianchuan.wang@windriver.com>
+Date: Thu, 18 Aug 2016 05:33:38 -0400
+Subject: [PATCH] criu: add alias aarch64 for arm64
+
+Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
+---
+ Makefile | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+Index: git/Makefile
+===================================================================
+--- git.orig/Makefile
++++ git/Makefile
+@@ -25,7 +25,7 @@ export SRC_DIR
+ 
+ #
+ # Architecture specific options.
+-ifneq ($(filter-out x86 arm arm64 ppc64,$(ARCH)),)
++ifneq ($(filter-out x86 arm aarch64 arm64 ppc64,$(ARCH)),)
+         $(error "The architecture $(ARCH) isn't supported")
+ endif
+ 
+@@ -43,6 +43,12 @@ ifeq ($(ARCH),arm64)
+         ARCH		:= aarch64
+         SRCARCH		:= aarch64
+         VDSO		:= y
++endif
++
++ifeq ($(ARCH),aarch64)
++        ARCH		:= aarch64
++        SRCARCH		:= aarch64
++        VDSO		:= y
+ endif
+
+ ifeq ($(ARCH),ppc64)
diff --git a/meta-virtualization/recipes-containers/criu/files/0001-kerndat-Introduce-task_size-variable.patch b/meta-virtualization/recipes-containers/criu/files/0001-kerndat-Introduce-task_size-variable.patch
deleted file mode 100644
index 1bf8d92..0000000
--- a/meta-virtualization/recipes-containers/criu/files/0001-kerndat-Introduce-task_size-variable.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-From c0c0546c31e6df4932669f4740197bb830a24c8d Mon Sep 17 00:00:00 2001
-From: Christopher Covington <cov@codeaurora.org>
-Date: Fri, 31 Jul 2015 10:36:24 -0400
-Subject: [PATCH 1/4] kerndat: Introduce task_size variable
-
-If we want one CRIU binary to work across all AArch64 kernel
-configurations, a single task size value cannot be hard coded.
-
-Signed-off-by: Christopher Covington <cov@codeaurora.org>
-Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
----
- arch/aarch64/include/asm/types.h | 20 ++++++++++++++++++++
- arch/arm/include/asm/types.h     |  2 ++
- arch/ppc64/include/asm/types.h   |  2 ++
- arch/x86/include/asm/types.h     |  2 ++
- include/kerndat.h                |  1 +
- kerndat.c                        | 11 +++++++++++
- 6 files changed, 38 insertions(+)
-
-diff --git a/arch/aarch64/include/asm/types.h b/arch/aarch64/include/asm/types.h
-index 6512f67..0846dd9 100644
---- a/arch/aarch64/include/asm/types.h
-+++ b/arch/aarch64/include/asm/types.h
-@@ -66,6 +66,26 @@ typedef struct user_pt_regs user_regs_struct_t;
- 
- #define TASK_SIZE (1ULL << 39)
- 
-+/*
-+ * Range for task size calculated from the following Linux kernel files:
-+ *   arch/arm64/include/asm/memory.h
-+ *   arch/arm64/Kconfig
-+ */
-+#define TASK_SIZE_MIN (1UL << 39)
-+#define TASK_SIZE_MAX (1UL << 48)
-+
-+int munmap(void *addr, size_t length);
-+
-+static inline unsigned long task_size() {
-+	unsigned long task_size;
-+
-+	for (task_size = TASK_SIZE_MIN; task_size < TASK_SIZE_MAX; task_size <<= 1)
-+		if (munmap((void *)task_size, page_size()))
-+			break;
-+
-+	return task_size;
-+}
-+
- #define AT_VECTOR_SIZE 40
- 
- typedef UserAarch64RegsEntry UserRegsEntry;
-diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h
-index 4efebdd..915db61 100644
---- a/arch/arm/include/asm/types.h
-+++ b/arch/arm/include/asm/types.h
-@@ -98,6 +98,8 @@ struct user_vfp_exc {
- 
- #define TASK_SIZE 0xbf000000
- 
-+static inline unsigned long task_size() { return TASK_SIZE; }
-+
- #define AT_VECTOR_SIZE 40
- 
- typedef UserArmRegsEntry UserRegsEntry;
-diff --git a/arch/ppc64/include/asm/types.h b/arch/ppc64/include/asm/types.h
-index 934a4fb..3412dc7 100644
---- a/arch/ppc64/include/asm/types.h
-+++ b/arch/ppc64/include/asm/types.h
-@@ -105,6 +105,8 @@ typedef uint64_t tls_t;
- #define TASK_SIZE_USER64 (0x0000400000000000UL)
- #define TASK_SIZE TASK_SIZE_USER64
- 
-+static inline unsigned long task_size() { return TASK_SIZE; }
-+
- static inline void *decode_pointer(uint64_t v) { return (void*)v; }
- static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; }
- 
-diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
-index db41b75..b2d0189 100644
---- a/arch/x86/include/asm/types.h
-+++ b/arch/x86/include/asm/types.h
-@@ -119,6 +119,8 @@ typedef struct {
- # define TASK_SIZE	(0xffffe000)
- #endif
- 
-+static inline unsigned long task_size() { return TASK_SIZE; }
-+
- typedef u64 auxv_t;
- typedef u32 tls_t;
- 
-diff --git a/include/kerndat.h b/include/kerndat.h
-index c9e902a..b9ae749 100644
---- a/include/kerndat.h
-+++ b/include/kerndat.h
-@@ -23,6 +23,7 @@ struct kerndat_s {
- 	bool has_dirty_track;
- 	bool has_memfd;
- 	bool has_fdinfo_lock;
-+	unsigned long task_size;
- };
- 
- extern struct kerndat_s kdat;
-diff --git a/kerndat.c b/kerndat.c
-index 54ba8c7..4845532 100644
---- a/kerndat.c
-+++ b/kerndat.c
-@@ -273,6 +273,13 @@ static bool kerndat_has_memfd_create(void)
- 	return 0;
- }
- 
-+static int get_task_size(void)
-+{
-+	kdat.task_size = task_size();
-+	pr_debug("Found task size of %lx\n", kdat.task_size);
-+	return 0;
-+}
-+
- int kerndat_fdinfo_has_lock()
- {
- 	int fd, pfd = -1, exit_code = -1, len;
-@@ -323,6 +330,8 @@ int kerndat_init(void)
- 		ret = get_last_cap();
- 	if (!ret)
- 		ret = kerndat_fdinfo_has_lock();
-+	if (!ret)
-+		ret = get_task_size();
- 
- 	kerndat_lsm();
- 
-@@ -344,6 +353,8 @@ int kerndat_init_rst(void)
- 		ret = get_last_cap();
- 	if (!ret)
- 		ret = kerndat_has_memfd_create();
-+	if (!ret)
-+		ret = get_task_size();
- 
- 	kerndat_lsm();
- 
--- 
-1.9.1
-
diff --git a/meta-virtualization/recipes-containers/criu/files/0002-criu-Skip-documentation-install.patch b/meta-virtualization/recipes-containers/criu/files/0002-criu-Skip-documentation-install.patch
index d37a806..ba414d9 100644
--- a/meta-virtualization/recipes-containers/criu/files/0002-criu-Skip-documentation-install.patch
+++ b/meta-virtualization/recipes-containers/criu/files/0002-criu-Skip-documentation-install.patch
@@ -1,28 +1,28 @@
-From e9c2a94b9eb37ad24672b10caa398bd18282b962 Mon Sep 17 00:00:00 2001
-From: Yang Shi <yang.shi@windriver.com>
-Date: Tue, 26 Aug 2014 14:44:51 -0700
+From 07d9b3d0c372e45127dd51781d9564e8bee90dbe Mon Sep 17 00:00:00 2001
+From: Jianchuan Wang <jianchuan.wang@windriver.com>
+Date: Tue, 16 Aug 2016 09:42:24 +0800
 Subject: [PATCH 2/2] criu: Skip documentation install
 
 asciidoc is needed to generate CRIU documentation, so skip it in install.
 
-Signed-off-by: Yang Shi <yang.shi@windriver.com>
+Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
 ---
- Makefile | 2 +-
+ Makefile.install | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/Makefile b/Makefile
-index 43252ec..e25edcc 100644
---- a/Makefile
-+++ b/Makefile
-@@ -265,7 +265,7 @@ install: $(PROGRAM) install-man
- 	$(Q) install -m 644 scripts/logrotate.d/criu-service $(DESTDIR)$(LOGROTATEDIR)
+diff --git a/Makefile.install b/Makefile.install
+index a30dc96..33143fb 100644
+--- a/Makefile.install
++++ b/Makefile.install
+@@ -22,7 +22,7 @@ install-tree:
+ .PHONY: install-tree
  
  install-man:
 -	$(Q) $(MAKE) -C Documentation install
 +#	$(Q) $(MAKE) -C Documentation install
+ .PHONY: install-man
  
- .PHONY: install install-man
- 
+ install-lib: lib
 -- 
-2.0.2
+2.7.4
 
diff --git a/meta-virtualization/recipes-containers/criu/files/0002-restorer-Replace-most-hard-coded-TASK_SIZE-use.patch b/meta-virtualization/recipes-containers/criu/files/0002-restorer-Replace-most-hard-coded-TASK_SIZE-use.patch
deleted file mode 100644
index 1d48d18..0000000
--- a/meta-virtualization/recipes-containers/criu/files/0002-restorer-Replace-most-hard-coded-TASK_SIZE-use.patch
+++ /dev/null
@@ -1,113 +0,0 @@
-From 7451fc7d2385fcebdbd907ecda903f087c8e7273 Mon Sep 17 00:00:00 2001
-From: Christopher Covington <cov@codeaurora.org>
-Date: Fri, 31 Jul 2015 10:36:25 -0400
-Subject: [PATCH 2/4] restorer: Replace most hard-coded TASK_SIZE use
-
-If we want one CRIU binary to work across all AArch64 kernel
-configurations, a single task size value cannot be hard coded.
-This fixes the following error on AArch64 kernels with
-CONFIG_ARM64_64K_PAGES=y.
-
-  pie: Error (pie/restorer.c:772): Unable to unmap (-): -1211695104
-
-Signed-off-by: Christopher Covington <cov@codeaurora.org>
-Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
----
- cr-restore.c       |  2 ++
- include/restorer.h |  1 +
- pie/restorer.c     | 17 +++++++++--------
- 3 files changed, 12 insertions(+), 8 deletions(-)
-
-diff --git a/cr-restore.c b/cr-restore.c
-index cec3104..a475802 100644
---- a/cr-restore.c
-+++ b/cr-restore.c
-@@ -2893,6 +2893,8 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
- 	task_args->premmapped_addr = (unsigned long)rsti(current)->premmapped_addr;
- 	task_args->premmapped_len = rsti(current)->premmapped_len;
- 
-+	task_args->task_size = kdat.task_size;
-+
- #define remap_array(name, nr, cpos)	do {				\
- 		task_args->name##_n = nr;				\
- 		task_args->name = rst_mem_remap_ptr(cpos, RM_PRIVATE);	\
-diff --git a/include/restorer.h b/include/restorer.h
-index 97a012c..56b9938 100644
---- a/include/restorer.h
-+++ b/include/restorer.h
-@@ -139,6 +139,7 @@ struct task_restore_args {
- 	unsigned int			zombies_n;
- 	/* * * * * * * * * * * * * * * * * * * * */
- 
-+	unsigned long			task_size;
- 	unsigned long			premmapped_addr;
- 	unsigned long			premmapped_len;
- 	rt_sigaction_t			sigchld_act;
-diff --git a/pie/restorer.c b/pie/restorer.c
-index d84a5c0..3e582cc 100644
---- a/pie/restorer.c
-+++ b/pie/restorer.c
-@@ -727,16 +727,17 @@ void __export_unmap(void)
-  * and arguments and the one with private vmas of the tasks we restore
-  * (a.k.a. premmaped area):
-  *
-- * 0                       TASK_SIZE
-+ * 0                       task_size
-  * +----+====+----+====+---+
-  *
-  * Thus to unmap old memory we have to do 3 unmaps:
-  * [ 0 -- 1st area start ]
-  * [ 1st end -- 2nd start ]
-- * [ 2nd start -- TASK_SIZE ]
-+ * [ 2nd start -- task_size ]
-  */
- static int unmap_old_vmas(void *premmapped_addr, unsigned long premmapped_len,
--		      void *bootstrap_start, unsigned long bootstrap_len)
-+		      void *bootstrap_start, unsigned long bootstrap_len,
-+		      unsigned long task_size)
- {
- 	unsigned long s1, s2;
- 	void *p1, *p2;
-@@ -766,10 +767,10 @@ static int unmap_old_vmas(void *premmapped_addr, unsigned long premmapped_len,
- 		return -1;
- 	}
- 
--	ret = sys_munmap(p2 + s2, (void *) TASK_SIZE - (p2 + s2));
-+	ret = sys_munmap(p2 + s2, task_size - (unsigned long)(p2 + s2));
- 	if (ret) {
- 		pr_err("Unable to unmap (%p-%p): %d\n",
--				p2 + s2, (void *)TASK_SIZE, ret);
-+				p2 + s2, (void *)task_size, ret);
- 		return -1;
- 	}
- 
-@@ -870,7 +871,7 @@ long __export_restore_task(struct task_restore_args *args)
- 		goto core_restore_end;
- 
- 	if (unmap_old_vmas((void *)args->premmapped_addr, args->premmapped_len,
--				bootstrap_start, bootstrap_len))
-+				bootstrap_start, bootstrap_len, args->task_size))
- 		goto core_restore_end;
- 
- 	/* Shift private vma-s to the left */
-@@ -880,7 +881,7 @@ long __export_restore_task(struct task_restore_args *args)
- 		if (!vma_entry_is_private(vma_entry))
- 			continue;
- 
--		if (vma_entry->end >= TASK_SIZE)
-+		if (vma_entry->end >= args->task_size)
- 			continue;
- 
- 		if (vma_entry->start > vma_entry->shmid)
-@@ -898,7 +899,7 @@ long __export_restore_task(struct task_restore_args *args)
- 		if (!vma_entry_is_private(vma_entry))
- 			continue;
- 
--		if (vma_entry->start > TASK_SIZE)
-+		if (vma_entry->start > args->task_size)
- 			continue;
- 
- 		if (vma_entry->start < vma_entry->shmid)
--- 
-1.9.1
-
diff --git a/meta-virtualization/recipes-containers/criu/files/0003-Pass-task_size-to-vma_area_is_private.patch b/meta-virtualization/recipes-containers/criu/files/0003-Pass-task_size-to-vma_area_is_private.patch
deleted file mode 100644
index b0f571b..0000000
--- a/meta-virtualization/recipes-containers/criu/files/0003-Pass-task_size-to-vma_area_is_private.patch
+++ /dev/null
@@ -1,181 +0,0 @@
-From 1438f013a2ac70ca5b9b80c44f5b6cda65a30eac Mon Sep 17 00:00:00 2001
-From: Christopher Covington <cov@codeaurora.org>
-Date: Fri, 31 Jul 2015 10:36:26 -0400
-Subject: [PATCH 3/4] Pass task_size to vma_area_is_private()
-
-If we want one CRIU binary to work across all AArch64 kernel
-configurations, a single task size value cannot be hard coded. Since
-vma_area_is_private() is used by both restorer blob code and non
-restorer blob code, which must use different variables for recording
-the task size, make task_size a function argument and modify the call
-sites accordingly. This fixes the following error on AArch64 kernels
-with CONFIG_ARM64_64K_PAGES=y.
-
-  pie: Error (pie/restorer.c:929): Can't restore 0x3ffb7e70000 mapping w>
-  pie: ith 0xfffffffffffffff7
-
-Signed-off-by: Christopher Covington <cov@codeaurora.org>
-Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
----
- cr-restore.c   | 10 +++++-----
- include/vma.h  | 10 ++++++----
- mem.c          |  6 +++---
- pie/restorer.c |  6 +++---
- proc_parse.c   |  2 +-
- 5 files changed, 18 insertions(+), 16 deletions(-)
-
-diff --git a/cr-restore.c b/cr-restore.c
-index a475802..1aa0919 100644
---- a/cr-restore.c
-+++ b/cr-restore.c
-@@ -269,7 +269,7 @@ static int map_private_vma(struct vma_area *vma, void **tgt_addr,
- 		if (p->e->start > vma->e->start)
- 			 break;
- 
--		if (!vma_area_is_private(p))
-+		if (!vma_area_is_private(p, kdat.task_size))
- 			continue;
- 
- 		 if (p->e->end != vma->e->end ||
-@@ -381,7 +381,7 @@ static int premap_priv_vmas(struct vm_area_list *vmas, void *at)
- 		}
- 		pstart = vma->e->start;
- 
--		if (!vma_area_is_private(vma))
-+		if (!vma_area_is_private(vma, kdat.task_size))
- 			continue;
- 
- 		ret = map_private_vma(vma, &at, &pvma, parent_vmas);
-@@ -447,7 +447,7 @@ static int restore_priv_vma_content(void)
- 			 */
- 			if (va < vma->e->start)
- 				goto err_addr;
--			else if (unlikely(!vma_area_is_private(vma))) {
-+			else if (unlikely(!vma_area_is_private(vma, kdat.task_size))) {
- 				pr_err("Trying to restore page for non-private VMA\n");
- 				goto err_addr;
- 			}
-@@ -590,7 +590,7 @@ static int unmap_guard_pages()
- 	struct list_head *vmas = &rsti(current)->vmas.h;
- 
- 	list_for_each_entry(vma, vmas, list) {
--		if (!vma_area_is_private(vma))
-+		if (!vma_area_is_private(vma, kdat.task_size))
- 			continue;
- 
- 		if (vma->e->flags & MAP_GROWSDOWN) {
-@@ -2713,7 +2713,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
- 
- 		*vme = *vma->e;
- 
--		if (vma_area_is_private(vma))
-+		if (vma_area_is_private(vma, kdat.task_size))
- 			vma_premmaped_start(vme) = vma->premmaped_addr;
- 	}
- 
-diff --git a/include/vma.h b/include/vma.h
-index 8b7a06c..6c28136 100644
---- a/include/vma.h
-+++ b/include/vma.h
-@@ -92,17 +92,19 @@ static inline int in_vma_area(struct vma_area *vma, unsigned long addr)
- 		addr < (unsigned long)vma->e->end;
- }
- 
--static inline bool vma_entry_is_private(VmaEntry *entry)
-+static inline bool vma_entry_is_private(VmaEntry *entry,
-+					unsigned long task_size)
- {
- 	return vma_entry_is(entry, VMA_AREA_REGULAR)	&&
- 		(vma_entry_is(entry, VMA_ANON_PRIVATE)	||
- 		 vma_entry_is(entry, VMA_FILE_PRIVATE)) &&
--		 (entry->end <= TASK_SIZE);
-+		 (entry->end <= task_size);
- }
- 
--static inline bool vma_area_is_private(struct vma_area *vma)
-+static inline bool vma_area_is_private(struct vma_area *vma,
-+				       unsigned long task_size)
- {
--	return vma_entry_is_private(vma->e);
-+	return vma_entry_is_private(vma->e, task_size);
- }
- 
- #endif /* __CR_VMA_H__ */
-diff --git a/mem.c b/mem.c
-index 1821874..989efc3 100644
---- a/mem.c
-+++ b/mem.c
-@@ -178,7 +178,7 @@ static struct parasite_dump_pages_args *prep_dump_pages_args(struct parasite_ctl
- 	args->nr_vmas = 0;
- 
- 	list_for_each_entry(vma, &vma_area_list->h, list) {
--		if (!vma_area_is_private(vma))
-+		if (!vma_area_is_private(vma, kdat.task_size))
- 			continue;
- 		if (vma->e->prot & PROT_READ)
- 			continue;
-@@ -293,7 +293,7 @@ static int __parasite_dump_pages_seized(struct parasite_ctl *ctl,
- 		u64 off = 0;
- 		u64 *map;
- 
--		if (!vma_area_is_private(vma_area))
-+		if (!vma_area_is_private(vma_area, kdat.task_size))
- 			continue;
- 
- 		map = pmc_get_map(&pmc, vma_area);
-@@ -441,7 +441,7 @@ int prepare_mm_pid(struct pstree_item *i)
- 		}
- 		list_add_tail(&vma->list, &ri->vmas.h);
- 
--		if (vma_area_is_private(vma)) {
-+		if (vma_area_is_private(vma, kdat.task_size)) {
- 			ri->vmas.priv_size += vma_area_len(vma);
- 			if (vma->e->flags & MAP_GROWSDOWN)
- 				ri->vmas.priv_size += PAGE_SIZE;
-diff --git a/pie/restorer.c b/pie/restorer.c
-index 3e582cc..5e1db1f 100644
---- a/pie/restorer.c
-+++ b/pie/restorer.c
-@@ -878,7 +878,7 @@ long __export_restore_task(struct task_restore_args *args)
- 	for (i = 0; i < args->vmas_n; i++) {
- 		vma_entry = args->vmas + i;
- 
--		if (!vma_entry_is_private(vma_entry))
-+		if (!vma_entry_is_private(vma_entry, args->task_size))
- 			continue;
- 
- 		if (vma_entry->end >= args->task_size)
-@@ -896,7 +896,7 @@ long __export_restore_task(struct task_restore_args *args)
- 	for (i = args->vmas_n - 1; i >= 0; i--) {
- 		vma_entry = args->vmas + i;
- 
--		if (!vma_entry_is_private(vma_entry))
-+		if (!vma_entry_is_private(vma_entry, args->task_size))
- 			continue;
- 
- 		if (vma_entry->start > args->task_size)
-@@ -919,7 +919,7 @@ long __export_restore_task(struct task_restore_args *args)
- 		if (!vma_entry_is(vma_entry, VMA_AREA_REGULAR))
- 			continue;
- 
--		if (vma_entry_is_private(vma_entry))
-+		if (vma_entry_is_private(vma_entry, args->task_size))
- 			continue;
- 
- 		va = restore_mapping(vma_entry);
-diff --git a/proc_parse.c b/proc_parse.c
-index 5a61b6d..3b65c01 100644
---- a/proc_parse.c
-+++ b/proc_parse.c
-@@ -473,7 +473,7 @@ static int vma_list_add(struct vma_area *vma_area,
- 
- 	list_add_tail(&vma_area->list, &vma_area_list->h);
- 	vma_area_list->nr++;
--	if (vma_area_is_private(vma_area)) {
-+	if (vma_area_is_private(vma_area, kdat.task_size)) {
- 		unsigned long pages;
- 
- 		pages = vma_area_len(vma_area) / PAGE_SIZE;
--- 
-1.9.1
-
diff --git a/meta-virtualization/recipes-containers/criu/files/0004-Replace-remaining-hard-coded-TASK_SIZE-use.patch b/meta-virtualization/recipes-containers/criu/files/0004-Replace-remaining-hard-coded-TASK_SIZE-use.patch
deleted file mode 100644
index 4cb5b79..0000000
--- a/meta-virtualization/recipes-containers/criu/files/0004-Replace-remaining-hard-coded-TASK_SIZE-use.patch
+++ /dev/null
@@ -1,132 +0,0 @@
-From f9ae6d9dd4e4a1f4bc6db7f9e9d552ee7fa175a0 Mon Sep 17 00:00:00 2001
-From: Christopher Covington <cov@codeaurora.org>
-Date: Fri, 31 Jul 2015 10:36:27 -0400
-Subject: [PATCH 4/4] Replace remaining hard-coded TASK_SIZE use
-
-If we want one CRIU binary to work across all AArch64 kernel
-configurations, a single task size value cannot be hard coded. While
-trivial applications successfully checkpoint and restore on AArch64
-kernels with CONFIG_ARM64_64K_PAGES=y without this patch, replacing
-the remaining use of the hard-coded value seems like the best way to
-guard against failures that more complex process trees and future uses
-may expose.
-
-Signed-off-by: Christopher Covington <cov@codeaurora.org>
-Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
----
- arch/aarch64/include/asm/types.h | 7 ++-----
- arch/aarch64/vdso.c              | 2 +-
- arch/arm/crtools.c               | 3 ++-
- cr-restore.c                     | 2 +-
- pagemap-cache.c                  | 5 +++--
- parasite-syscall.c               | 2 +-
- 6 files changed, 10 insertions(+), 11 deletions(-)
-
-diff --git a/arch/aarch64/include/asm/types.h b/arch/aarch64/include/asm/types.h
-index 0846dd9..d6c890d 100644
---- a/arch/aarch64/include/asm/types.h
-+++ b/arch/aarch64/include/asm/types.h
-@@ -61,15 +61,12 @@ typedef struct user_pt_regs user_regs_struct_t;
- #define REG_IP(regs)		((u64)(regs).pc)
- #define REG_SYSCALL_NR(regs)	((u64)(regs).regs[8])
- 
--// Copied from the Linux kernel arch/arm64/include/asm/memory.h
--// FIXME: what about a 32bit task?
--
--#define TASK_SIZE (1ULL << 39)
--
- /*
-  * Range for task size calculated from the following Linux kernel files:
-  *   arch/arm64/include/asm/memory.h
-  *   arch/arm64/Kconfig
-+ *
-+ * TODO: handle 32 bit tasks
-  */
- #define TASK_SIZE_MIN (1UL << 39)
- #define TASK_SIZE_MAX (1UL << 48)
-diff --git a/arch/aarch64/vdso.c b/arch/aarch64/vdso.c
-index 43d9637..2c127a4 100644
---- a/arch/aarch64/vdso.c
-+++ b/arch/aarch64/vdso.c
-@@ -87,7 +87,7 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid,
- 			continue;
- 		}
- 
--		if (vma->e->start > TASK_SIZE)
-+		if (vma->e->start > kdat.task_size)
- 			continue;
- 
- 		if (vma->e->flags & MAP_GROWSDOWN)
-diff --git a/arch/arm/crtools.c b/arch/arm/crtools.c
-index b692a7f..66405d2 100644
---- a/arch/arm/crtools.c
-+++ b/arch/arm/crtools.c
-@@ -18,6 +18,7 @@
- #include "parasite-syscall.h"
- #include "restorer.h"
- #include "errno.h"
-+#include "kerndat.h"
- 
- 
- /*
-@@ -212,7 +213,7 @@ void *mmap_seized(struct parasite_ctl *ctl,
- 
- 	err = syscall_seized(ctl, __NR_mmap2, &map,
- 			(unsigned long)addr, length, prot, flags, fd, offset >> 12);
--	if (err < 0 || map > TASK_SIZE)
-+	if (err < 0 || map > kdat.task_size)
- 		map = 0;
- 
- 	return (void *)map;
-diff --git a/cr-restore.c b/cr-restore.c
-index 1aa0919..b8b4473 100644
---- a/cr-restore.c
-+++ b/cr-restore.c
-@@ -2009,7 +2009,7 @@ static long restorer_get_vma_hint(struct list_head *tgt_vma_list,
- 	VmaEntry end_e;
- 
- 	end_vma.e = &end_e;
--	end_e.start = end_e.end = TASK_SIZE;
-+	end_e.start = end_e.end = kdat.task_size;
- 	prev_vma_end = PAGE_SIZE * 0x10; /* CONFIG_LSM_MMAP_MIN_ADDR=65536 */
- 
- 	s_vma = list_first_entry(self_vma_list, struct vma_area, list);
-diff --git a/pagemap-cache.c b/pagemap-cache.c
-index 9def587..9ce7b91 100644
---- a/pagemap-cache.c
-+++ b/pagemap-cache.c
-@@ -7,6 +7,7 @@
- #include "util.h"
- #include "log.h"
- #include "vma.h"
-+#include "kerndat.h"
- 
- #undef	LOG_PREFIX
- #define LOG_PREFIX "pagemap-cache: "
-@@ -66,8 +67,8 @@ static int pmc_fill_cache(pmc_t *pmc, struct vma_area *vma)
- 	size_t len = vma_area_len(vma);
- 	size_t size_map;
- 
--	if (high > TASK_SIZE)
--		high = TASK_SIZE;
-+	if (high > kdat.task_size)
-+		high = kdat.task_size;
- 
- 	pmc->start = vma->e->start;
- 	pmc->end = vma->e->end;
-diff --git a/parasite-syscall.c b/parasite-syscall.c
-index 6d2e7fc..ee339db 100644
---- a/parasite-syscall.c
-+++ b/parasite-syscall.c
-@@ -56,7 +56,7 @@ static struct vma_area *get_vma_by_ip(struct list_head *vma_area_list, unsigned
- 	struct vma_area *vma_area;
- 
- 	list_for_each_entry(vma_area, vma_area_list, list) {
--		if (vma_area->e->start >= TASK_SIZE)
-+		if (vma_area->e->start >= kdat.task_size)
- 			continue;
- 		if (!(vma_area->e->prot & PROT_EXEC))
- 			continue;
--- 
-1.9.1
-
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
  2016-09-07  8:09 [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 jianchuan.wang
  2016-09-07  8:09 ` [PATCH 2/3] protobuf-c: uprev to 1.2.1 from 1.1.1 jianchuan.wang
  2016-09-07  8:09 ` [PATCH 3/3] criu: uprev to 2.5 jianchuan.wang
@ 2016-09-07  9:43 ` Mandela, Venkateswara Rao
  2016-09-07 20:08   ` Bruce Ashfield
  2016-09-08  1:10   ` Jianchuan Wang
  2016-09-07 10:05 ` Jack Mitchell
  3 siblings, 2 replies; 10+ messages in thread
From: Mandela, Venkateswara Rao @ 2016-09-07  9:43 UTC (permalink / raw)
  To: jianchuan.wang, meta-virtualization

Hi,

I was unable to apply this patch on top the latest master. This patch appears to be based on older revisions where protobuf and protobuf-c recipes were still in recipes-containes/criu. Currently the recipes are in recipes-devtools/protobuf. Could you please rebase and resend the patches?

regards,
Venkat

On Wednesday 07 September 2016 01:39 PM, jianchuan.wang@windriver.com wrote:
> From: Jianchuan Wang <jianchuan.wang@windriver.com>
>
> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
> ---
>  .../criu/protobuf-native_2.6.1.bb                  | 21 -----
>  .../criu/protobuf-native_3.0.0.bb                  | 21 +++++
>  .../recipes-containers/criu/protobuf_2.6.1.bb      | 97 ----------------------
>  .../recipes-containers/criu/protobuf_3.0.0.bb      | 97 ++++++++++++++++++++++
>  4 files changed, 118 insertions(+), 118 deletions(-)
>  delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
>  create mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
>  delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
>  create mode 100644 meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
>
> diff --git a/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb b/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
> deleted file mode 100644
> index e88c9e7..0000000
> --- a/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
> +++ /dev/null
> @@ -1,21 +0,0 @@
> -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 = "http://code.google.com/p/protobuf/"
> -SECTION = "console/tools"
> -LICENSE = "BSD-3-Clause"
> -
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a24514"
> -
> -PR = "r0"
> -
> -SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
> -SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1"
> -SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.gz;downloadfilename=protobuf-2.6.1.tar.gz \
> -	"
> -
> -EXTRA_OECONF += " --with-protoc=echo --disable-shared"
> -
> -inherit native autotools
> -
> diff --git a/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb b/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
> new file mode 100644
> index 0000000..33467b3
> --- /dev/null
> +++ b/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
> @@ -0,0 +1,21 @@
> +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 = "http://code.google.com/p/protobuf/"
> +SECTION = "console/tools"
> +LICENSE = "BSD-3-Clause"
> +
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
> +
> +PR = "r0"
> +
> +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
> +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
> +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz \
> +	"
> +
> +EXTRA_OECONF += " --with-protoc=echo --disable-shared"
> +
> +inherit native autotools
> +
> diff --git a/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb b/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
> deleted file mode 100644
> index 1b7ab20..0000000
> --- a/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
> +++ /dev/null
> @@ -1,97 +0,0 @@
> -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 = "http://code.google.com/p/protobuf/"
> -SECTION = "console/tools"
> -LICENSE = "BSD-3-Clause"
> -
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a24514"
> -
> -PR = "r0"
> -EXCLUDE_FROM_WORLD = "1"
> -
> -SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
> -SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1"
> -SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.gz;downloadfilename=protobuf-2.6.1.tar.gz\
> -	file://protobuf-allow-running-python-scripts-from-anywhere.patch \
> -	file://Omit-google-apputils-dependency.patch \
> -	file://run-ptest"
> -
> -COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
> -
> -EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
> -inherit autotools setuptools ptest
> -
> -DEPENDS += "protobuf-native"
> -
> -PYTHON_SRC_DIR="python"
> -TEST_SRC_DIR="examples"
> -LANG_SUPPORT="cpp python"
> -
> -do_compile() {
> -	# Compile protoc compiler
> -	base_do_compile
> -}
> -
> -do_compile_ptest() {
> -	# Modify makefile to use the cross-compiler
> -	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
> -
> -	mkdir -p "${B}/${TEST_SRC_DIR}"
> -
> -	# Add the location of the cross-compiled header and library files
> -	# which haven't been installed yet.
> -	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
> -	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
> -	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
> -	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
> -	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
> -
> -	# Save the pkgcfg sysroot variable, and update it to nothing so
> -	# that it doesn't append the sysroot to the beginning of paths.
> -	# The header and library files aren't installed to the target
> -	# system yet.  So the absolute paths were specified above.
> -	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
> -	export PKG_CONFIG_SYSROOT_DIR=
> -
> -	# Compile the tests
> -	for lang in ${LANG_SUPPORT}; do
> -		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
> -	done
> -
> -	# Restore the pkgconfig sysroot variable
> -	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
> -}
> -
> -do_install() {
> -	local olddir=`pwd`
> -
> -	# Install protoc compiler
> -	autotools_do_install
> -
> -	# Install header files
> -	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
> -	cd "${S}/${PYTHON_SRC_DIR}"
> -	distutils_do_install
> -
> -	cd "$olddir"
> -}
> -
> -do_install_ptest() {
> -	local olddir=`pwd`
> -
> -	cd "${S}/${TEST_SRC_DIR}"
> -	install -d "${D}/${PTEST_PATH}"
> -	for i in add_person* list_people*; do
> -		if [ -x "$i" ]; then
> -			install "$i" "${D}/${PTEST_PATH}"
> -		fi
> -	done
> -	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
> -	
> -	cd "$olddir"
> -}
> -
> -BBCLASSEXTEND = "nativesdk"
> -
> diff --git a/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
> new file mode 100644
> index 0000000..e1deeac
> --- /dev/null
> +++ b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
> @@ -0,0 +1,97 @@
> +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 = "http://code.google.com/p/protobuf/"
> +SECTION = "console/tools"
> +LICENSE = "BSD-3-Clause"
> +
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
> +
> +PR = "r0"
> +EXCLUDE_FROM_WORLD = "1"
> +
> +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
> +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
> +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz\
> +	        file://protobuf-allow-running-python-scripts-from-anywhere.patch \
> +	        file://run-ptest \
> +            "
> +
> +COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
> +
> +EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
> +inherit autotools setuptools ptest
> +
> +DEPENDS += "protobuf-native"
> +
> +PYTHON_SRC_DIR="python"
> +TEST_SRC_DIR="examples"
> +LANG_SUPPORT="cpp python"
> +
> +do_compile() {
> +	# Compile protoc compiler
> +	base_do_compile
> +}
> +
> +do_compile_ptest() {
> +	# Modify makefile to use the cross-compiler
> +	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
> +
> +	mkdir -p "${B}/${TEST_SRC_DIR}"
> +
> +	# Add the location of the cross-compiled header and library files
> +	# which haven't been installed yet.
> +	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
> +	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
> +	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
> +	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
> +	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
> +
> +	# Save the pkgcfg sysroot variable, and update it to nothing so
> +	# that it doesn't append the sysroot to the beginning of paths.
> +	# The header and library files aren't installed to the target
> +	# system yet.  So the absolute paths were specified above.
> +	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
> +	export PKG_CONFIG_SYSROOT_DIR=
> +
> +	# Compile the tests
> +	for lang in ${LANG_SUPPORT}; do
> +		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
> +	done
> +
> +	# Restore the pkgconfig sysroot variable
> +	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
> +}
> +
> +do_install() {
> +	local olddir=`pwd`
> +
> +	# Install protoc compiler
> +	autotools_do_install
> +
> +	# Install header files
> +	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
> +	cd "${S}/${PYTHON_SRC_DIR}"
> +	distutils_do_install
> +
> +	cd "$olddir"
> +}
> +
> +do_install_ptest() {
> +	local olddir=`pwd`
> +
> +	cd "${S}/${TEST_SRC_DIR}"
> +	install -d "${D}/${PTEST_PATH}"
> +	for i in add_person* list_people*; do
> +		if [ -x "$i" ]; then
> +			install "$i" "${D}/${PTEST_PATH}"
> +		fi
> +	done
> +	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
> +	
> +	cd "$olddir"
> +}
> +
> +BBCLASSEXTEND = "nativesdk"
> +



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
  2016-09-07  8:09 [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 jianchuan.wang
                   ` (2 preceding siblings ...)
  2016-09-07  9:43 ` [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 Mandela, Venkateswara Rao
@ 2016-09-07 10:05 ` Jack Mitchell
  2016-09-07 11:59   ` Bruce Ashfield
  3 siblings, 1 reply; 10+ messages in thread
From: Jack Mitchell @ 2016-09-07 10:05 UTC (permalink / raw)
  To: meta-virtualization


On 07/09/16 09:09, jianchuan.wang@windriver.com wrote:
> From: Jianchuan Wang <jianchuan.wang@windriver.com>
>
> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
> ---
>  .../criu/protobuf-native_2.6.1.bb                  | 21 -----
>  .../criu/protobuf-native_3.0.0.bb                  | 21 +++++
>  .../recipes-containers/criu/protobuf_2.6.1.bb      | 97 ----------------------
>  .../recipes-containers/criu/protobuf_3.0.0.bb      | 97 ++++++++++++++++++++++
>  4 files changed, 118 insertions(+), 118 deletions(-)
>  delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
>  create mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
>  delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
>  create mode 100644 meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
>
 >
 > <snip>

Is there a reason not to use and update the version is meta-oe? Why the 
duplication?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
  2016-09-07 10:05 ` Jack Mitchell
@ 2016-09-07 11:59   ` Bruce Ashfield
  0 siblings, 0 replies; 10+ messages in thread
From: Bruce Ashfield @ 2016-09-07 11:59 UTC (permalink / raw)
  To: Jack Mitchell; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 1807 bytes --]

On Wed, Sep 7, 2016 at 6:05 AM, Jack Mitchell <ml@embed.me.uk> wrote:

>
> On 07/09/16 09:09, jianchuan.wang@windriver.com wrote:
>
>> From: Jianchuan Wang <jianchuan.wang@windriver.com>
>>
>> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
>> ---
>>  .../criu/protobuf-native_2.6.1.bb                  | 21 -----
>>  .../criu/protobuf-native_3.0.0.bb                  | 21 +++++
>>  .../recipes-containers/criu/protobuf_2.6.1.bb      | 97
>> ----------------------
>>  .../recipes-containers/criu/protobuf_3.0.0.bb      | 97
>> ++++++++++++++++++++++
>>  4 files changed, 118 insertions(+), 118 deletions(-)
>>  delete mode 100644 meta-virtualization/recipes-containers/criu/
>> protobuf-native_2.6.1.bb
>>  create mode 100644 meta-virtualization/recipes-containers/criu/
>> protobuf-native_3.0.0.bb
>>  delete mode 100644 meta-virtualization/recipes-containers/criu/
>> protobuf_2.6.1.bb
>>  create mode 100644 meta-virtualization/recipes-containers/criu/
>> protobuf_3.0.0.bb
>>
>> >
> > <snip>
>
> Is there a reason not to use and update the version is meta-oe? Why the
> duplication?


See the meta-oe mailing list, where I discussed this not that long ago.

Up until now, I haven't been able to have stability or a fast patch merge
process into
the meta-go* or oe-meta-go layers.

I do builds with them from time to time .. after a period of stability,
I'll drop support
in favour of them .. but until that time, we keep our copies.

Bruce


>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 3744 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
  2016-09-07  9:43 ` [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 Mandela, Venkateswara Rao
@ 2016-09-07 20:08   ` Bruce Ashfield
  2016-09-08  1:10   ` Jianchuan Wang
  1 sibling, 0 replies; 10+ messages in thread
From: Bruce Ashfield @ 2016-09-07 20:08 UTC (permalink / raw)
  To: Venkateswara Rao Mandela; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 12266 bytes --]

Yep, these are broken for master and need to be resent.

Cheers,

Bruce

On Wed, Sep 7, 2016 at 5:43 AM, Mandela, Venkateswara Rao <
venkat.mandela@ti.com> wrote:

> Hi,
>
> I was unable to apply this patch on top the latest master. This patch
> appears to be based on older revisions where protobuf and protobuf-c
> recipes were still in recipes-containes/criu. Currently the recipes are in
> recipes-devtools/protobuf. Could you please rebase and resend the patches?
>
> regards,
> Venkat
>
> On Wednesday 07 September 2016 01:39 PM, jianchuan.wang@windriver.com
> wrote:
> > From: Jianchuan Wang <jianchuan.wang@windriver.com>
> >
> > Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
> > ---
> >  .../criu/protobuf-native_2.6.1.bb                  | 21 -----
> >  .../criu/protobuf-native_3.0.0.bb                  | 21 +++++
> >  .../recipes-containers/criu/protobuf_2.6.1.bb      | 97
> ----------------------
> >  .../recipes-containers/criu/protobuf_3.0.0.bb      | 97
> ++++++++++++++++++++++
> >  4 files changed, 118 insertions(+), 118 deletions(-)
> >  delete mode 100644 meta-virtualization/recipes-containers/criu/
> protobuf-native_2.6.1.bb
> >  create mode 100644 meta-virtualization/recipes-containers/criu/
> protobuf-native_3.0.0.bb
> >  delete mode 100644 meta-virtualization/recipes-containers/criu/
> protobuf_2.6.1.bb
> >  create mode 100644 meta-virtualization/recipes-containers/criu/
> protobuf_3.0.0.bb
> >
> > diff --git a/meta-virtualization/recipes-containers/criu/protobuf-
> native_2.6.1.bb b/meta-virtualization/recipes-containers/criu/protobuf-
> native_2.6.1.bb
> > deleted file mode 100644
> > index e88c9e7..0000000
> > --- a/meta-virtualization/recipes-containers/criu/protobuf-
> native_2.6.1.bb
> > +++ /dev/null
> > @@ -1,21 +0,0 @@
> > -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 = "http://code.google.com/p/protobuf/"
> > -SECTION = "console/tools"
> > -LICENSE = "BSD-3-Clause"
> > -
> > -LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a245
> 14"
> > -
> > -PR = "r0"
> > -
> > -SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
> > -SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b59
> 84e08d94e72338277affa8594d8b6e5cd1"
> > -SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.
> gz;downloadfilename=protobuf-2.6.1.tar.gz \
> > -     "
> > -
> > -EXTRA_OECONF += " --with-protoc=echo --disable-shared"
> > -
> > -inherit native autotools
> > -
> > diff --git a/meta-virtualization/recipes-containers/criu/protobuf-
> native_3.0.0.bb b/meta-virtualization/recipes-containers/criu/protobuf-
> native_3.0.0.bb
> > new file mode 100644
> > index 0000000..33467b3
> > --- /dev/null
> > +++ b/meta-virtualization/recipes-containers/criu/protobuf-
> native_3.0.0.bb
> > @@ -0,0 +1,21 @@
> > +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 = "http://code.google.com/p/protobuf/"
> > +SECTION = "console/tools"
> > +LICENSE = "BSD-3-Clause"
> > +
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef5400
> 95"
> > +
> > +PR = "r0"
> > +
> > +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
> > +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082
> e8fc3bda50038ac3dff787650795734146"
> > +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.
> gz;downloadfilename=protobuf-3.0.0.tar.gz \
> > +     "
> > +
> > +EXTRA_OECONF += " --with-protoc=echo --disable-shared"
> > +
> > +inherit native autotools
> > +
> > diff --git a/meta-virtualization/recipes-containers/criu/protobuf_2.6.
> 1.bb b/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
> > deleted file mode 100644
> > index 1b7ab20..0000000
> > --- a/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
> > +++ /dev/null
> > @@ -1,97 +0,0 @@
> > -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 = "http://code.google.com/p/protobuf/"
> > -SECTION = "console/tools"
> > -LICENSE = "BSD-3-Clause"
> > -
> > -LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a245
> 14"
> > -
> > -PR = "r0"
> > -EXCLUDE_FROM_WORLD = "1"
> > -
> > -SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
> > -SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b59
> 84e08d94e72338277affa8594d8b6e5cd1"
> > -SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.
> gz;downloadfilename=protobuf-2.6.1.tar.gz\
> > -     file://protobuf-allow-running-python-scripts-from-anywhere.patch \
> > -     file://Omit-google-apputils-dependency.patch \
> > -     file://run-ptest"
> > -
> > -COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
> > -
> > -EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
> > -inherit autotools setuptools ptest
> > -
> > -DEPENDS += "protobuf-native"
> > -
> > -PYTHON_SRC_DIR="python"
> > -TEST_SRC_DIR="examples"
> > -LANG_SUPPORT="cpp python"
> > -
> > -do_compile() {
> > -     # Compile protoc compiler
> > -     base_do_compile
> > -}
> > -
> > -do_compile_ptest() {
> > -     # Modify makefile to use the cross-compiler
> > -     sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
> > -
> > -     mkdir -p "${B}/${TEST_SRC_DIR}"
> > -
> > -     # Add the location of the cross-compiled header and library files
> > -     # which haven't been installed yet.
> > -     cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
> > -     sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> > -     sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> > -     sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> > -     export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
> > -
> > -     # Save the pkgcfg sysroot variable, and update it to nothing so
> > -     # that it doesn't append the sysroot to the beginning of paths.
> > -     # The header and library files aren't installed to the target
> > -     # system yet.  So the absolute paths were specified above.
> > -     save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
> > -     export PKG_CONFIG_SYSROOT_DIR=
> > -
> > -     # Compile the tests
> > -     for lang in ${LANG_SUPPORT}; do
> > -             oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
> > -     done
> > -
> > -     # Restore the pkgconfig sysroot variable
> > -     export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
> > -}
> > -
> > -do_install() {
> > -     local olddir=`pwd`
> > -
> > -     # Install protoc compiler
> > -     autotools_do_install
> > -
> > -     # Install header files
> > -     export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
> > -     cd "${S}/${PYTHON_SRC_DIR}"
> > -     distutils_do_install
> > -
> > -     cd "$olddir"
> > -}
> > -
> > -do_install_ptest() {
> > -     local olddir=`pwd`
> > -
> > -     cd "${S}/${TEST_SRC_DIR}"
> > -     install -d "${D}/${PTEST_PATH}"
> > -     for i in add_person* list_people*; do
> > -             if [ -x "$i" ]; then
> > -                     install "$i" "${D}/${PTEST_PATH}"
> > -             fi
> > -     done
> > -     cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
> > -
> > -     cd "$olddir"
> > -}
> > -
> > -BBCLASSEXTEND = "nativesdk"
> > -
> > diff --git a/meta-virtualization/recipes-containers/criu/protobuf_3.0.
> 0.bb b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
> > new file mode 100644
> > index 0000000..e1deeac
> > --- /dev/null
> > +++ b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
> > @@ -0,0 +1,97 @@
> > +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 = "http://code.google.com/p/protobuf/"
> > +SECTION = "console/tools"
> > +LICENSE = "BSD-3-Clause"
> > +
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef5400
> 95"
> > +
> > +PR = "r0"
> > +EXCLUDE_FROM_WORLD = "1"
> > +
> > +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
> > +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082
> e8fc3bda50038ac3dff787650795734146"
> > +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.
> gz;downloadfilename=protobuf-3.0.0.tar.gz\
> > +             file://protobuf-allow-running-
> python-scripts-from-anywhere.patch \
> > +             file://run-ptest \
> > +            "
> > +
> > +COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
> > +
> > +EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
> > +inherit autotools setuptools ptest
> > +
> > +DEPENDS += "protobuf-native"
> > +
> > +PYTHON_SRC_DIR="python"
> > +TEST_SRC_DIR="examples"
> > +LANG_SUPPORT="cpp python"
> > +
> > +do_compile() {
> > +     # Compile protoc compiler
> > +     base_do_compile
> > +}
> > +
> > +do_compile_ptest() {
> > +     # Modify makefile to use the cross-compiler
> > +     sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
> > +
> > +     mkdir -p "${B}/${TEST_SRC_DIR}"
> > +
> > +     # Add the location of the cross-compiled header and library files
> > +     # which haven't been installed yet.
> > +     cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
> > +     sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> > +     sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> > +     sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> > +     export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
> > +
> > +     # Save the pkgcfg sysroot variable, and update it to nothing so
> > +     # that it doesn't append the sysroot to the beginning of paths.
> > +     # The header and library files aren't installed to the target
> > +     # system yet.  So the absolute paths were specified above.
> > +     save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
> > +     export PKG_CONFIG_SYSROOT_DIR=
> > +
> > +     # Compile the tests
> > +     for lang in ${LANG_SUPPORT}; do
> > +             oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
> > +     done
> > +
> > +     # Restore the pkgconfig sysroot variable
> > +     export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
> > +}
> > +
> > +do_install() {
> > +     local olddir=`pwd`
> > +
> > +     # Install protoc compiler
> > +     autotools_do_install
> > +
> > +     # Install header files
> > +     export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
> > +     cd "${S}/${PYTHON_SRC_DIR}"
> > +     distutils_do_install
> > +
> > +     cd "$olddir"
> > +}
> > +
> > +do_install_ptest() {
> > +     local olddir=`pwd`
> > +
> > +     cd "${S}/${TEST_SRC_DIR}"
> > +     install -d "${D}/${PTEST_PATH}"
> > +     for i in add_person* list_people*; do
> > +             if [ -x "$i" ]; then
> > +                     install "$i" "${D}/${PTEST_PATH}"
> > +             fi
> > +     done
> > +     cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
> > +
> > +     cd "$olddir"
> > +}
> > +
> > +BBCLASSEXTEND = "nativesdk"
> > +
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 18785 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
  2016-09-07  9:43 ` [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 Mandela, Venkateswara Rao
  2016-09-07 20:08   ` Bruce Ashfield
@ 2016-09-08  1:10   ` Jianchuan Wang
  1 sibling, 0 replies; 10+ messages in thread
From: Jianchuan Wang @ 2016-09-08  1:10 UTC (permalink / raw)
  To: venkat.mandela, meta-virtualization

OK !

Thanks,

Jianchuan


On 09/07/2016 05:43 PM, Mandela, Venkateswara Rao wrote:
> Hi,
>
> I was unable to apply this patch on top the latest master. This patch appears to be based on older revisions where protobuf and protobuf-c recipes were still in recipes-containes/criu. Currently the recipes are in recipes-devtools/protobuf. Could you please rebase and resend the patches?
>
> regards,
> Venkat
>
> On Wednesday 07 September 2016 01:39 PM, jianchuan.wang@windriver.com wrote:
>> From: Jianchuan Wang <jianchuan.wang@windriver.com>
>>
>> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
>> ---
>>   .../criu/protobuf-native_2.6.1.bb                  | 21 -----
>>   .../criu/protobuf-native_3.0.0.bb                  | 21 +++++
>>   .../recipes-containers/criu/protobuf_2.6.1.bb      | 97 ----------------------
>>   .../recipes-containers/criu/protobuf_3.0.0.bb      | 97 ++++++++++++++++++++++
>>   4 files changed, 118 insertions(+), 118 deletions(-)
>>   delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
>>   create mode 100644 meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
>>   delete mode 100644 meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
>>   create mode 100644 meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
>>
>> diff --git a/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb b/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
>> deleted file mode 100644
>> index e88c9e7..0000000
>> --- a/meta-virtualization/recipes-containers/criu/protobuf-native_2.6.1.bb
>> +++ /dev/null
>> @@ -1,21 +0,0 @@
>> -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 = "http://code.google.com/p/protobuf/"
>> -SECTION = "console/tools"
>> -LICENSE = "BSD-3-Clause"
>> -
>> -LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a24514"
>> -
>> -PR = "r0"
>> -
>> -SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
>> -SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1"
>> -SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.gz;downloadfilename=protobuf-2.6.1.tar.gz \
>> -	"
>> -
>> -EXTRA_OECONF += " --with-protoc=echo --disable-shared"
>> -
>> -inherit native autotools
>> -
>> diff --git a/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb b/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
>> new file mode 100644
>> index 0000000..33467b3
>> --- /dev/null
>> +++ b/meta-virtualization/recipes-containers/criu/protobuf-native_3.0.0.bb
>> @@ -0,0 +1,21 @@
>> +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 = "http://code.google.com/p/protobuf/"
>> +SECTION = "console/tools"
>> +LICENSE = "BSD-3-Clause"
>> +
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
>> +
>> +PR = "r0"
>> +
>> +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
>> +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
>> +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz \
>> +	"
>> +
>> +EXTRA_OECONF += " --with-protoc=echo --disable-shared"
>> +
>> +inherit native autotools
>> +
>> diff --git a/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb b/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
>> deleted file mode 100644
>> index 1b7ab20..0000000
>> --- a/meta-virtualization/recipes-containers/criu/protobuf_2.6.1.bb
>> +++ /dev/null
>> @@ -1,97 +0,0 @@
>> -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 = "http://code.google.com/p/protobuf/"
>> -SECTION = "console/tools"
>> -LICENSE = "BSD-3-Clause"
>> -
>> -LIC_FILES_CHKSUM = "file://LICENSE;md5=af6809583bfde9a31595a58bb4a24514"
>> -
>> -PR = "r0"
>> -EXCLUDE_FROM_WORLD = "1"
>> -
>> -SRC_URI[md5sum] = "af05b2cca289f7b86eef2734a0cdc8b9"
>> -SRC_URI[sha256sum] = "2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1"
>> -SRC_URI = "https://github.com/google/protobuf/archive/v2.6.1.tar.gz;downloadfilename=protobuf-2.6.1.tar.gz\
>> -	file://protobuf-allow-running-python-scripts-from-anywhere.patch \
>> -	file://Omit-google-apputils-dependency.patch \
>> -	file://run-ptest"
>> -
>> -COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
>> -
>> -EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
>> -inherit autotools setuptools ptest
>> -
>> -DEPENDS += "protobuf-native"
>> -
>> -PYTHON_SRC_DIR="python"
>> -TEST_SRC_DIR="examples"
>> -LANG_SUPPORT="cpp python"
>> -
>> -do_compile() {
>> -	# Compile protoc compiler
>> -	base_do_compile
>> -}
>> -
>> -do_compile_ptest() {
>> -	# Modify makefile to use the cross-compiler
>> -	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
>> -
>> -	mkdir -p "${B}/${TEST_SRC_DIR}"
>> -
>> -	# Add the location of the cross-compiled header and library files
>> -	# which haven't been installed yet.
>> -	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> -	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> -	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> -	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> -	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
>> -
>> -	# Save the pkgcfg sysroot variable, and update it to nothing so
>> -	# that it doesn't append the sysroot to the beginning of paths.
>> -	# The header and library files aren't installed to the target
>> -	# system yet.  So the absolute paths were specified above.
>> -	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
>> -	export PKG_CONFIG_SYSROOT_DIR=
>> -
>> -	# Compile the tests
>> -	for lang in ${LANG_SUPPORT}; do
>> -		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
>> -	done
>> -
>> -	# Restore the pkgconfig sysroot variable
>> -	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
>> -}
>> -
>> -do_install() {
>> -	local olddir=`pwd`
>> -
>> -	# Install protoc compiler
>> -	autotools_do_install
>> -
>> -	# Install header files
>> -	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
>> -	cd "${S}/${PYTHON_SRC_DIR}"
>> -	distutils_do_install
>> -
>> -	cd "$olddir"
>> -}
>> -
>> -do_install_ptest() {
>> -	local olddir=`pwd`
>> -
>> -	cd "${S}/${TEST_SRC_DIR}"
>> -	install -d "${D}/${PTEST_PATH}"
>> -	for i in add_person* list_people*; do
>> -		if [ -x "$i" ]; then
>> -			install "$i" "${D}/${PTEST_PATH}"
>> -		fi
>> -	done
>> -	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
>> -	
>> -	cd "$olddir"
>> -}
>> -
>> -BBCLASSEXTEND = "nativesdk"
>> -
>> diff --git a/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
>> new file mode 100644
>> index 0000000..e1deeac
>> --- /dev/null
>> +++ b/meta-virtualization/recipes-containers/criu/protobuf_3.0.0.bb
>> @@ -0,0 +1,97 @@
>> +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 = "http://code.google.com/p/protobuf/"
>> +SECTION = "console/tools"
>> +LICENSE = "BSD-3-Clause"
>> +
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
>> +
>> +PR = "r0"
>> +EXCLUDE_FROM_WORLD = "1"
>> +
>> +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
>> +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
>> +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz\
>> +	        file://protobuf-allow-running-python-scripts-from-anywhere.patch \
>> +	        file://run-ptest \
>> +            "
>> +
>> +COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
>> +
>> +EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
>> +inherit autotools setuptools ptest
>> +
>> +DEPENDS += "protobuf-native"
>> +
>> +PYTHON_SRC_DIR="python"
>> +TEST_SRC_DIR="examples"
>> +LANG_SUPPORT="cpp python"
>> +
>> +do_compile() {
>> +	# Compile protoc compiler
>> +	base_do_compile
>> +}
>> +
>> +do_compile_ptest() {
>> +	# Modify makefile to use the cross-compiler
>> +	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
>> +
>> +	mkdir -p "${B}/${TEST_SRC_DIR}"
>> +
>> +	# Add the location of the cross-compiled header and library files
>> +	# which haven't been installed yet.
>> +	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> +	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> +	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> +	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
>> +	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
>> +
>> +	# Save the pkgcfg sysroot variable, and update it to nothing so
>> +	# that it doesn't append the sysroot to the beginning of paths.
>> +	# The header and library files aren't installed to the target
>> +	# system yet.  So the absolute paths were specified above.
>> +	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
>> +	export PKG_CONFIG_SYSROOT_DIR=
>> +
>> +	# Compile the tests
>> +	for lang in ${LANG_SUPPORT}; do
>> +		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
>> +	done
>> +
>> +	# Restore the pkgconfig sysroot variable
>> +	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
>> +}
>> +
>> +do_install() {
>> +	local olddir=`pwd`
>> +
>> +	# Install protoc compiler
>> +	autotools_do_install
>> +
>> +	# Install header files
>> +	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
>> +	cd "${S}/${PYTHON_SRC_DIR}"
>> +	distutils_do_install
>> +
>> +	cd "$olddir"
>> +}
>> +
>> +do_install_ptest() {
>> +	local olddir=`pwd`
>> +
>> +	cd "${S}/${TEST_SRC_DIR}"
>> +	install -d "${D}/${PTEST_PATH}"
>> +	for i in add_person* list_people*; do
>> +		if [ -x "$i" ]; then
>> +			install "$i" "${D}/${PTEST_PATH}"
>> +		fi
>> +	done
>> +	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
>> +	
>> +	cd "$olddir"
>> +}
>> +
>> +BBCLASSEXTEND = "nativesdk"
>> +
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
  2016-09-08  5:35 jianchuan.wang
@ 2016-09-12 14:03 ` Bruce Ashfield
  0 siblings, 0 replies; 10+ messages in thread
From: Bruce Ashfield @ 2016-09-12 14:03 UTC (permalink / raw)
  To: jianchuan.wang; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 10927 bytes --]

On Thu, Sep 8, 2016 at 1:35 AM, <jianchuan.wang@windriver.com> wrote:

> From: Jianchuan Wang <jianchuan.wang@windriver.com>
>
>
This series is merged.

Bruce


> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
> ---
>  recipes-devtools/protobuf/protobuf-native_2.5.0.bb | 20 -----
>  recipes-devtools/protobuf/protobuf-native_3.0.0.bb | 21 +++++
>  recipes-devtools/protobuf/protobuf_2.5.0.bb        | 95
> ---------------------
>  recipes-devtools/protobuf/protobuf_3.0.0.bb        | 97
> ++++++++++++++++++++++
>  4 files changed, 118 insertions(+), 115 deletions(-)
>  delete mode 100644 recipes-devtools/protobuf/protobuf-native_2.5.0.bb
>  create mode 100644 recipes-devtools/protobuf/protobuf-native_3.0.0.bb
>  delete mode 100644 recipes-devtools/protobuf/protobuf_2.5.0.bb
>  create mode 100644 recipes-devtools/protobuf/protobuf_3.0.0.bb
>
> diff --git a/recipes-devtools/protobuf/protobuf-native_2.5.0.bb
> b/recipes-devtools/protobuf/protobuf-native_2.5.0.bb
> deleted file mode 100644
> index 47acdae..0000000
> --- a/recipes-devtools/protobuf/protobuf-native_2.5.0.bb
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -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 = "http://code.google.com/p/protobuf/"
> -SECTION = "console/tools"
> -LICENSE = "BSD-3-Clause"
> -
> -LIC_FILES_CHKSUM = "file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a245
> 14"
> -
> -PR = "r1"
> -
> -SRC_URI[md5sum] = "9c21577a03adc1879aba5b52d06e25cf"
> -SRC_URI[sha256sum] = "c2665a7aa2ac1a206e61b28e014486
> e3de59009ea2be2bde9182e0847f38b62f"
> -SRC_URI = "https://github.com/google/protobuf/archive/v${PV}.tar.gz \
> -       "
> -
> -EXTRA_OECONF += " --with-protoc=echo --disable-shared"
> -
> -inherit native autotools
> diff --git a/recipes-devtools/protobuf/protobuf-native_3.0.0.bb
> b/recipes-devtools/protobuf/protobuf-native_3.0.0.bb
> new file mode 100644
> index 0000000..33467b3
> --- /dev/null
> +++ b/recipes-devtools/protobuf/protobuf-native_3.0.0.bb
> @@ -0,0 +1,21 @@
> +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 = "http://code.google.com/p/protobuf/"
> +SECTION = "console/tools"
> +LICENSE = "BSD-3-Clause"
> +
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
> +
> +PR = "r0"
> +
> +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
> +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082
> e8fc3bda50038ac3dff787650795734146"
> +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.
> gz;downloadfilename=protobuf-3.0.0.tar.gz \
> +       "
> +
> +EXTRA_OECONF += " --with-protoc=echo --disable-shared"
> +
> +inherit native autotools
> +
> diff --git a/recipes-devtools/protobuf/protobuf_2.5.0.bb
> b/recipes-devtools/protobuf/protobuf_2.5.0.bb
> deleted file mode 100644
> index b503a35..0000000
> --- a/recipes-devtools/protobuf/protobuf_2.5.0.bb
> +++ /dev/null
> @@ -1,95 +0,0 @@
> -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 = "http://code.google.com/p/protobuf/"
> -SECTION = "console/tools"
> -LICENSE = "BSD-3-Clause"
> -
> -LIC_FILES_CHKSUM = "file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a245
> 14"
> -
> -PR = "r1"
> -EXCLUDE_FROM_WORLD = "1"
> -
> -SRC_URI[md5sum] = "9c21577a03adc1879aba5b52d06e25cf"
> -SRC_URI[sha256sum] = "c2665a7aa2ac1a206e61b28e014486
> e3de59009ea2be2bde9182e0847f38b62f"
> -SRC_URI = "https://github.com/google/protobuf/archive/v${PV}.tar.gz \
> -       file://protobuf-allow-running-python-scripts-from-anywhere.patch \
> -       file://run-ptest"
> -
> -EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
> -inherit autotools setuptools ptest
> -
> -DEPENDS += "protobuf-native"
> -RDEPENDS_${PN}-ptest = "bash python"
> -
> -PYTHON_SRC_DIR="python"
> -TEST_SRC_DIR="examples"
> -LANG_SUPPORT="python"
> -
> -do_compile() {
> -       # Compile protoc compiler
> -       base_do_compile
> -}
> -
> -do_compile_ptest() {
> -       # Modify makefile to use the cross-compiler
> -       sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
> -
> -       mkdir -p "${B}/${TEST_SRC_DIR}"
> -
> -       # Add the location of the cross-compiled header and library files
> -       # which haven't been installed yet.
> -       cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
> -       sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> -       sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> -       sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> -       export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
> -
> -       # Save the pkgcfg sysroot variable, and update it to nothing so
> -       # that it doesn't append the sysroot to the beginning of paths.
> -       # The header and library files aren't installed to the target
> -       # system yet.  So the absolute paths were specified above.
> -       save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
> -       export PKG_CONFIG_SYSROOT_DIR=
> -
> -       # Compile the tests
> -       for lang in ${LANG_SUPPORT}; do
> -               oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
> -       done
> -
> -       # Restore the pkgconfig sysroot variable
> -       export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
> -}
> -
> -do_install() {
> -       local olddir=`pwd`
> -
> -       # Install protoc compiler
> -       autotools_do_install
> -
> -       # Install header files
> -       export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
> -       cd "${S}/${PYTHON_SRC_DIR}"
> -       distutils_do_install
> -
> -       cd "$olddir"
> -}
> -
> -do_install_ptest() {
> -       local olddir=`pwd`
> -
> -       cd "${S}/${TEST_SRC_DIR}"
> -       install -d "${D}/${PTEST_PATH}"
> -       for i in add_person* list_people*; do
> -               if [ -x "$i" ]; then
> -                       install "$i" "${D}/${PTEST_PATH}"
> -               fi
> -       done
> -       cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
> -
> -       cd "$olddir"
> -}
> -
> -BBCLASSEXTEND = "nativesdk"
> -
> diff --git a/recipes-devtools/protobuf/protobuf_3.0.0.bb
> b/recipes-devtools/protobuf/protobuf_3.0.0.bb
> new file mode 100644
> index 0000000..e1deeac
> --- /dev/null
> +++ b/recipes-devtools/protobuf/protobuf_3.0.0.bb
> @@ -0,0 +1,97 @@
> +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 = "http://code.google.com/p/protobuf/"
> +SECTION = "console/tools"
> +LICENSE = "BSD-3-Clause"
> +
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
> +
> +PR = "r0"
> +EXCLUDE_FROM_WORLD = "1"
> +
> +SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
> +SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082
> e8fc3bda50038ac3dff787650795734146"
> +SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.
> gz;downloadfilename=protobuf-3.0.0.tar.gz\
> +               file://protobuf-allow-running-
> python-scripts-from-anywhere.patch \
> +               file://run-ptest \
> +            "
> +
> +COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
> +
> +EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
> +inherit autotools setuptools ptest
> +
> +DEPENDS += "protobuf-native"
> +
> +PYTHON_SRC_DIR="python"
> +TEST_SRC_DIR="examples"
> +LANG_SUPPORT="cpp python"
> +
> +do_compile() {
> +       # Compile protoc compiler
> +       base_do_compile
> +}
> +
> +do_compile_ptest() {
> +       # Modify makefile to use the cross-compiler
> +       sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
> +
> +       mkdir -p "${B}/${TEST_SRC_DIR}"
> +
> +       # Add the location of the cross-compiled header and library files
> +       # which haven't been installed yet.
> +       cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
> +       sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> +       sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> +       sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/
> protobuf.pc"
> +       export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
> +
> +       # Save the pkgcfg sysroot variable, and update it to nothing so
> +       # that it doesn't append the sysroot to the beginning of paths.
> +       # The header and library files aren't installed to the target
> +       # system yet.  So the absolute paths were specified above.
> +       save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
> +       export PKG_CONFIG_SYSROOT_DIR=
> +
> +       # Compile the tests
> +       for lang in ${LANG_SUPPORT}; do
> +               oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
> +       done
> +
> +       # Restore the pkgconfig sysroot variable
> +       export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
> +}
> +
> +do_install() {
> +       local olddir=`pwd`
> +
> +       # Install protoc compiler
> +       autotools_do_install
> +
> +       # Install header files
> +       export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
> +       cd "${S}/${PYTHON_SRC_DIR}"
> +       distutils_do_install
> +
> +       cd "$olddir"
> +}
> +
> +do_install_ptest() {
> +       local olddir=`pwd`
> +
> +       cd "${S}/${TEST_SRC_DIR}"
> +       install -d "${D}/${PTEST_PATH}"
> +       for i in add_person* list_people*; do
> +               if [ -x "$i" ]; then
> +                       install "$i" "${D}/${PTEST_PATH}"
> +               fi
> +       done
> +       cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
> +
> +       cd "$olddir"
> +}
> +
> +BBCLASSEXTEND = "nativesdk"
> +
> --
> 2.8.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 16883 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1
@ 2016-09-08  5:35 jianchuan.wang
  2016-09-12 14:03 ` Bruce Ashfield
  0 siblings, 1 reply; 10+ messages in thread
From: jianchuan.wang @ 2016-09-08  5:35 UTC (permalink / raw)
  To: meta-virtualization

From: Jianchuan Wang <jianchuan.wang@windriver.com>

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
---
 recipes-devtools/protobuf/protobuf-native_2.5.0.bb | 20 -----
 recipes-devtools/protobuf/protobuf-native_3.0.0.bb | 21 +++++
 recipes-devtools/protobuf/protobuf_2.5.0.bb        | 95 ---------------------
 recipes-devtools/protobuf/protobuf_3.0.0.bb        | 97 ++++++++++++++++++++++
 4 files changed, 118 insertions(+), 115 deletions(-)
 delete mode 100644 recipes-devtools/protobuf/protobuf-native_2.5.0.bb
 create mode 100644 recipes-devtools/protobuf/protobuf-native_3.0.0.bb
 delete mode 100644 recipes-devtools/protobuf/protobuf_2.5.0.bb
 create mode 100644 recipes-devtools/protobuf/protobuf_3.0.0.bb

diff --git a/recipes-devtools/protobuf/protobuf-native_2.5.0.bb b/recipes-devtools/protobuf/protobuf-native_2.5.0.bb
deleted file mode 100644
index 47acdae..0000000
--- a/recipes-devtools/protobuf/protobuf-native_2.5.0.bb
+++ /dev/null
@@ -1,20 +0,0 @@
-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 = "http://code.google.com/p/protobuf/"
-SECTION = "console/tools"
-LICENSE = "BSD-3-Clause"
-
-LIC_FILES_CHKSUM = "file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"
-
-PR = "r1"
-
-SRC_URI[md5sum] = "9c21577a03adc1879aba5b52d06e25cf"
-SRC_URI[sha256sum] = "c2665a7aa2ac1a206e61b28e014486e3de59009ea2be2bde9182e0847f38b62f"
-SRC_URI = "https://github.com/google/protobuf/archive/v${PV}.tar.gz \
-	"
-
-EXTRA_OECONF += " --with-protoc=echo --disable-shared"
-
-inherit native autotools
diff --git a/recipes-devtools/protobuf/protobuf-native_3.0.0.bb b/recipes-devtools/protobuf/protobuf-native_3.0.0.bb
new file mode 100644
index 0000000..33467b3
--- /dev/null
+++ b/recipes-devtools/protobuf/protobuf-native_3.0.0.bb
@@ -0,0 +1,21 @@
+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 = "http://code.google.com/p/protobuf/"
+SECTION = "console/tools"
+LICENSE = "BSD-3-Clause"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
+
+PR = "r0"
+
+SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
+SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
+SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz \
+	"
+
+EXTRA_OECONF += " --with-protoc=echo --disable-shared"
+
+inherit native autotools
+
diff --git a/recipes-devtools/protobuf/protobuf_2.5.0.bb b/recipes-devtools/protobuf/protobuf_2.5.0.bb
deleted file mode 100644
index b503a35..0000000
--- a/recipes-devtools/protobuf/protobuf_2.5.0.bb
+++ /dev/null
@@ -1,95 +0,0 @@
-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 = "http://code.google.com/p/protobuf/"
-SECTION = "console/tools"
-LICENSE = "BSD-3-Clause"
-
-LIC_FILES_CHKSUM = "file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"
-
-PR = "r1"
-EXCLUDE_FROM_WORLD = "1"
-
-SRC_URI[md5sum] = "9c21577a03adc1879aba5b52d06e25cf"
-SRC_URI[sha256sum] = "c2665a7aa2ac1a206e61b28e014486e3de59009ea2be2bde9182e0847f38b62f"
-SRC_URI = "https://github.com/google/protobuf/archive/v${PV}.tar.gz \
-	file://protobuf-allow-running-python-scripts-from-anywhere.patch \
-	file://run-ptest"
-
-EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
-inherit autotools setuptools ptest
-
-DEPENDS += "protobuf-native"
-RDEPENDS_${PN}-ptest = "bash python"
-
-PYTHON_SRC_DIR="python"
-TEST_SRC_DIR="examples"
-LANG_SUPPORT="python"
-
-do_compile() {
-	# Compile protoc compiler
-	base_do_compile
-}
-
-do_compile_ptest() {
-	# Modify makefile to use the cross-compiler
-	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
-
-	mkdir -p "${B}/${TEST_SRC_DIR}"
-
-	# Add the location of the cross-compiled header and library files
-	# which haven't been installed yet.
-	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
-
-	# Save the pkgcfg sysroot variable, and update it to nothing so
-	# that it doesn't append the sysroot to the beginning of paths.
-	# The header and library files aren't installed to the target
-	# system yet.  So the absolute paths were specified above.
-	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
-	export PKG_CONFIG_SYSROOT_DIR=
-
-	# Compile the tests
-	for lang in ${LANG_SUPPORT}; do
-		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
-	done
-
-	# Restore the pkgconfig sysroot variable
-	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
-}
-
-do_install() {
-	local olddir=`pwd`
-
-	# Install protoc compiler
-	autotools_do_install
-
-	# Install header files
-	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
-	cd "${S}/${PYTHON_SRC_DIR}"
-	distutils_do_install
-
-	cd "$olddir"
-}
-
-do_install_ptest() {
-	local olddir=`pwd`
-
-	cd "${S}/${TEST_SRC_DIR}"
-	install -d "${D}/${PTEST_PATH}"
-	for i in add_person* list_people*; do
-		if [ -x "$i" ]; then
-			install "$i" "${D}/${PTEST_PATH}"
-		fi
-	done
-	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
-
-	cd "$olddir"
-}
-
-BBCLASSEXTEND = "nativesdk"
-
diff --git a/recipes-devtools/protobuf/protobuf_3.0.0.bb b/recipes-devtools/protobuf/protobuf_3.0.0.bb
new file mode 100644
index 0000000..e1deeac
--- /dev/null
+++ b/recipes-devtools/protobuf/protobuf_3.0.0.bb
@@ -0,0 +1,97 @@
+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 = "http://code.google.com/p/protobuf/"
+SECTION = "console/tools"
+LICENSE = "BSD-3-Clause"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
+
+PR = "r0"
+EXCLUDE_FROM_WORLD = "1"
+
+SRC_URI[md5sum] = "d4f6ca65aadc6310b3872ee421e79fa6"
+SRC_URI[sha256sum] = "f5b3563f118f1d3d6e001705fa7082e8fc3bda50038ac3dff787650795734146"
+SRC_URI = "https://github.com/google/protobuf/archive/v3.0.0.tar.gz;downloadfilename=protobuf-3.0.0.tar.gz\
+	        file://protobuf-allow-running-python-scripts-from-anywhere.patch \
+	        file://run-ptest \
+            "
+
+COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
+
+EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
+inherit autotools setuptools ptest
+
+DEPENDS += "protobuf-native"
+
+PYTHON_SRC_DIR="python"
+TEST_SRC_DIR="examples"
+LANG_SUPPORT="cpp python"
+
+do_compile() {
+	# Compile protoc compiler
+	base_do_compile
+}
+
+do_compile_ptest() {
+	# Modify makefile to use the cross-compiler
+	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
+
+	mkdir -p "${B}/${TEST_SRC_DIR}"
+
+	# Add the location of the cross-compiled header and library files
+	# which haven't been installed yet.
+	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
+
+	# Save the pkgcfg sysroot variable, and update it to nothing so
+	# that it doesn't append the sysroot to the beginning of paths.
+	# The header and library files aren't installed to the target
+	# system yet.  So the absolute paths were specified above.
+	save_pkg_config_sysroot_dir=$PKG_CONFIG_SYSROOT_DIR
+	export PKG_CONFIG_SYSROOT_DIR=
+
+	# Compile the tests
+	for lang in ${LANG_SUPPORT}; do
+		oe_runmake -C "${S}/${TEST_SRC_DIR}" ${lang}
+	done
+
+	# Restore the pkgconfig sysroot variable
+	export PKG_CONFIG_SYSROOT_DIR=$save_pkg_config_sysroot_dir
+}
+
+do_install() {
+	local olddir=`pwd`
+
+	# Install protoc compiler
+	autotools_do_install
+
+	# Install header files
+	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
+	cd "${S}/${PYTHON_SRC_DIR}"
+	distutils_do_install
+
+	cd "$olddir"
+}
+
+do_install_ptest() {
+	local olddir=`pwd`
+
+	cd "${S}/${TEST_SRC_DIR}"
+	install -d "${D}/${PTEST_PATH}"
+	for i in add_person* list_people*; do
+		if [ -x "$i" ]; then
+			install "$i" "${D}/${PTEST_PATH}"
+		fi
+	done
+	cp "${S}/${TEST_SRC_DIR}/addressbook_pb2.py" "${D}/${PTEST_PATH}"
+	
+	cd "$olddir"
+}
+
+BBCLASSEXTEND = "nativesdk"
+
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-09-12 14:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07  8:09 [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 jianchuan.wang
2016-09-07  8:09 ` [PATCH 2/3] protobuf-c: uprev to 1.2.1 from 1.1.1 jianchuan.wang
2016-09-07  8:09 ` [PATCH 3/3] criu: uprev to 2.5 jianchuan.wang
2016-09-07  9:43 ` [PATCH 1/3] protobuf: uprev 3.0.0 from 2.6.1 Mandela, Venkateswara Rao
2016-09-07 20:08   ` Bruce Ashfield
2016-09-08  1:10   ` Jianchuan Wang
2016-09-07 10:05 ` Jack Mitchell
2016-09-07 11:59   ` Bruce Ashfield
2016-09-08  5:35 jianchuan.wang
2016-09-12 14:03 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.