diff options
author | Jonathan Liu <net147@gmail.com> | 2016-09-23 12:39:24 +1000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-10-03 19:18:51 +0200 |
commit | 67d6ed40bfeb219490e509f33c27ebd2a1149d30 (patch) | |
tree | 20b9532b9e5871549db4adea95e316552ea58e59 | |
parent | 93d85f6999d1d4eb8c5183c0ecb03c94253c8f71 (diff) | |
download | meta-openembedded-67d6ed40bfeb219490e509f33c27ebd2a1149d30.tar.gz |
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>
-rw-r--r-- | meta-oe/recipes-extended/p7zip/p7zip_16.02.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/p7zip/p7zip_16.02.bb b/meta-oe/recipes-extended/p7zip/p7zip_16.02.bb index 9f87e9fa98..fdd51db218 100644 --- a/meta-oe/recipes-extended/p7zip/p7zip_16.02.bb +++ b/meta-oe/recipes-extended/p7zip/p7zip_16.02.bb | |||
@@ -29,8 +29,10 @@ do_install_class-native() { | |||
29 | 29 | ||
30 | # Create a shell script wrapper to execute next to 7z.so | 30 | # Create a shell script wrapper to execute next to 7z.so |
31 | mv ${D}${bindir}/7z ${D}${bindir}/7z.bin | 31 | mv ${D}${bindir}/7z ${D}${bindir}/7z.bin |
32 | echo "#! /bin/sh" > ${D}${bindir}/7z | 32 | cat > ${D}${bindir}/7z << 'EOF' |
33 | echo "exec ${D}${bindir}/7z.bin \"\$@\"" >> ${D}${bindir}/7z | 33 | #!/bin/sh |
34 | exec "$(dirname "$0")"/7z.bin "$@" | ||
35 | EOF | ||
34 | chmod 0755 ${D}${bindir}/7z | 36 | chmod 0755 ${D}${bindir}/7z |
35 | } | 37 | } |
36 | 38 | ||