utils.bbclass: fix problem with perl and wrapper
cover utils.bbclass: fix problem with perl and wrapper
From: Saul Wold <[email protected]>
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 <[email protected]>
---
Saul Wold (1):
utils.bbclass: modify create_wrapper to correctly follow symlinks
meta/classes/utils.bbclass | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.3.4
PATCH 1/1 utils.bbclass: modify create_wrapper to correctly follow symlinks
From: Saul Wold <[email protected]>
This ensures you look up the symbolic link to get the full path
--- meta/classes/utils.bbclass | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
meta/classes/utils.bbclass +2 -1
@@ -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 }
Signature · 1 line
1.7.3.4
Re: [PATCH 1/1] utils.bbclass: modify create_wrapper to correctly follow symlinks
Op 18 mei 2011, om 20:23 heeft Saul Wold het volgende geschreven:
Quoted 20 lines
From: Saul Wold <[email protected]>
This ensures you look up the symbolic link to get the full path
Signed-off-by Saul Wold <[email protected]>---
meta/classes/utils.bbclass | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)meta/classes/utils.bbclass +2
-1@@ -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 "\$@"
Quoted 3 lines
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)