This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygport: How to suppress automatic postinstall script additions


On 3/6/2012 12:40 PM, Ken Brown wrote:
On 3/6/2012 7:28 AM, Ken Brown wrote:
On 3/5/2012 5:50 PM, Ken Brown wrote:
On 3/5/2012 4:23 PM, Yaakov (Cygwin/X) wrote:
On Mon, 2012-03-05 at 12:59 -0500, Ken Brown wrote:
On 3/5/2012 12:32 PM, Yaakov (Cygwin/X) wrote:
OK, here's the fix:

1) Install cygport-0.10.8.1-1 (released just moments ago).

2) Bump collection-basic to $today and build it with newly-downloaded
sources.

3) Bump collection-langcjk to $today, add 'jfontmaps' to ARCH_PKGS,
and
build with newly-downloaded sources.

After installing the new collection-basic with the new postinstall
script, the aforementioned xetex test works.

In your new postinstall script, I wonder if it would be better to delete /etc/texmf/web2c/updmap.cfg rather than editing it. The reason is that the master updmap.cfg in /usr/share/texmf/web2c may have changed due to the addition or deletion of TL packages containing fonts, and I don't think these changes get propagated to /etc/texmf/web2c/updmap.cfg.

The problem with that is any settings in TEXMFSYSCONFIG/web2c/updmap.cfg would be lost. What about the attached patch for cygport?

I won't have a chance to test it until tomorrow, but it looks good at first glance. One question: I don't see where you take account of fonts that might have been deleted. Shouldn't updmap-sys --syncwithtrees be run on every postinstall to catch these?

I think it would be enough for texlive-collection-basic to have a custom postinsall.sh that does this. There's no reason it has to be repeated by every texlive-collection-* package.

Forget this last suggestion. I think the attached patch to src_postinstall.cygpart does the right thing.

I've tested the patch in my previous email pretty extensively, and I'm pretty sure it's OK except for one detail: The call to `/usr/bin/updmap-sys --nomkmap --enable $map' in the postinstall scripts should use the --nohash option. I'm attaching a revised patch that does this.


The following 19 packages need to be updated (because they need to enable maps):

texlive-collection-basic
texlive-collection-context
texlive-collection-fontsextra
texlive-collection-fontsrecommended
texlive-collection-games
texlive-collection-langarabic
texlive-collection-langcjk
texlive-collection-langcyrillic
texlive-collection-langczechslovak
texlive-collection-langfrench
texlive-collection-langgreek
texlive-collection-langhebrew
texlive-collection-langindic
texlive-collection-langlithuanian
texlive-collection-langmongolian
texlive-collection-langpolish
texlive-collection-langvietnamese
texlive-collection-latex
texlive-collection-latexextra

I've rebuilt all of them and installed/uninstalled them in various combinations and couldn't find any problems involving fonts.

Before I update them in the distro, there's one other thing I thought of that the TeX Live postinstall scripts should be doing. Shouldn't they call fc-cache whenever fonts are installed into usr/share/texmf-dist/fonts/opentype, usr/share/texmf-dist/fonts/truetype, or usr/share/texmf-dist/fonts/type1?

Ken

Attachment: src_postinst.patch
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]