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: 84b2ead1b6536ead19efc0faee3e09ab0867b666)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
kraj authored and rpurdie committed Jun 16, 2024
1 parent 0feed57 commit fff49fa
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 fff49fa

Please sign in to comment.