From: Zhang Peng <[email protected]>

The sed command in do_install strips ${HOSTTOOLS_DIR} from the awk
path in texindex, but misses the trailing slash, turning
"${HOSTTOOLS_DIR}/awk" into "/awk" instead of "awk".

This causes a runtime error on target:
  /bin/texindex: line 116: /awk: No such file or directory

Add the trailing slash to the sed pattern so the result is the bare
"awk" command, resolved via $PATH at runtime.

Signed-off-by: Zhang Peng <[email protected]>
---
 meta/recipes-extended/texinfo/texinfo_7.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/texinfo/texinfo_7.3.bb 
b/meta/recipes-extended/texinfo/texinfo_7.3.bb
index dbf47a79ca..fae4e510b4 100644
--- a/meta/recipes-extended/texinfo/texinfo_7.3.bb
+++ b/meta/recipes-extended/texinfo/texinfo_7.3.bb
@@ -61,7 +61,7 @@ do_install:append() {
        install -p -m644 ${S}/doc/texinfo.tex ${S}/doc/txi-??.tex 
${D}${datadir}/${tex_texinfo}
        sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' 
${D}${bindir}/texi2any ${D}${bindir}/pod2texi
        sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' 
${D}${datadir}/texi2any/load_txi_modules
-       sed -i -e 's,${HOSTTOOLS_DIR},,' ${D}${bindir}/texindex
+       sed -i -e 's,${HOSTTOOLS_DIR}/,,' ${D}${bindir}/texindex
 }
 
 do_install:append:class-native() {
-- 
2.50.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#233981): 
https://lists.openembedded.org/g/openembedded-core/message/233981
Mute This Topic: https://lists.openembedded.org/mt/118517071/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to