[oe] [PATCH] utils.bbclass: modify create_wrapper to correctly follow symlinks
Andreas Mueller
schnitzeltony at gmx.de
Fri May 27 20:47:53 UTC 2011
* 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>
---
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
}
--
1.7.4.4
More information about the Openembedded-devel
mailing list