From: Graham Gower Date: Wed, 1 Dec 2010 02:31:23 +0000 (+1030) Subject: gzip_1.4.bb: Fix do_install for DISTRO=micro. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fe91160de2d59875f680cd8ad40c43adf5687bb;p=openembedded.git gzip_1.4.bb: Fix do_install for DISTRO=micro. mv: `/mnt/oe/tmp/work/mipsel-oe-linux-uclibc/gzip-1.4-r3/image/bin/gunzip' and `/mnt/oe/tmp/work/mipsel-oe-linux-uclibc/gzip-1.4-r3/image/bin/gunzip' are the same file Signed-off-by: Graham Gower Signed-off-by: Khem Raj Acked-by: Michael Smith --- diff --git a/recipes/gzip/gzip_1.4.bb b/recipes/gzip/gzip_1.4.bb index eb89f79877..020e31acb9 100644 --- a/recipes/gzip/gzip_1.4.bb +++ b/recipes/gzip/gzip_1.4.bb @@ -19,10 +19,12 @@ alternatives = "gunzip gzip zcat" do_install () { autotools_do_install # Move files into /bin (FHS) - install -d ${D}${base_bindir} - for file in ${D}${bindir}/*; do - mv $file ${D}${base_bindir}/ - done + if [ "${base_bindir}" != "${bindir}" ]; then + install -d ${D}${base_bindir} + for file in ${D}${bindir}/*; do + mv $file ${D}${base_bindir}/ + done + fi } do_install_append_pn-gzip () {