Bug 1775955

Summary: texlive-2019: no longer able to use newtxmath + xcharter (cannot find encoding file)
Product: [Fedora] Fedora Reporter: Christoph Erhardt <fedora>
Component: texliveAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: tcallawa, than
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: texlive-2019-9.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-06 05:44:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Minimal example none

Description Christoph Erhardt 2019-11-23 23:24:06 UTC
Created attachment 1639075 [details]
Minimal example

Description of problem:
When I try to use XCharter as maths font (set with the help of the newtxmath package), my LaTeX document fails to build.

Version-Release number of selected component (if applicable):
2019

How reproducible:
Always. This used to work with TeX Live 2018 on Fedora 31, before the 2019 update was pushed.

Steps to Reproduce:
1. Download the attached minimal example (test.tex).
2. Run in a terminal: lualatex test.tex

Actual results:
! error:  (type 1): cannot find encoding file 'xch_tuu2ww.enc' for reading
!  ==> Fatal error occurred, no output PDF file produced!

Expected results:
LuaLaTeX should run without error and should produce a PDF file.

Additional info:
The error occurs regardless of whether I call lualatex, xelatex or pdflatex.

Since I'm not familiar with how font encoding works in TeX, I'm not sure what the root cause is here. Apparently, a required encoding file is missing:
$ find /usr/share/texlive -iname '*tuu2ww*'
(no output)

But that encoding string is still referenced in the installation:
$ rg -l tuu2ww /usr/share/texlive 
/usr/share/texlive/texlive.tlpdb
/usr/share/texlive/texmf-dist/fonts/map/pdftex/updmap/pdftex.map
/usr/share/texlive/texmf-dist/fonts/map/pdftex/updmap/pdftex_ndl14.map
/usr/share/texlive/texmf-dist/fonts/map/pdftex/updmap/pdftex_dl14.map
/usr/share/texlive/texmf-dist/fonts/map/dvips/updmap/psfonts.map
/usr/share/texlive/texmf-dist/fonts/map/dvips/updmap/psfonts_t1.map
/usr/share/texlive/texmf-dist/fonts/map/dvips/updmap/psfonts_pk.map
/usr/share/texlive/texmf-dist/fonts/map/dvips/updmap/ps2pk.map

Note that RPM offers contradictory claims about the contents and capabilities of the texlive-xcharter package:
$ rpm -ql texlive-xcharter | grep -i tuu2ww
(no output)
$ rpm -q --provides texlive-xcharter | grep tuu2ww
tex(xch_tuu2ww.enc) = 2019

Comment 1 Christoph Erhardt 2019-12-02 08:58:58 UTC
The font maps provided by texlive-updmap-map do not match the font files provided by texlive-xcharter.

We need at least texlive-updmap-map-svn52078. See the following diff in the upstream repository:
https://tug.org/svn/texlive/trunk/Master/texmf-dist/fonts/map/pdftex/updmap/pdftex.map?r1=51762&r2=52078

Comment 2 Tom "spot" Callaway 2019-12-02 18:51:35 UTC
Good catch. A fixed build with newer updmap-map (and proper xcharter provides) is building now, will push as an f31 update as soon as it finishes.

Comment 3 Fedora Update System 2019-12-02 22:14:24 UTC
FEDORA-2019-a0ceb6f9a9 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-a0ceb6f9a9

Comment 4 Fedora Update System 2019-12-03 13:48:34 UTC
FEDORA-2019-875c14f512 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-875c14f512

Comment 5 Fedora Update System 2019-12-04 02:20:30 UTC
texlive-2019-9.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-875c14f512

Comment 6 Fedora Update System 2019-12-06 05:44:57 UTC
texlive-2019-9.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.