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: 3905f9beabdd219e0ec902db785cb8866f63279d)

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
  • Loading branch information
kraj committed Jun 16, 2024
1 parent 0db9bf5 commit b7d7d6a
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 b7d7d6a

Please sign in to comment.