From 246309829404d2763b771a472079a1b59c8b09f2 Mon Sep 17 00:00:00 2001 From: Li xin Date: Tue, 26 Apr 2016 10:56:05 +0300 Subject: mozjs_17.0.0.bb: Fix do_srpm error The function do_sourceclean() will lead to do_srpm failed, so use do_unpack instead. Signed-off-by: Li Xin Signed-off-by: Martin Jansa Signed-off-by: Armin Kuster --- meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb') 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 cab6dd5a8..da0578914 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb @@ -53,17 +53,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" -- cgit v1.2.3-54-g00ecf