[oe-commits] Ajay M : parted: set VERSION number same as recipe's version

git at git.openembedded.org git at git.openembedded.org
Tue Aug 25 09:00:28 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 6d380d9d2e7f4a2e8c30da5c79086ee0391bfad5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6d380d9d2e7f4a2e8c30da5c79086ee0391bfad5

Author: Ajay M <ajay.gju at gmail.com>
Date:   Wed Aug 19 12:37:46 2015 +0530

parted: set VERSION number same as recipe's version

There is a parameter VERSION in workdir Makefile which tells the version
number of parted. While running ptest for parted we are getting failure because
of VERSION mismatch

--snip--
root at qemux86:/usr/lib/parted/ptest# ./run-ptest
make: Entering directory '/usr/lib/parted/ptest/tests'
make[1]: Entering directory '/usr/lib/parted/ptest/tests'
help-version.sh: failed test: --version-$VERSION mismatch
FAIL: help-version.sh
--CUT--

[YOCTO #8172]

Signed-off-by: Ajay M <ajay.gju at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-extended/parted/parted_3.2.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-extended/parted/parted_3.2.bb b/meta/recipes-extended/parted/parted_3.2.bb
index 5d34749..ff8ae09 100644
--- a/meta/recipes-extended/parted/parted_3.2.bb
+++ b/meta/recipes-extended/parted/parted_3.2.bb
@@ -36,6 +36,7 @@ do_install_ptest() {
 	cp ${S}/build-aux/test-driver $t/build-aux/
 	cp -r ${S}/tests $t
 	cp ${WORKDIR}/Makefile $t/tests/
+	sed -i "s|^VERSION.*|VERSION = ${PV}|g" $t/tests/Makefile
 	for i in print-align print-max dup-clobber duplicate fs-resize; \
 	  do cp ${B}/tests/.libs/$i $t/tests/; \
 	done



More information about the Openembedded-commits mailing list