mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02:00
utils.bbclass: modify create_wrapper to correctly follow symlinks
This ensures you look up the symbolic link to get the full path (From OE-Core rev: 9215d23fd26c62d250749b8084a52f383cb16fba) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1ef9f107f0
commit
ccfd344782
@@ -312,7 +312,8 @@ create_wrapper () {
|
|||||||
cmdname=`basename $cmd`.real
|
cmdname=`basename $cmd`.real
|
||||||
cat <<END >$cmd
|
cat <<END >$cmd
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec env $@ \`dirname \$0\`/$cmdname "\$@"
|
realpath=\`readlink -fn \$0\`
|
||||||
|
exec env $@ \`dirname \$realpath\`/$cmdname "\$@"
|
||||||
END
|
END
|
||||||
chmod +x $cmd
|
chmod +x $cmd
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user