In texinfo, we didn't have info/dir entries, which caused info not work. ... root@qemux86:~# info info info: dir: No such file or directory ...
Refer ubuntu/debian to invoke install-info to create info/dir entries in pkg_postinst_info. [YOCTO #6751] Signed-off-by: Hongxu Jia <[email protected]> --- meta/recipes-extended/texinfo/texinfo_5.2.bb | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/meta/recipes-extended/texinfo/texinfo_5.2.bb b/meta/recipes-extended/texinfo/texinfo_5.2.bb index 7b5a11a..cdcb37b 100644 --- a/meta/recipes-extended/texinfo/texinfo_5.2.bb +++ b/meta/recipes-extended/texinfo/texinfo_5.2.bb @@ -61,4 +61,57 @@ FILES_${PN}-doc = "${infodir}/texinfo* \ ${datadir}/${tex_texinfo} \ ${mandir}/man1 ${mandir}/man5" +pkg_postinst_info () { +if [ "x$D" != "x" ]; then + $INTERCEPT_DIR/postinst_intercept update_info_dir ${PKG} \ + mlprefix=${MLPREFIX} infodir=${infodir} STAGING_BINDIR_NATIVE=${STAGING_BINDIR_NATIVE} +else + errors=0 + find "${infodir}" -type f | while read file ; do + case $file in + */dir| */dir.old| \ + *-[0-9]|*-[0-9].gz|*-[0-9].xz|*-[0-9].bz2| \ + *-[1-9][0-9]|*-[1-9][0-9].gz|*-[1-9][0-9].xz|*-[1-9][0-9].bz2| \ + *.png) + # these files are ignored + continue + ;; + *) + install-info "$file" "${infodir}/dir" || { + errors=$[errors+1] + } + ;; + esac + done + if [ $errors -gt 0 ] ; then + echo "Updating the index of info documentation produced $errors errors." + exit 1 + fi +fi +} + +pkg_prerm_info () { +errors=0 +find "$D${infodir}" -type f | while read file ; do + case $file in + */dir|*/dir.old| \ + *-[0-9]|*-[0-9].gz|*-[0-9].xz|*-[0-9].bz2| \ + *-[1-9][0-9]|*-[1-9][0-9].gz|*-[1-9][0-9].xz|*-[1-9][0-9].bz2| \ + *.png) + # these files are ignored + continue + ;; + *) + install-info --delete "$file" "$D${infodir}/dir" || { + errors=$[errors+1] + } + ;; + esac +done + +if [ $errors -gt 0 ] ; then + echo "Cleaning the index of info documentation produced $errors errors." +fi +} + BBCLASSEXTEND = "native" -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
