Skip to contentSkip to conversation

protobuf: Fix QA error for GNU_HASH

PATCH In review [email protected] 2 participants 3 messages Oct 20, 2016 – Oct 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 protobuf: Fix QA error for GNU_HASH

From: He Zhe <[email protected]>

Add LDFLAGS to examples makefile to pass default ld flags.

"ERROR: protobuf-3.0.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '.../protobuf/3.0.0-r0/packages-split/protobuf-ptest/usr/ lib/protobuf/ptest/add_person_cpp'"

---
 recipes-devtools/protobuf/protobuf_3.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/protobuf/protobuf_3.0.0.bb +1 -1
index e1deeac..0445ae4 100644
@@ -36,7 +36,7 @@ do_compile() {
 
 do_compile_ptest() {
 	# Modify makefile to use the cross-compiler
-	sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
+	sed -e "s|c++|${CXX} \$(LDFLAGS)|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
 
 	mkdir -p "${B}/${TEST_SRC_DIR}"
 
Signature · 1 line
2.8.3
#1 lore raw

PATCH 2/2 protobuf: ptest: Fix QA file-rdep warning

From: He Zhe <[email protected]>

Add bash to ptest's RDEPENDS

"WARNING: QA Issue: /usr/lib64/protobuf/ptest/run-ptest_protobuf-ptest contained in package protobuf-ptest requires /bin/bash, but no providers found in its RDEPENDS [file-rdeps]"

---
 recipes-devtools/protobuf/protobuf_3.0.0.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-devtools/protobuf/protobuf_3.0.0.bb +1 -0
index 0445ae4..fd81fe7 100644
@@ -24,6 +24,7 @@ EXTRA_OECONF += " --with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
 inherit autotools setuptools ptest
 
 DEPENDS += "protobuf-native"
+RDEPENDS_${PN}-ptest = "bash"
 
 PYTHON_SRC_DIR="python"
 TEST_SRC_DIR="examples"
Signature · 1 line
2.8.3
#2 lore raw
In reply to [email protected]

merged.

Bruce

Quoted 37 lines · On Wed, Oct 19, 2016 at 10:49 PM, <[email protected]> wrote:

From: He Zhe <[email protected]>

Add LDFLAGS to examples makefile to pass default ld flags.

"ERROR: protobuf-3.0.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '.../protobuf/3.0.0-r0/packages-split/protobuf-ptest/usr/ lib/protobuf/ptest/add_person_cpp'"

---
 recipes-devtools/protobuf/protobuf_3.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/protobuf/protobuf_3.0.0.bb +1 -1
index e1deeac..0445ae4 100644
@@ -36,7 +36,7 @@ do_compile() {
 
 do_compile_ptest() {
        # Modify makefile to use the cross-compiler
-       sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
+       sed -e "s|c++|${CXX} \$(LDFLAGS)|g" -i "${S}/${TEST_SRC_DIR}/

Makefile"

        mkdir -p "${B}/${TEST_SRC_DIR}"

--
2.8.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"