From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps <cygwin-apps@cygwin.com>
Subject: cygport patch for texlive
Date: Sun, 01 May 2016 21:43:00 -0000 [thread overview]
Message-ID: <5726789D.8060000@cornell.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
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
[-- Attachment #2: 0001-texlive-trigger-running-of-mktexlsr-after-package-re.patch --]
[-- Type: text/plain, Size: 761 bytes --]
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
next reply other threads:[~2016-05-01 21:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-01 21:43 Ken Brown [this message]
2016-05-02 3:10 ` Yaakov Selkowitz
2016-06-06 17:11 Ken Brown
2016-06-07 22:41 ` Yaakov Selkowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5726789D.8060000@cornell.edu \
--to=kbrown@cornell.edu \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).