[oe-commits] Andreas Müller : utils.bbclass: modify create_wrapper to correctly follow symlinks
git version control
git at git.openembedded.org
Thu Jun 2 20:01:31 UTC 2011
Module: openembedded.git
Branch: testing-next
Commit: d8d2e1730a4e941bfeb5075c7816543ab201f9e0
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=d8d2e1730a4e941bfeb5075c7816543ab201f9e0
Author: Andreas Müller <schnitzeltony at gmx.de>
Date: Sat May 28 04:47:53 2011 +0000
utils.bbclass: modify create_wrapper to correctly follow symlinks
* taken from OE-Core [1]
* thanks Khem for pointing out[2]
* fixes build failure perl
| env: ./perl5.10.1.real: No such file or directory
| make[1]: *** [pod/perlapi.pod] Error 127
[1] http://git.openembedded.org/cgit.cgi/openembedded-core/commit/?id=a10bd976f4cef54ac50b0c82f885c17a26e5989f
[2] http://lists.linuxtogo.org/pipermail/openembedded-core/2011-May/002975.html
Signed-off-by: Andreas Mueller <schnitzeltony at gmx.de>
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
classes/utils.bbclass | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/classes/utils.bbclass b/classes/utils.bbclass
index 7591d47..936f7fd 100644
--- a/classes/utils.bbclass
+++ b/classes/utils.bbclass
@@ -407,7 +407,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
}
More information about the Openembedded-commits
mailing list