From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3141 invoked by alias); 17 Dec 2014 22:18:34 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 3130 invoked by uid 89); 17 Dec 2014 22:18:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.2 required=5.0 tests=AWL,BAYES_00,EXCEL_ATTACHED,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: limerock03.mail.cornell.edu Received: from limerock03.mail.cornell.edu (HELO limerock03.mail.cornell.edu) (128.84.13.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Dec 2014 22:18:32 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id sBHMIUVL022386 for ; Wed, 17 Dec 2014 17:18:30 -0500 Received: from [192.168.1.3] (cpe-67-249-176-138.twcny.res.rr.com [67.249.176.138]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id sBHMITqR012990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 17 Dec 2014 17:18:29 -0500 Message-ID: <54920139.1030605@cornell.edu> Date: Wed, 17 Dec 2014 22:18:00 -0000 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: cygwin-apps@cygwin.com Subject: Re: cygport patches for TeX Live References: <5490B70E.2040903@cornell.edu> <5490BB84.2020506@cornell.edu> In-Reply-To: <5490BB84.2020506@cornell.edu> Content-Type: multipart/mixed; boundary="------------080701020905000802080908" X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00150.txt.bz2 This is a multi-part message in MIME format. --------------080701020905000802080908 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-length: 399 On 12/16/2014 6:08 PM, Ken Brown wrote: > Sorry, there was a stupid mistake in one of the patches. The corrected > one is attached. This is embarrassing, but there was a mistake in a second patch also. I'm reattaching the complete set of cygport patches, corrected. I had made some minor changes after testing, and foolishly didn't bother testing again before sending the patches. Sorry Ken --------------080701020905000802080908 Content-Type: text/plain; charset=windows-1252; name="0001-prep_texlive-remove-references-to-usr-share-texmf.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-prep_texlive-remove-references-to-usr-share-texmf.patch" Content-length: 1098 >From 9cb676f9e1e062f49d1364e7e60d8eb44be78907 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Tue, 25 Nov 2014 09:27:52 -0500 Subject: [PATCH 1/4] prep_texlive: remove references to /usr/share/texmf This is no longer used as of TeX Live 2013. --- lib/src_postinst.cygpart | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart index 9963b63..03311b9 100644 --- a/lib/src_postinst.cygpart +++ b/lib/src_postinst.cygpart @@ -371,7 +371,7 @@ __prep_texlive() { _EOF fi - for d in /usr/share/texmf{-dist,}/fonts/{opentype,truetype,type1} + for d in /usr/share/texmf-dist/fonts/{opentype,truetype,type1} do if [ -d ${D}${d} ] then @@ -655,14 +655,10 @@ __prepetc() { __prep_freedesktop_mime || error "Shared Mime Info postinstall failed" fi - for d in /usr/share/texmf{,-dist} - do - if [ -d ${D}${d} ] - then - __prep_texlive - break - fi - done + if [ -d /usr/share/texmf-dist ] + then + __prep_texlive + fi if [ -d ${D}/usr/share/xsessions ] then -- 2.1.1 --------------080701020905000802080908 Content-Type: text/plain; charset=windows-1252; name="0002-prep_texlive-remove-calls-to-mktexlsr.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0002-prep_texlive-remove-calls-to-mktexlsr.patch" Content-length: 1477 >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 --------------080701020905000802080908 Content-Type: text/plain; charset=windows-1252; name="0003-prep_texlive-remove-calls-to-fc-cache.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0003-prep_texlive-remove-calls-to-fc-cache.patch" Content-length: 849 >From 5a2d076c5b55014342104d5327b80b62b9cf6f06 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Wed, 26 Nov 2014 07:53:29 -0500 Subject: [PATCH 3/4] prep_texlive: remove calls to fc-cache Instead, create a file in /etc/texmf/postinstall listing the font directories on which fc-cache should be run by a perpetual postinstall script. --- lib/src_postinst.cygpart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart index 9e4a910..a486d44 100644 --- a/lib/src_postinst.cygpart +++ b/lib/src_postinst.cygpart @@ -369,8 +369,8 @@ __prep_texlive() { do if [ -d ${D}${d} ] then - cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF - /usr/bin/fc-cache -f $d + cat >> ${D}/etc/texmf/postinstall/${PN}.fc <<-_EOF + ${d} _EOF fi done -- 2.1.1 --------------080701020905000802080908 Content-Type: text/plain; charset=windows-1252; name="0004-prep_texlive-group-enable-disable-commands-in-calls-.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0004-prep_texlive-group-enable-disable-commands-in-calls-.pa"; filename*1="tch" Content-length: 1587 >From 547c70536ad878aa04b77b97cf7b4e7d8db758da Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Fri, 28 Nov 2014 10:47:49 -0500 Subject: [PATCH 4/4] prep_texlive: group enable/disable commands in calls to updmap In postinstall scripts we remove the updmap calls completely and instead create a file of commands in /etc/texmf/postinstall, to be run by a perpetual postinstall script. In preremove scripts we just group the commands into a single call to updmap, since setup.exe doesn't yet support perpetual preremove scripts. --- lib/src_postinst.cygpart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart index a486d44..0fb3a48 100644 --- a/lib/src_postinst.cygpart +++ b/lib/src_postinst.cygpart @@ -337,19 +337,19 @@ __prep_texlive() { if [ -n "${maps#0}" ] then + cat >> ${D}/etc/preremove/${PN}.sh <<-_EOF + /usr/bin/updmap-sys --nohash --nomkmap \\ + _EOF for map in $maps do - cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF - /usr/bin/updmap-sys --nohash --nomkmap --enable $map - _EOF cat >> ${D}/etc/preremove/${PN}.sh <<-_EOF - /usr/bin/updmap-sys --nohash --nomkmap --disable ${map#*=} + --disable ${map#*=} \\ + _EOF + cat >> ${D}/etc/texmf/postinstall/${PN}.map <<-_EOF + --enable $map _EOF done - cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF - /usr/bin/updmap-sys --nohash --syncwithtrees - /usr/bin/updmap-sys --nohash - _EOF + echo >> ${D}/etc/preremove/${PN}.sh fi if [ -n "${fmts#0}" ] then -- 2.1.1 --------------080701020905000802080908--