summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2018-09-24 21:03:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-10 17:59:09 +0100
commitd4f4f5662884683ff24ac5a29a9a7f979a0948b9 (patch)
tree48c672bac644abdda6b73e965025cc75cbec6ddc /meta/recipes-extended
parentc7bd5c98dd02f032cc9eb53aa65e13ebecc59b9f (diff)
downloadpoky-d4f4f5662884683ff24ac5a29a9a7f979a0948b9.tar.gz
lsof: Make it compatible with externalsrc
Make the unpack task do nothing if externalsrc is in use. This avoids the following error after having done `devtool modify lsof`: ERROR: lsof-4.91-r0 do_unpack: Unpack failure for URL: 'file://.../builds/qemux86-64/tmp/work/core2-64-poky-linux/lsof/4.91-r0/lsof_4.91/lsof_4.91_src.tar'. Unpack command PATH="..." tar x --no-same-owner -f .../builds/qemux86-64/tmp/work/core2-64-poky-linux/lsof/4.91-r0/lsof_4.91/lsof_4.91_src.tar failed with return value 2 (From OE-Core rev: 51f9a0e58d7b996c4589566963a5853ed93814f7) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/lsof/lsof_4.91.bb23
1 files changed, 11 insertions, 12 deletions
diff --git a/meta/recipes-extended/lsof/lsof_4.91.bb b/meta/recipes-extended/lsof/lsof_4.91.bb
index 0128de4a6e..b3adfd57af 100644
--- a/meta/recipes-extended/lsof/lsof_4.91.bb
+++ b/meta/recipes-extended/lsof/lsof_4.91.bb
@@ -23,18 +23,17 @@ LOCALSRC = "file://${WORKDIR}/lsof_${PV}/lsof_${PV}_src.tar"
23S = "${WORKDIR}/lsof_${PV}_src" 23S = "${WORKDIR}/lsof_${PV}_src"
24 24
25python do_unpack () { 25python do_unpack () {
26 # temporarily change S for unpack 26 if not bb.data.inherits_class('externalsrc', d) or not d.getVar('EXTERNALSRC'):
27 # of lsof_${PV} 27 # temporarily change S for unpack of lsof_${PV}
28 s = d.getVar('S', False) 28 s = d.getVar('S', False)
29 d.setVar('S', '${WORKDIR}/lsof_${PV}') 29 d.setVar('S', '${WORKDIR}/lsof_${PV}')
30 bb.build.exec_func('base_do_unpack', d) 30 bb.build.exec_func('base_do_unpack', d)
31 # temporarily change SRC_URI for unpack 31 # temporarily change SRC_URI for unpack of lsof_${PV}_src
32 # of lsof_${PV}_src 32 src_uri = d.getVar('SRC_URI', False)
33 src_uri = d.getVar('SRC_URI', False) 33 d.setVar('SRC_URI', '${LOCALSRC}')
34 d.setVar('SRC_URI', '${LOCALSRC}') 34 d.setVar('S', s)
35 d.setVar('S', s) 35 bb.build.exec_func('base_do_unpack', d)
36 bb.build.exec_func('base_do_unpack', d) 36 d.setVar('SRC_URI', src_uri)
37 d.setVar('SRC_URI', src_uri)
38} 37}
39 38
40export LSOF_INCLUDE = "${STAGING_INCDIR}" 39export LSOF_INCLUDE = "${STAGING_INCDIR}"