cygport patch for texlive

Ken Brown kbrown@cornell.edu
Sun May 1 21:43:00 GMT 2016


Currently if a user uninstalls a texlive-collection-* package without installing 
one on the same run of setup, mktexlsr is not run and the ls-R databases are out 
of date.  The attached patch fixes this.

Ken
-------------- next part --------------
From fb4863be57c0888022a22def79035495cd0a3545 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Sun, 1 May 2016 17:23:17 -0400
Subject: [PATCH] texlive: trigger running of mktexlsr after package removal

---
 lib/src_postinst.cygpart | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart
index 8a68cb0..10d4174 100644
--- a/lib/src_postinst.cygpart
+++ b/lib/src_postinst.cygpart
@@ -234,6 +234,9 @@ __prep_texlive() {
 	dodir /etc/postinstall /etc/preremove ${markerdir}
 
 	touch ${D}${markerdir}/${PN}.lsr
+	cat >> ${D}/etc/preremove/${PN}.sh <<-_EOF
+		/usr/bin/touch ${markerdir}/${PN}_rm.lsr
+	_EOF
 
 	fmts=$(__config_get texlive_fmts)
 	maps=$(__config_get texlive_maps)
-- 
2.8.0



More information about the Cygwin-apps mailing list