diff options
| author | Lei Maohui <leimaohui@cn.fujitsu.com> | 2016-05-17 13:30:39 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster@mvista.com> | 2016-06-26 11:47:29 -0700 |
| commit | e5ef0f158270a9d7fa4beb95b68b07927a02996e (patch) | |
| tree | 5d766d2c6ab41f8f82c917462869de0294bd27ad | |
| parent | 2a1f79040be637a8ebd3f4a22c13a85d8b09dcf1 (diff) | |
| download | meta-security-e5ef0f158270a9d7fa4beb95b68b07927a02996e.tar.gz | |
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.inc | 17 |
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" | |||
| 25 | 25 | ||
| 26 | PACKAGECONFIG ??= "" | 26 | PACKAGECONFIG ??= "" |
| 27 | 27 | ||
| 28 | # We have to unpack the tar ball twice to get to the source. | 28 | do_unpack_samhain() { |
| 29 | # Also as soon as OE gets the tar ball it unpacks and | 29 | cd ${WORKDIR} |
| 30 | # proceeds to apply the patches. But what you still have after | 30 | tar -xzvf samhain-${PV}.tar.gz |
| 31 | # the first unpack is another tar ball. So we do a do_unpack_extra() | 31 | } |
| 32 | # and tell OE to do the second unpack before do_patch(), otherwise | 32 | |
| 33 | # do_patch() will fail when trying to apply the patches. | 33 | python do_unpack_append() { |
| 34 | do_unpack_extra () { | 34 | bb.build.exec_func('do_unpack_samhain', d) |
| 35 | cd ${WORKDIR} | ||
| 36 | tar -xzvf samhain-${PV}.tar.gz | ||
| 37 | } | 35 | } |
| 38 | addtask unpack_extra after do_unpack before do_patch | ||
| 39 | 36 | ||
| 40 | do_configure_prepend_arm() { | 37 | do_configure_prepend_arm() { |
| 41 | export sh_cv___va_copy=yes | 38 | export sh_cv___va_copy=yes |
