* [PATCH] utils.bbclass: modify create_wrapper to correctly follow symlinks
@ 2011-05-27 20:47 Andreas Mueller
0 siblings, 0 replies; only message in thread
From: Andreas Mueller @ 2011-05-27 20:47 UTC (permalink / raw)
To: openembedded-devel
* 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@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-27 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27 20:47 [PATCH] utils.bbclass: modify create_wrapper to correctly follow symlinks Andreas Mueller
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.