]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
texinfo: fix texindex awk path on target
authorZhang Peng <peng.zhang1.cn@windriver.com>
Thu, 26 Mar 2026 12:22:30 +0000 (20:22 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2026 08:45:44 +0000 (09:45 +0100)
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 <peng.zhang1.cn@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/texinfo/texinfo_7.3.bb

index dbf47a79caada54ef79c38c79bf9a40b89585053..fae4e510b451a7b3ff16e4f2c0f3c860265fa8cb 100644 (file)
@@ -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() {