>From 83b5ab484f9fe5e2550f6851cfa074d730d4b8bb Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Wed, 26 Nov 2014 07:35:13 -0500 Subject: [PATCH 2/4] prep_texlive: remove calls to mktexlsr Instead create a marker file in /etc/texmf/postinstall indicating that mktexlsr should be run by a perpetual postinstall script. --- lib/src_postinst.cygpart | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart index 03311b9..9e4a910 100644 --- a/lib/src_postinst.cygpart +++ b/lib/src_postinst.cygpart @@ -328,11 +328,9 @@ __prep_mateconf_schemas() { __prep_texlive() { local d fmt fmts map maps - dodir /etc/postinstall /etc/preremove + dodir /etc/postinstall /etc/preremove /etc/texmf/postinstall - cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF - /usr/bin/mktexlsr - _EOF + touch ${D}/etc/texmf/postinstall/${PN}.lsr fmts=$(__config_get texlive_fmts) maps=$(__config_get texlive_maps) @@ -351,7 +349,6 @@ __prep_texlive() { cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF /usr/bin/updmap-sys --nohash --syncwithtrees /usr/bin/updmap-sys --nohash - /usr/bin/mktexlsr _EOF fi if [ -n "${fmts#0}" ] @@ -366,9 +363,6 @@ __prep_texlive() { /usr/bin/fmtutil-sys --disablefmt $fmt _EOF done - cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF - /usr/bin/mktexlsr - _EOF fi for d in /usr/share/texmf-dist/fonts/{opentype,truetype,type1} -- 2.1.1