[OE-core] [PATCH] sed: Cope with ${bindir} and ${base_bindir} being the same
Mike Crowe
mac at mcrowe.com
Thu Feb 5 17:02:21 UTC 2015
${bindir} and ${base_bindir} may be the same. If they are don't try and
move files onto themselves.
Signed-off-by: Mike Crowe <mac at mcrowe.com>
---
meta/recipes-extended/sed/sed_4.2.2.bb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-extended/sed/sed_4.2.2.bb b/meta/recipes-extended/sed/sed_4.2.2.bb
index 72976de..bbfa238 100644
--- a/meta/recipes-extended/sed/sed_4.2.2.bb
+++ b/meta/recipes-extended/sed/sed_4.2.2.bb
@@ -22,8 +22,10 @@ EXTRA_OECONF = "--disable-acl \
do_install () {
autotools_do_install
install -d ${D}${base_bindir}
- mv ${D}${bindir}/sed ${D}${base_bindir}/sed
- rmdir ${D}${bindir}/
+ if [ ! ${D}${bindir} -ef ${D}${base_bindir} ]; then
+ mv ${D}${bindir}/sed ${D}${base_bindir}/sed
+ rmdir ${D}${bindir}/
+ fi
}
ALTERNATIVE_${PN} = "sed"
--
2.1.4
More information about the Openembedded-core
mailing list