[oe-commits] [openembedded-core] 57/61: gawk: fix command location in ptest script

git at git.openembedded.org git at git.openembedded.org
Tue May 29 10:44:24 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 6c43eaad06320d258dc49af28cd4c240f001f561
Author: Li Wang <li.wang at windriver.com>
AuthorDate: Fri May 25 10:48:13 2018 +0800

    gawk: fix command location in ptest script
    
    * Correct the command location in ptest scripts such as
      update the line "#!/bin/awk -f" to "#!/usr/bin/awk -f" in the
      file /usr/lib64/gawk/ptest/test/fcall_exit2.awk belongs
      to package gawk-ptest and the line "#!/usr/local/bin/gawk -f"
      to "#!/usr/bin/gawk -f" in the file
      /usr/lib64/gawk/ptest/test/fnarydel.awk
    
    Signed-off-by: Li Wang <li.wang at windriver.com>
    Signed-off-by: Mingli Yu <Mingli.Yu at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-extended/gawk/gawk_4.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-extended/gawk/gawk_4.2.1.bb b/meta/recipes-extended/gawk/gawk_4.2.1.bb
index 6b99357..9663752 100644
--- a/meta/recipes-extended/gawk/gawk_4.2.1.bb
+++ b/meta/recipes-extended/gawk/gawk_4.2.1.bb
@@ -43,6 +43,8 @@ do_install_ptest() {
 	for i in `grep -vE "@|^$|#|Gt-dummy" ${S}/test/Maketests |awk -F: '{print $1}'` Maketests inclib.awk; \
 	  do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \
 	done
+	sed -i -e 's|/usr/local/bin|${bindir}|g' \
+	    -e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk
 }
 
 BBCLASSEXTEND = "native nativesdk"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list