aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2016-05-17 13:30:39 -0700
committerArmin Kuster <akuster@mvista.com>2016-06-26 11:47:29 -0700
commite5ef0f158270a9d7fa4beb95b68b07927a02996e (patch)
tree5d766d2c6ab41f8f82c917462869de0294bd27ad
parent2a1f79040be637a8ebd3f4a22c13a85d8b09dcf1 (diff)
downloadmeta-security-e5ef0f158270a9d7fa4beb95b68b07927a02996e.tar.gz
meta-security-e5ef0f158270a9d7fa4beb95b68b07927a02996e.tar.bz2
meta-security-e5ef0f158270a9d7fa4beb95b68b07927a02996e.zip
samhain: Avoid empty source archiver
It is better to put necessary work into do_patch task than add a new task. Otherwise,you can not get correct source code in some functions(such as archiver.bbclass). Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Armin Kuster <akuster@mvista.com>
-rw-r--r--recipes-security/samhain/samhain.inc17
1 files changed, 7 insertions, 10 deletions
diff --git a/recipes-security/samhain/samhain.inc b/recipes-security/samhain/samhain.inc
index 23bc8f5..5c0142b 100644
--- a/recipes-security/samhain/samhain.inc
+++ b/recipes-security/samhain/samhain.inc
@@ -25,17 +25,14 @@ INITSCRIPT_PARAMS ?= "defaults"
PACKAGECONFIG ??= ""
-# We have to unpack the tar ball twice to get to the source.
-# Also as soon as OE gets the tar ball it unpacks and
-# proceeds to apply the patches. But what you still have after
-# the first unpack is another tar ball. So we do a do_unpack_extra()
-# and tell OE to do the second unpack before do_patch(), otherwise
-# do_patch() will fail when trying to apply the patches.
-do_unpack_extra () {
- cd ${WORKDIR}
- tar -xzvf samhain-${PV}.tar.gz
+do_unpack_samhain() {
+ cd ${WORKDIR}
+ tar -xzvf samhain-${PV}.tar.gz
+}
+
+python do_unpack_append() {
+ bb.build.exec_func('do_unpack_samhain', d)
}
-addtask unpack_extra after do_unpack before do_patch
do_configure_prepend_arm() {
export sh_cv___va_copy=yes