Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] [RFC] utils.bbclass: fix problem with perl and wrapper
@ 2011-05-18 18:23 Saul Wold
  2011-05-18 18:23 ` [PATCH 1/1] utils.bbclass: modify create_wrapper to correctly follow symlinks Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2011-05-18 18:23 UTC (permalink / raw)
  To: openembedded-core

From: Saul Wold <sgw@linux.intel.com>


Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: sgw/patch
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgw/patch

Thanks,
    Saul Wold <sgw@linux.intel.com>
---


Saul Wold (1):
  utils.bbclass: modify create_wrapper to correctly follow symlinks

 meta/classes/utils.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

-- 
1.7.3.4




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

* [PATCH 1/1] utils.bbclass: modify create_wrapper to correctly follow symlinks
  2011-05-18 18:23 [PATCH 0/1] [RFC] utils.bbclass: fix problem with perl and wrapper Saul Wold
@ 2011-05-18 18:23 ` Saul Wold
  2011-05-18 18:43   ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2011-05-18 18:23 UTC (permalink / raw)
  To: openembedded-core

From: Saul Wold <sgw@linux.intel.com>

This ensures you look up the symbolic link to get the full path

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/classes/utils.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 6bcaf86..a789d41 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -312,7 +312,8 @@ create_wrapper () {
    cmdname=`basename $cmd`.real
    cat <<END >$cmd
 #!/bin/sh
-exec env $@ \`dirname \$0\`/$cmdname "\$@"
+realpath=`readlink -fn \$0`
+exec env $@ \`dirname \$realpath\`/$cmdname "\$@"
 END
    chmod +x $cmd
 }
-- 
1.7.3.4




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

* Re: [PATCH 1/1] utils.bbclass: modify create_wrapper to correctly follow symlinks
  2011-05-18 18:23 ` [PATCH 1/1] utils.bbclass: modify create_wrapper to correctly follow symlinks Saul Wold
@ 2011-05-18 18:43   ` Koen Kooi
  0 siblings, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2011-05-18 18:43 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 18 mei 2011, om 20:23 heeft Saul Wold het volgende geschreven:

> From: Saul Wold <sgw@linux.intel.com>
> 
> This ensures you look up the symbolic link to get the full path
> 
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/classes/utils.bbclass |    3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
> index 6bcaf86..a789d41 100644
> --- a/meta/classes/utils.bbclass
> +++ b/meta/classes/utils.bbclass
> @@ -312,7 +312,8 @@ create_wrapper () {
>    cmdname=`basename $cmd`.real
>    cat <<END >$cmd
> #!/bin/sh
> -exec env $@ \`dirname \$0\`/$cmdname "\$@"
> +realpath=`readlink -fn \$0`
> +exec env $@ \`dirname \$realpath\`/$cmdname "\$@"
> END
>    chmod +x $cmd
> }

This patch makes the perl problem come out a lot earlier:

| env: /OE/tentacle/build/tmp-angstrom_2010_x-eglibc/work/x86_64-linux/perl-native-5.12.3-r2/temp/perl.real: No such file or directory
| configure: error: Perl 5.005_03 or better is required
| + bbfatal 'oe_runconf failed'
| + echo 'ERROR: oe_runconf failed'
| ERROR: oe_runconf failed
| + exit 1
| ERROR: Function 'do_configure' failed (see /OE/tentacle/build/tmp-angstrom_2010_x-eglibc/work/x86_64-linux/autoconf-native-2.65-r2/temp/log.do_configure.16420 for further information)





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

end of thread, other threads:[~2011-05-18 18:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-18 18:23 [PATCH 0/1] [RFC] utils.bbclass: fix problem with perl and wrapper Saul Wold
2011-05-18 18:23 ` [PATCH 1/1] utils.bbclass: modify create_wrapper to correctly follow symlinks Saul Wold
2011-05-18 18:43   ` Koen Kooi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox