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>
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() {