summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cpio/cpio_v2.inc
diff options
context:
space:
mode:
authorDominic Sacré <dominic.sacre@gmx.de>2015-09-17 18:13:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 09:52:51 +0100
commitb6f8ea1b4bc912c4716c3a57005659b1f5cb2167 (patch)
tree4f610e94f7050d7e842712352381fd53fed688bb /meta/recipes-extended/cpio/cpio_v2.inc
parentfe0cdaba8d06f1dc126c647b8ef7150dcd18cc98 (diff)
downloadpoky-b6f8ea1b4bc912c4716c3a57005659b1f5cb2167.tar.gz
cpio: fix install if bindir == base_bindir
Don't try to move binaries onto themselves if ${bindir} and ${base_bindir} are the same, as is the case on systems with a merged /usr directory. (From OE-Core rev: 29e4d21a7101428ac44e60411883952b041fcbc1) Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cpio/cpio_v2.inc')
-rw-r--r--meta/recipes-extended/cpio/cpio_v2.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-extended/cpio/cpio_v2.inc b/meta/recipes-extended/cpio/cpio_v2.inc
index 93de4bb92b..8520ff267c 100644
--- a/meta/recipes-extended/cpio/cpio_v2.inc
+++ b/meta/recipes-extended/cpio/cpio_v2.inc
@@ -18,9 +18,11 @@ EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}"
18 18
19do_install () { 19do_install () {
20 autotools_do_install 20 autotools_do_install
21 install -d ${D}${base_bindir}/ 21 if [ "${base_bindir}" != "${bindir}" ]; then
22 mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio" 22 install -d ${D}${base_bindir}/
23 rmdir ${D}${bindir}/ 23 mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio"
24 rmdir ${D}${bindir}/
25 fi
24} 26}
25 27
26PACKAGES =+ "${PN}-rmt" 28PACKAGES =+ "${PN}-rmt"