The function do_sourceclean() will lead to do_srpm failed, so use
do_unpack instead.

Signed-off-by: Li Xin <lixin.f...@cn.fujitsu.com>
---
 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb 
b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
index be4b50b..7d66978 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
@@ -52,17 +52,11 @@ do_configure() {
 }
 
 # patch.bbclass will try to apply the patches already present and fail, so 
clean them out
-do_sourceclean() {
-    (
-    cd ${WORKDIR}/${BPN}${PV}/patches
-    for i in $(cat series | awk '{print $1}') ; do
-        rm -f $i
-    done
-    rm -f series
-    )
+do_unpack() {
+    tar -xvf ${DL_DIR}/mozjs17.0.0.tar.gz -C ${WORKDIR}/
+    rm -rf ${WORKDIR}/${BPN}${PV}/patches
 }
 
-addtask sourceclean before do_patch after do_unpack
 
 PACKAGES =+ "lib${PN}"
 FILES_lib${PN} += "${libdir}/lib*.so"
-- 
1.8.4.2



-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to