All of lore.kernel.org
 help / color / mirror / Atom feed
* [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks
@ 2009-11-05 14:41 Marcin Juszkiewicz
  2009-11-06  9:10 ` Henning Heinold
  2009-11-23 15:21 ` Philip Balister
  0 siblings, 2 replies; 4+ messages in thread
From: Marcin Juszkiewicz @ 2009-11-05 14:41 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Marcin Juszkiewicz

From: Marcin Juszkiewicz <marcin@buglabs.net>

Code checked for existance of JAR file and if it was present then it had
to be removed before symlinking to it. But it was not working sometimes
so we forced symlinking.

Proper fix is to check "does file exists or is a symlink" which we do
now.

Signed-off-by: Marcin Juszkiewicz <marcin@buglabs.net>
---
 classes/java.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/java.bbclass b/classes/java.bbclass
index cacd2ce..b68035c 100644
--- a/classes/java.bbclass
+++ b/classes/java.bbclass
@@ -68,11 +68,11 @@ oe_jarinstall() {
 
   # Creates symlinks out of the remaining arguments.
   while [ "$#" -gt 0 ]; do
-    if [ -e $dir/$1 ]; then
+    if [ -e $dir/$1 -o -h $dir/$1 ]; then
       oewarn "file was in the way. removing:" $dir/$1
       rm $dir/$1
     fi
-    ln -sf $destname $dir/$1
+    ln -s $destname $dir/$1
     shift
   done
 }
-- 
1.6.5.2






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

* Re: [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks
  2009-11-05 14:41 [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks Marcin Juszkiewicz
@ 2009-11-06  9:10 ` Henning Heinold
  2009-11-06 11:26   ` Koen Kooi
  2009-11-23 15:21 ` Philip Balister
  1 sibling, 1 reply; 4+ messages in thread
From: Henning Heinold @ 2009-11-06  9:10 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Nov 05, 2009 at 03:41:16PM +0100, Marcin Juszkiewicz wrote:
> From: Marcin Juszkiewicz <marcin@buglabs.net>
> 
> Code checked for existance of JAR file and if it was present then it had
> to be removed before symlinking to it. But it was not working sometimes
> so we forced symlinking.
> 
> Proper fix is to check "does file exists or is a symlink" which we do
> now.
> 
> Signed-off-by: Marcin Juszkiewicz <marcin@buglabs.net>
> ---
>  classes/java.bbclass |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/classes/java.bbclass b/classes/java.bbclass
> index cacd2ce..b68035c 100644
> --- a/classes/java.bbclass
> +++ b/classes/java.bbclass
> @@ -68,11 +68,11 @@ oe_jarinstall() {
>  
>    # Creates symlinks out of the remaining arguments.
>    while [ "$#" -gt 0 ]; do
> -    if [ -e $dir/$1 ]; then
> +    if [ -e $dir/$1 -o -h $dir/$1 ]; then
>        oewarn "file was in the way. removing:" $dir/$1
>        rm $dir/$1
>      fi
> -    ln -sf $destname $dir/$1
> +    ln -s $destname $dir/$1
>      shift
>    done
>  }
> -- 
*ACK*

Bye Henning



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

* Re: [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks
  2009-11-06  9:10 ` Henning Heinold
@ 2009-11-06 11:26   ` Koen Kooi
  0 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2009-11-06 11:26 UTC (permalink / raw)
  To: openembedded-devel

On 06-11-09 10:10, Henning Heinold wrote:

> *ACK*

Could people please start giving proper acked-by lines?




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

* Re: [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks
  2009-11-05 14:41 [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks Marcin Juszkiewicz
  2009-11-06  9:10 ` Henning Heinold
@ 2009-11-23 15:21 ` Philip Balister
  1 sibling, 0 replies; 4+ messages in thread
From: Philip Balister @ 2009-11-23 15:21 UTC (permalink / raw)
  To: openembedded-devel

Acked-by: Philip Balister <philip@balister.org>

On 11/05/2009 09:41 AM, Marcin Juszkiewicz wrote:
> From: Marcin Juszkiewicz<marcin@buglabs.net>
>
> Code checked for existance of JAR file and if it was present then it had
> to be removed before symlinking to it. But it was not working sometimes
> so we forced symlinking.
>
> Proper fix is to check "does file exists or is a symlink" which we do
> now.
>
> Signed-off-by: Marcin Juszkiewicz<marcin@buglabs.net>
> ---
>   classes/java.bbclass |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/classes/java.bbclass b/classes/java.bbclass
> index cacd2ce..b68035c 100644
> --- a/classes/java.bbclass
> +++ b/classes/java.bbclass
> @@ -68,11 +68,11 @@ oe_jarinstall() {
>
>     # Creates symlinks out of the remaining arguments.
>     while [ "$#" -gt 0 ]; do
> -    if [ -e $dir/$1 ]; then
> +    if [ -e $dir/$1 -o -h $dir/$1 ]; then
>         oewarn "file was in the way. removing:" $dir/$1
>         rm $dir/$1
>       fi
> -    ln -sf $destname $dir/$1
> +    ln -s $destname $dir/$1
>       shift
>     done
>   }




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

end of thread, other threads:[~2009-11-23 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-05 14:41 [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks Marcin Juszkiewicz
2009-11-06  9:10 ` Henning Heinold
2009-11-06 11:26   ` Koen Kooi
2009-11-23 15:21 ` Philip Balister

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.