[oe] [meta-oe] [PATCH 1/2] krb5: use BP for the tarball

Robert Yang liezhi.yang at windriver.com
Wed Oct 8 08:01:18 UTC 2014


Otherwise do_unpack failed when multilib:

tar (child): /path/to/lib32-krb5-1.12.2.tar.gz: Cannot open: No such file or directory

And do_patch error:
ERROR: Command Error: exit status: 1  Output:
Applying patch 0001-aclocal-Add-parameter-to-disable-keyutils-detection.patch
can't find file to patch at input line 15

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb b/meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb
index 0b14d3c..d3c643c 100644
--- a/meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb
+++ b/meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb
@@ -32,7 +32,7 @@ SRC_URI = "http://web.mit.edu/kerberos/dist/${BPN}/${SHRT_VER}/${BP}-signed.tar
 SRC_URI[md5sum] = "357f1312b7720a0a591e22db0f7829fe"
 SRC_URI[sha256sum] = "09bd180107b5c2b3b7378c57c023fb02a103d4cac39d6f2dd600275d7a4f3744"
 
-S = "${WORKDIR}/${P}/src/"
+S = "${WORKDIR}/${BP}/src/"
 
 PACKAGECONFIG ??= "openssl"
 PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit"
@@ -55,7 +55,7 @@ FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug"
 
 krb5_do_unpack() {
     # ${P}-signed.tar contains ${P}.tar.gz.asc and ${P}.tar.gz
-    tar xzf ${WORKDIR}/${P}.tar.gz -C ${WORKDIR}/
+    tar xzf ${WORKDIR}/${BP}.tar.gz -C ${WORKDIR}/
 }
 
 python do_unpack() {
-- 
1.7.9.5



More information about the Openembedded-devel mailing list