Skip to contentSkip to conversation

protobuf: update google protocol buffers to 2.5.0

PATCH In review Keith Holman 2 participants 8 messages Aug 20, 2014 – Aug 22, 2014

lore
Share & tools
lore
#1 lore raw

PATCH 2/5 protobuf: add python support

In reply to Keith Holman

The compiler generated by Google Protocol Buffers currently includes support for Python bindings. However, currently the python files required to use the generated files are not included on the system. This fix installs the python header files using python setup-tools after the compiler is built.

---
 recipes-containers/criu/protobuf_2.5.0.bb | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
recipes-containers/criu/protobuf_2.5.0.bb +15 -1
index 4a90b2c..a9a26d8 100644
@@ -13,8 +13,22 @@ PR = "r0"
 SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8"
 SRC_URI[sha256sum] = "c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e"
 SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
+PYTHON_SRC_DIR="python"
 
 EXTRA_OECONF += " --with-protoc=echo"
-inherit autotools
+inherit autotools setuptools
+
+do_compile() {
+    # Compile protoc compiler
+    base_do_compile
+}
+
+do_install() {
+    # Install protoc compiler
+    autotools_do_install
+    # Install header files
+    cd "${PYTHON_SRC_DIR}"
+    distutils_do_install
+}
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.9.3
#0 lore raw

PATCH 1/5 protobuf: update google protocol buffers to 2.5.0

Upgrade Google Protocol Buffers to version 2.5.0. The previous version 2.4.1 is getting quite old (released April 2011). The newer version provides bug fixes and more functionality. This version adds some speed optimization and the ability to allow multiple enum symbols to have the same value.

---
 recipes-containers/criu/protobuf_2.4.1.bb | 18 ------------------
 recipes-containers/criu/protobuf_2.5.0.bb | 20 ++++++++++++++++++++
 2 files changed, 20 insertions(+), 18 deletions(-)
 delete mode 100644 recipes-containers/criu/protobuf_2.4.1.bb
 create mode 100644 recipes-containers/criu/protobuf_2.5.0.bb
recipes-containers/criu/protobuf_2.4.1.bb deleted +0 -18
deleted file mode 100644
index d8f1b53..0000000
@@ -1,18 +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 = "r0"
-
-SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"
-SRC_URI[sha256sum] = "eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"
-SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
-
-EXTRA_OECONF += " --with-protoc=echo"
-inherit autotools
-
-BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
recipes-containers/criu/protobuf_2.5.0.bb new file +20 -0
new file mode 100644
index 0000000..4a90b2c
@@ -0,0 +1,20 @@
+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 = "r0"
+
+SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8"
+SRC_URI[sha256sum] = "c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e"
+SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
+
+EXTRA_OECONF += " --with-protoc=echo"
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.9.3
#2 lore raw

PATCH 3/5 protobuf: replace spaces with tabs in recipe

The recipe uses 4 spaces instead of tabs when indenting. The recipe style guidelines indicate that tabs should be used instead. This simple fix replaces the spaces with tabs where appropriate in the recipe file.

---
 recipes-containers/criu/protobuf_2.5.0.bb | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
recipes-containers/criu/protobuf_2.5.0.bb +7 -7
index a9a26d8..5cf6cc9 100644
@@ -19,16 +19,16 @@ EXTRA_OECONF += " --with-protoc=echo"
 inherit autotools setuptools
 
 do_compile() {
-    # Compile protoc compiler
-    base_do_compile
+	# Compile protoc compiler
+	base_do_compile
 }
 
 do_install() {
-    # Install protoc compiler
-    autotools_do_install
-    # Install header files
-    cd "${PYTHON_SRC_DIR}"
-    distutils_do_install
+	# Install protoc compiler
+	autotools_do_install
+	# Install header files
+	cd "${PYTHON_SRC_DIR}"
+	distutils_do_install
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.9.3
#4 lore raw

PATCH 5/5 protobuf: add native package to solve self-dependency

In reply to Keith Holman

The installation of Google Protocol Buffers python header files requires the ability to run the "protoc" compiler on the host to generate the Python header files. This fix adds a native package that builds Google Protocol Buffers for the host machine to provide the compiler that is used to cross-compile the package for the target machine.

---
 recipes-containers/criu/protobuf-native_2.5.0.bb | 21 +++++++++++++++++++++
 recipes-containers/criu/protobuf_2.5.0.bb        |  8 +++++---
 2 files changed, 26 insertions(+), 3 deletions(-)
 create mode 100644 recipes-containers/criu/protobuf-native_2.5.0.bb
recipes-containers/criu/protobuf-native_2.5.0.bb new file +21 -0
new file mode 100644
index 0000000..b3f00dd
@@ -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://COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"
+
+PR = "r0"
+
+SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8"
+SRC_URI[sha256sum] = "c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e"
+SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz \
+	"
+
+EXTRA_OECONF += " --with-protoc=echo --disable-shared"
+
+inherit native autotools
+
recipes-containers/criu/protobuf_2.5.0.bb +5 -3
index 851fbf0..5c7454b 100644
@@ -16,10 +16,10 @@ SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz \
 	file://protobuf-allow-running-python-scripts-from-anywhere.patch \
 	file://run-ptest"
 
-EXTRA_OECONF += " --with-protoc=echo"
+EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
 inherit autotools setuptools ptest
 
-RDEPENDS_${PN}-ptest += "make"
+DEPENDS += "protobuf-native"
 
 PYTHON_SRC_DIR="python"
 TEST_SRC_DIR="examples"
@@ -64,6 +64,7 @@ do_install() {
 	autotools_do_install
 
 	# Install header files
+	export PROTOC="${STAGING_BINDIR_NATIVE}/protoc"
 	cd "${S}/${PYTHON_SRC_DIR}"
 	distutils_do_install
 
@@ -85,4 +86,5 @@ do_install_ptest() {
 	cd "$olddir"
 }
 
-BBCLASSEXTEND = "native nativesdk"
+BBCLASSEXTEND = "nativesdk"
+
Signature · 1 line
1.9.3
#3 lore raw

PATCH 4/5 protobuf: add examples when test feature enabled

In reply to Keith Holman

Google Protocol Buffers includes some basic example applications to show its functionality. This fix installs these examples to the target system when the "test" feature is enabled in the configuration.

---
 ...llow-running-python-scripts-from-anywhere.patch | 38 +++++++++++++
 recipes-containers/criu/files/run-ptest            | 32 +++++++++++
 recipes-containers/criu/protobuf_2.5.0.bb          | 62 ++++++++++++++++++++--
 3 files changed, 128 insertions(+), 4 deletions(-)
 create mode 100644 recipes-containers/criu/files/protobuf-allow-running-python-scripts-from-anywhere.patch
 create mode 100755 recipes-containers/criu/files/run-ptest
recipes-containers/criu/files/protobuf-allow-running-python-scripts-from-anywhere.patch new file +38 -0
new file mode 100644
index 0000000..13d4e84
@@ -0,0 +1,38 @@
+From 46e331263eb92e47510e88478b255f226d30245c Mon Sep 17 00:00:00 2001
+From: Keith Holman <[email protected]>
+Date: Mon, 18 Aug 2014 15:19:35 -0400
+Subject: [PATCH] protobuf: allow running python scripts from anywhere
+
+The Makefile to generate the examples with Google Protocol Buffers
+generates some scripts for python.  However, these generated scripts
+only work if they are ran in the same directory as the source files.
+This fix generates scripts to execute from anywhere on the system.
+
+Signed-off-by: Keith Holman <[email protected]>
+---
+ examples/Makefile | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/examples/Makefile b/examples/Makefile
+index 8dc9083..a993d63 100644
+--- a/examples/Makefile
++++ b/examples/Makefile
+@@ -48,11 +48,13 @@ list_people_java: javac_middleman
+ add_person_python: add_person.py protoc_middleman
+ 	@echo "Writing shortcut script add_person_python..."
+ 	@echo '#! /bin/sh' > add_person_python
+-	@echo './add_person.py "$$@"' >> add_person_python
++	@echo 'SCRIPT_DIR=$$(dirname $$0)' >> add_person_python
++	@echo '$$SCRIPT_DIR/add_person.py "$$@"' >> add_person_python
+ 	@chmod +x add_person_python
+ 
+ list_people_python: list_people.py protoc_middleman
+ 	@echo "Writing shortcut script list_people_python..."
+ 	@echo '#! /bin/sh' > list_people_python
+-	@echo './list_people.py "$$@"' >> list_people_python
++	@echo 'SCRIPT_DIR=$$(dirname $$0)' >> list_people_python
++	@echo '$$SCRIPT_DIR/list_people.py "$$@"' >> list_people_python
+ 	@chmod +x list_people_python
+-- 
+1.9.3
+
recipes-containers/criu/files/run-ptest new file +32 -0
new file mode 100755
index 0000000..a5a7b0f
@@ -0,0 +1,32 @@
+#!/bin/bash
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+TEST_FILE="/tmp/test.data"
+
+RETVAL=0
+# Test every writing test application
+for write_exe_full_path in ${DIR}/add_person_*; do
+	if [ -x "${write_exe_full_path}" ]; then
+		write_exe=`basename ${write_exe_full_path}`
+		echo "Generating new test file using ${write_exe}..."
+		${write_exe_full_path} "${TEST_FILE}"
+		RETVAL=$?
+
+		# Test every reading test application
+		for read_exe_full_path in ${DIR}/list_people_*; do
+			read_exe=`basename ${read_exe_full_path}`
+			echo "Test: Write with ${write_exe}; Read with ${read_exe}..."
+			if [ -x "${read_exe_full_path}" ]; then
+				${read_exe_full_path} "${TEST_FILE}"
+				RETVAL=$?
+			fi
+		done
+
+		# Cleanup...
+		if [ -e "${TEST_FILE}" ]; then
+			rm "${TEST_FILE}"
+		fi
+	fi
+done
+
+exit $RETVAL
+
recipes-containers/criu/protobuf_2.5.0.bb +58 -4

81 lines not on this page · raw message

Signature · 1 line
1.9.3
#5 lore raw
In reply to Keith Holman

Keith,

My build test is showing this:

NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile_ptest_base (log file is located at /home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471)
ERROR: Logfile of failure stored in:
/home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471 Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile_ptest_base
| cp: cannot stat '/home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/protobuf-2.5.0/protobuf.pc':
No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile_ptest_base (log file is located
at /home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471)
ERROR: Task 9 (/home/bruce/poky/meta-virtualization/recipes-containers/criu/protobuf_2.5.0.bb, do_compile_ptest_base) failed with exit code '1'

Does that look familiar ?

Bruce

Quoted 73 lines · Keith Holman

Upgrade Google Protocol Buffers to version 2.5.0. The previous version 2.4.1 is getting quite old (released April 2011). The newer version provides bug fixes and more functionality. This version adds some speed optimization and the ability to allow multiple enum symbols to have the same value.

---
 recipes-containers/criu/protobuf_2.4.1.bb | 18 ------------------
 recipes-containers/criu/protobuf_2.5.0.bb | 20 ++++++++++++++++++++
 2 files changed, 20 insertions(+), 18 deletions(-)
 delete mode 100644 recipes-containers/criu/protobuf_2.4.1.bb
 create mode 100644 recipes-containers/criu/protobuf_2.5.0.bb
recipes-containers/criu/protobuf_2.4.1.bb deleted +0 -18
deleted file mode 100644
index d8f1b53..0000000
@@ -1,18 +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 = "r0"
-
-SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"
-SRC_URI[sha256sum] = "eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"
-SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
-
-EXTRA_OECONF += " --with-protoc=echo"
-inherit autotools
-
-BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
recipes-containers/criu/protobuf_2.5.0.bb new file +20 -1
new file mode 100644
index 0000000..4a90b2c
@@ -0,0 +1,20 @@
+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 = "r0"
+
+SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8"
+SRC_URI[sha256sum] = "c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e"
+SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
+
+EXTRA_OECONF += " --with-protoc=echo"
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
--

1.9.3

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#6 lore raw
Quoted 22 lines · Bruce Ashfield

Keith,

My build test is showing this:

NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile_ptest_base (log file is located at /home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471)
ERROR: Logfile of failure stored in:
/home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471 Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile_ptest_base
| cp: cannot stat '/home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/protobuf-2.5.0/protobuf.pc':
No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile_ptest_base (log file is located
at /home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471)
ERROR: Task 9 (/home/bruce/poky/meta-virtualization/recipes-containers/criu/protobuf_2.5.0.bb, do_compile_ptest_base) failed with exit code '1'

Quoted 1 line

Does that look familiar ?

No, I never got that. The "protobuf.pc" file should be generated from the do_compile() command. I wouldn't know why it doesn't generate the file. Its required to be used by the pkgcfg command in the Makefile in the examples directory. It contains the location of the compiler flags and library flags for the compiler being used on the system. The script makes a temporary copy of this file into the "examples" directory and modifies it to cross-compile the examples for the target machine.

- Keith

Quoted 82 lines

Bruce

Quoted 73 lines · Keith Holman

Upgrade Google Protocol Buffers to version 2.5.0. The previous version 2.4.1 is getting quite old (released April 2011). The newer version provides bug fixes and more functionality. This version adds some speed optimization and the ability to allow multiple enum symbols to have the same value.

---
  recipes-containers/criu/protobuf_2.4.1.bb | 18 ------------------
  recipes-containers/criu/protobuf_2.5.0.bb | 20 ++++++++++++++++++++
  2 files changed, 20 insertions(+), 18 deletions(-)

delete mode 100644 recipes-containers/criu/protobuf_2.4.1.bb create mode 100644 recipes-containers/criu/protobuf_2.5.0.bb

recipes-containers/criu/protobuf_2.4.1.bb deleted +0 -18
deleted file mode 100644
index d8f1b53..0000000
@@ -1,18 +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 = "r0"
-
-SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"
-SRC_URI[sha256sum] = "eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"
-SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
-
-EXTRA_OECONF += " --with-protoc=echo"
-inherit autotools
-
-BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
recipes-containers/criu/protobuf_2.5.0.bb new file +20 -1
new file mode 100644
index 0000000..4a90b2c
@@ -0,0 +1,20 @@
+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 = "r0"
+
+SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8"
+SRC_URI[sha256sum] = "c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e"
+SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
+
+EXTRA_OECONF += " --with-protoc=echo"
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
--

1.9.3

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

#7 lore raw
Quoted 34 lines · Keith Holman
Quoted 28 lines · Bruce Ashfield

Keith,

My build test is showing this:

NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile_ptest_base (log file is located at

/home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471)
ERROR: Logfile of failure stored in:

/home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471 Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile_ptest_base
| cp: cannot stat

'/home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/protobuf-2.5.0/protobuf.pc':
No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile_ptest_base (log file is located
at /home/bruce/poky/build/tmp/work/core2-64-poky-linux/protobuf/2.5.0-r0/temp/log.do_compile_ptest_base.30471)
ERROR: Task 9 (/home/bruce/poky/meta-virtualization/recipes-containers/criu/protobuf_2.5.0.bb, do_compile_ptest_base) failed with exit code '1'

Quoted 1 line

Does that look familiar ?

Quoted 7 lines

No, I never got that. The "protobuf.pc" file should be generated from the do_compile() command. I wouldn't know why it doesn't generate the file. Its required to be used by the pkgcfg command in the Makefile in the examples directory. It contains the location of the compiler flags and library flags for the compiler being used on the system. The script makes a temporary copy of this file into the "examples" directory and modifies it to cross-compile the examples for the target machine.

problem solved. It ws the autotools source / build separation. I made a patch on top, and will merge the change shortly.

Bruce

Quoted 98 lines

- Keith

Quoted 93 lines

Bruce

Quoted 83 lines · Keith Holman

Upgrade Google Protocol Buffers to version 2.5.0. The previous version 2.4.1 is getting quite old (released April 2011). The newer version provides bug fixes and more functionality. This version adds some speed optimization and the ability to allow multiple enum symbols to have the same value.

---
  recipes-containers/criu/protobuf_2.4.1.bb | 18 ------------------
  recipes-containers/criu/protobuf_2.5.0.bb | 20 ++++++++++++++++++++
  2 files changed, 20 insertions(+), 18 deletions(-)

delete mode 100644 recipes-containers/criu/protobuf_2.4.1.bb create mode 100644 recipes-containers/criu/protobuf_2.5.0.bb

recipes-containers/criu/protobuf_2.4.1.bb deleted +0 -2
deleted file mode 100644
index d8f1b53..0000000
@@ -1,18 +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."

recipes-containers/criu/protobuf_2.4.1.bb deleted +0 -5
-HOMEPAGE = "http://code.google.com/p/protobuf/"
-SECTION = "console/tools"
-LICENSE = "BSD-3-Clause"
-
-LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"

recipes-containers/criu/protobuf_2.4.1.bb deleted +0 -5
-
-PR = "r0"
-
-SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"
-SRC_URI[sha256sum] =

"eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"

recipes-containers/criu/protobuf_2.4.1.bb deleted +0 -6
-SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
-
-EXTRA_OECONF += " --with-protoc=echo"
-inherit autotools
-
-BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
recipes-containers/criu/protobuf_2.5.0.bb new file +2 -0
new file mode 100644
index 0000000..4a90b2c
@@ -0,0 +1,20 @@
+SUMMARY = "protobuf"
+DESCRIPTION = "Protocol Buffers are a way of encoding structured data in

\

recipes-containers/criu/protobuf_2.5.0.bb new file +7 -0
+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"

recipes-containers/criu/protobuf_2.5.0.bb new file +5 -0
+
+PR = "r0"
+
+SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8"
+SRC_URI[sha256sum] =

"c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e"

recipes-containers/criu/protobuf_2.5.0.bb new file +6 -1
+SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
+
+EXTRA_OECONF += " --with-protoc=echo"
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
--

1.9.3

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"