Skip to content

Commit

Permalink
gawk: Remove References to /usr/local/bin/gawk
Browse files Browse the repository at this point in the history
Also replace the hashbangs using /bin/gawk to use
${bindir}/gawk

This fixes issues such as
riscv/meta-riscv#384

(From OE-Core rev: 64ae7492c69599019ef2bec62a834335539908ef)

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
(cherry picked from commit 9f58ad97f6587322b716de1c9dc409bb4e1376f0)
Signed-off-by: Steve Sakoman <[email protected]>
  • Loading branch information
kraj authored and sakoman committed Aug 1, 2024
1 parent 82d0777 commit 50cd98a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meta/recipes-extended/gawk/gawk_5.3.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ do_install_ptest() {
cp ${S}/test/$i* ${D}${PTEST_PATH}/test
done
sed -i \
-e 's|#! /bin/gawk|#! ${bindir}/gawk|g' \
-e 's|#! /usr/local/bin/gawk|#! ${bindir}/gawk|g' \
-e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk

sed -i -e "s|GAWKLOCALE|LANG|g" ${D}${PTEST_PATH}/test/Maketests
Expand Down

0 comments on commit 50cd98a

Please sign in to comment.