aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi xin <lixin.fnst@cn.fujitsu.com>2016-04-26 10:56:05 +0300
committerArmin Kuster <akuster808@gmail.com>2016-04-28 12:31:11 -0700
commit4a627d459610722948e6a654c958819b8c53c406 (patch)
tree81736812f83004cad55adb735858128e6394514b
parent41ccc871ae8b00435195aafecf365298ee685fbc (diff)
downloadmeta-openembedded-4a627d459610722948e6a654c958819b8c53c406.tar.gz
meta-openembedded-4a627d459610722948e6a654c958819b8c53c406.tar.bz2
meta-openembedded-4a627d459610722948e6a654c958819b8c53c406.zip
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 <lixin.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb12
1 files 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 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"