mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-17 18:07:05 +00:00
p7zip: do not hardcode path in native wrapper script
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
93d85f6999
commit
67d6ed40bf
@ -29,8 +29,10 @@ do_install_class-native() {
|
||||
|
||||
# Create a shell script wrapper to execute next to 7z.so
|
||||
mv ${D}${bindir}/7z ${D}${bindir}/7z.bin
|
||||
echo "#! /bin/sh" > ${D}${bindir}/7z
|
||||
echo "exec ${D}${bindir}/7z.bin \"\$@\"" >> ${D}${bindir}/7z
|
||||
cat > ${D}${bindir}/7z << 'EOF'
|
||||
#!/bin/sh
|
||||
exec "$(dirname "$0")"/7z.bin "$@"
|
||||
EOF
|
||||
chmod 0755 ${D}${bindir}/7z
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user