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 <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
  • Loading branch information
kraj authored and alexandrebelloni committed Jun 15, 2024
1 parent 74c7b13 commit 0468776
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 0468776

Please sign in to comment.