* cygport patch for texlive
@ 2016-06-06 17:11 Ken Brown
2016-06-07 22:41 ` Yaakov Selkowitz
0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2016-06-06 17:11 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1: Type: text/plain, Size: 98 bytes --]
The attached patch, which I think is self-explanatory, was used for
building TeX Live 2016.
Ken
[-- Attachment #2: 0001-texlive-support-generation-of-language-files.patch --]
[-- Type: text/plain, Size: 2860 bytes --]
From e75531985e354eb8d98eac8dd842b1fbed548533 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Mon, 2 May 2016 09:22:32 -0400
Subject: [PATCH] texlive: support generation of language files
Up to now, language files have not been updated to reflect the
languages available in a TeX Live installation. As a result, format
generation can fail due to missing hyphenation files. This commit
provides the support needed by the texlive perpetual postinstall
scripts to keep the language files up to date.
---
cygclass/texlive.cygclass | 10 +++++++++-
lib/src_postinst.cygpart | 23 ++++++++++++++++++++++-
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/cygclass/texlive.cygclass b/cygclass/texlive.cygclass
index b8a06d5..ce247e4 100644
--- a/cygclass/texlive.cygclass
+++ b/cygclass/texlive.cygclass
@@ -137,10 +137,11 @@ ARCH=noarch
# queues the necessary postinstall steps.
#****
texlive_install() {
- local f pkg pkgs tlpobj dst src fmt map perm
+ local f pkg pkgs tlpobj dst src fmt map perm lang
__config_set texlive_fmts
__config_set texlive_maps
+ __config_set texlive_langs
for pkg in ${TEXLIVE_TEXMF_PKGS//,/ }
do
@@ -223,6 +224,13 @@ texlive_install() {
do
__config_set texlive_maps "$(__config_get texlive_maps) $map"
done
+
+ for lang in $(grep -E 'execute AddHyphen' $tlpobj \
+ | sed 's/.*[ \t]name=\([^ \t]*\).*/\1/')
+ do
+ __config_set texlive_langs "$(__config_get texlive_langs) $lang"
+ done
+
done
}
diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart
index 10d4174..b607ea0 100644
--- a/lib/src_postinst.cygpart
+++ b/lib/src_postinst.cygpart
@@ -228,7 +228,7 @@ __prep_gtk_icon_theme() {
#****
__prep_texlive() {
- local fmt fmts format formats map maps tlp tlps
+ local fmt fmts format formats map maps tlp tlps lang langs
local markerdir=/var/lib/texmf/postinstall
dodir /etc/postinstall /etc/preremove ${markerdir}
@@ -240,6 +240,7 @@ __prep_texlive() {
fmts=$(__config_get texlive_fmts)
maps=$(__config_get texlive_maps)
+ langs=$(__config_get texlive_langs)
if [ -n "${maps#0}" ]
then
@@ -274,12 +275,32 @@ __prep_texlive() {
/usr/bin/fmtutil-sys --disablefmt $fmt
_EOF
done
+ cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF
+ if [ ! -f ${markerdir}/texlive.rebuild_all_fmts ]
+ then
+ _EOF
for format in $formats
do
cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF
/usr/bin/fmtutil-sys --byfmt ${format}
_EOF
done
+ cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF
+ fi
+ _EOF
+ fi
+
+ if [ -n "${langs#0}" ]
+ then
+ cat >> ${D}/etc/preremove/${PN}.sh <<-_EOF
+ /usr/bin/touch ${markerdir}/${PN}_rm.lang
+ _EOF
+ for lang in $langs
+ do
+ cat >> ${D}${markerdir}/${PN}.lang <<-_EOF
+ $lang
+ _EOF
+ done
fi
if [ -d ${D}/usr/share/tlpkg/tlpobj ]
--
2.8.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cygport patch for texlive
2016-06-06 17:11 cygport patch for texlive Ken Brown
@ 2016-06-07 22:41 ` Yaakov Selkowitz
0 siblings, 0 replies; 4+ messages in thread
From: Yaakov Selkowitz @ 2016-06-07 22:41 UTC (permalink / raw)
To: cygwin-apps
On 2016-06-06 12:11, Ken Brown wrote:
> [PATCH] texlive: support generation of language files
>
> Up to now, language files have not been updated to reflect the
> languages available in a TeX Live installation. As a result, format
> generation can fail due to missing hyphenation files. This commit
> provides the support needed by the texlive perpetual postinstall
> scripts to keep the language files up to date.
Thanks; merged.
--
Yaakov
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cygport patch for texlive
2016-05-01 21:43 Ken Brown
@ 2016-05-02 3:10 ` Yaakov Selkowitz
0 siblings, 0 replies; 4+ messages in thread
From: Yaakov Selkowitz @ 2016-05-02 3:10 UTC (permalink / raw)
To: cygwin-apps
On 2016-05-01 16:43, Ken Brown wrote:
> 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.
Merged and pushed.
--
Yaakov
^ permalink raw reply [flat|nested] 4+ messages in thread
* cygport patch for texlive
@ 2016-05-01 21:43 Ken Brown
2016-05-02 3:10 ` Yaakov Selkowitz
0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2016-05-01 21:43 UTC (permalink / raw)
To: cygwin-apps
[-- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-07 22:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-06 17:11 cygport patch for texlive Ken Brown
2016-06-07 22:41 ` Yaakov Selkowitz
-- strict thread matches above, loose matches on Subject: below --
2016-05-01 21:43 Ken Brown
2016-05-02 3:10 ` Yaakov Selkowitz
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).