summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorPetter Mabäcker <petter@technux.se>2015-01-06 22:22:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-23 11:36:27 +0000
commit06a2dd73eaf4afaf1c28b8e24204cb85f5da0a1f (patch)
tree0a1e77d9c393ca3ba6f5db767b75fd54aa173a06 /meta/recipes-extended
parented3ddd467ffc313aad467f1993200dddd6351c70 (diff)
downloadast2050-yocto-poky-06a2dd73eaf4afaf1c28b8e24204cb85f5da0a1f.zip
ast2050-yocto-poky-06a2dd73eaf4afaf1c28b8e24204cb85f5da0a1f.tar.gz
lsof: handle S in a proper way
Since lsof are doing two unpacks and S should be set to match the second unpack of an internal archive, we should let the build system know that we are aware of this. Solve this by temporarily set S like lsof are doing with SRC_URI. [YOCTO #5627] (From OE-Core rev: 3693b63c5d33a88591be818a942324954b12e076) Signed-off-by: Petter Mabäcker <petter@technux.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/lsof/lsof_4.88.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsof/lsof_4.88.bb b/meta/recipes-extended/lsof/lsof_4.88.bb
index a96b06e..0e49f92 100644
--- a/meta/recipes-extended/lsof/lsof_4.88.bb
+++ b/meta/recipes-extended/lsof/lsof_4.88.bb
@@ -15,9 +15,16 @@ S = "${WORKDIR}/lsof_${PV}_src"
LIC_FILES_CHKSUM = "file://${S}/00README;beginline=645;endline=679;md5=964df275d26429ba3b39dbb9f205172a"
python do_unpack () {
+ # temporarily change S for unpack
+ # of lsof_${PV}
+ s = d.getVar('S')
+ d.setVar('S', '${WORKDIR}/lsof_${PV}')
bb.build.exec_func('base_do_unpack', d)
+ # temporarily change SRC_URI for unpack
+ # of lsof_${PV}_src
src_uri = d.getVar('SRC_URI')
d.setVar('SRC_URI', '${LOCALSRC}')
+ d.setVar('S', s)
bb.build.exec_func('base_do_unpack', d)
d.setVar('SRC_URI', src_uri)
}
OpenPOWER on IntegriCloud