]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gawk: Remove References to /usr/local/bin/gawk
authorKhem Raj <raj.khem@gmail.com>
Fri, 14 Jun 2024 19:03:22 +0000 (12:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Jun 2024 07:41:55 +0000 (08:41 +0100)
Also replace the hashbangs using /bin/gawk to use
${bindir}/gawk

This fixes issues such as
https://github.com/riscv/meta-riscv/issues/384

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/gawk/gawk_5.3.0.bb

index e94cf19db483d087881f3570bd0d35388d1378c8..ac9d8500d609357e6100fa53e78652e63e4be5d2 100644 (file)
@@ -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