Skip to contentSkip to conversation

gzip_1.4.bb: Fix do_install for DISTRO=micro.

PATCH In review Graham Gower 2 participants 2 messages Dec 1, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 recipes/gzip/gzip_1.4.bb |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
recipes/gzip/gzip_1.4.bb +6 -4
index eb89f79..020e31a 100644
@@ -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 () {
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Graham Gower

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

Quoted 25 lines
---
 recipes/gzip/gzip_1.4.bb |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
recipes/gzip/gzip_1.4.bb +6 -4
index eb89f79..020e31a 100644
@@ -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 () {