All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gzip_1.4.bb: Fix do_install for DISTRO=micro.
@ 2010-12-01  2:31 Graham Gower
  2010-12-01 13:43 ` Michael Smith
  0 siblings, 1 reply; 2+ messages in thread
From: Graham Gower @ 2010-12-01  2:31 UTC (permalink / raw)
  To: openembedded-devel

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 <graham.gower@gmail.com>
---
 recipes/gzip/gzip_1.4.bb |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/recipes/gzip/gzip_1.4.bb b/recipes/gzip/gzip_1.4.bb
index eb89f79..020e31a 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 () {
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gzip_1.4.bb: Fix do_install for DISTRO=micro.
  2010-12-01  2:31 [PATCH] gzip_1.4.bb: Fix do_install for DISTRO=micro Graham Gower
@ 2010-12-01 13:43 ` Michael Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Smith @ 2010-12-01 13:43 UTC (permalink / raw)
  To: openembedded-devel

Graham Gower wrote:
> 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 <graham.gower@gmail.com>

Acked-by: Michael Smith <msmith@cbnco.com>

> ---
>  recipes/gzip/gzip_1.4.bb |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/recipes/gzip/gzip_1.4.bb b/recipes/gzip/gzip_1.4.bb
> index eb89f79..020e31a 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 () {




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-01 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01  2:31 [PATCH] gzip_1.4.bb: Fix do_install for DISTRO=micro Graham Gower
2010-12-01 13:43 ` Michael Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.