Ah, I see this in the current `ghc` portfile. No doubt the solution: # fix DejaVu texlive fonts names, e.g. "\setmonofont{DejaVu Sans Mono}" foreach f "\ ${srcpath}/${distname}/libraries/Cabal/Cabal/doc/conf.py \ ${srcpath}/${distname}/docs/users_guide/conf.py \ " { reinplace -E "s|(\{DejaVu\[\[:alnum:\]_\]*)\[\[:space:\]\]+|\\1|g" \ ${f} reinplace -E "s|(\{DejaVu\[\[:alnum:\]_\]*)\[\[:space:\]\]+|\\1|g" \ ${f} reinplace -E "s|\{(DejaVu\[\[:alnum:\]_\]*)\}|\{\\1.ttf\}|g" \ ${f} }
Ken On 2019-09-12, at 4:32 PM, Ken Cunningham wrote: > I'm working on making a newer bootstrap version of ghc for SnowLeopard. > > The ghc 8.0.1 build finishes on 10.6.8, but it wants to build the PDF > documentation next, and texlive is erroring building the PDF. > > I know nothing about texlive. I know I might turn off the docs, but -- it > took many hours to build ghc, and I would like to fix texlive. > > The ghc 8.0.1 build uses -- sphinx I believe, to process this bit of python: > > ======== > # -- Options for LaTeX output --------------------------------------------- > > latex_elements = { > 'inputenc': '', > 'utf8extra': '', > 'preamble': ''' > \usepackage{fontspec} > \usepackage{makeidx} > \setsansfont{DejaVu Sans} > \setromanfont{DejaVu Serif} > \setmonofont{DejaVu Sans Mono} > ''', > } > ========= > > and that generates this bit in the generated tex file: > > ====== > \usepackage{fontspec} > \usepackage{makeidx} > \setsansfont{DejaVuSans} > \setromanfont{DejaVuSerif} > \setmonofont{DejaVuSansMono} > > > \title{GHC Users Guide Documentation} > \date{Sep 12, 2019} > \release{8.0.2} > ======== > > and that causes this error when building: > > ======= > (/opt/local/share/texmf-texlive/tex/latex/base/tuenc.def)) > (/opt/local/share/texmf-texlive/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex: > Invalid filename `DejaVu Sans', contains ' ' > > > ! Package fontspec Error: The font "DejaVu Sans" cannot be found. > > ====== > > > clearly it can't find DejaVu Sans, but I have lots of texlive fonts > installed, and also dejavu-fonts: > > ===== > $ port -v installed | grep deja | grep active > dejavu-fonts @2.37_0 (active) platform='darwin 10' archs='noarch' > date='2016-08-29T06:45:53-0700' > > $ port -v installed | grep texlive | grep active > lcdf-typetools @2.108_0+texlive (active) platform='darwin 10' archs='x86_64' > date='2019-07-13T14:22:52-0700' > texlive @2019_0+doc+medium (active) platform='darwin 10' archs='noarch' > date='2019-07-13T14:36:06-0700' > texlive-basic @50893_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-05-26T19:51:28-0700' > texlive-bin @2019.50896_0+x11 (active) platform='darwin 10' archs='x86_64' > date='2019-05-26T19:49:09-0700' > texlive-bin-extra @50853_1+doc (active) platform='darwin 10' archs='noarch' > date='2019-06-23T22:01:01-0700' > texlive-common @2019_0 (active) platform='darwin 10' archs='noarch' > date='2019-05-26T18:34:12-0700' > texlive-context @50709_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-07-13T14:20:39-0700' > texlive-fonts-extra @50876_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-05-26T19:59:40-0700' > texlive-fonts-recommended @49603_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-05-26T20:26:08-0700' > texlive-fontutils @50695_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-07-13T14:22:56-0700' > texlive-formats-extra @50700_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-05-26T20:28:15-0700' > texlive-lang-cyrillic @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:36:28-0700' > texlive-lang-czechslovak @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:23:19-0700' > texlive-lang-english @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:25:24-0700' > texlive-lang-european @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:26:43-0700' > texlive-lang-french @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:28:17-0700' > texlive-lang-german @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:29:54-0700' > texlive-lang-italian @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:31:15-0700' > texlive-lang-polish @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:32:16-0700' > texlive-lang-portuguese @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:33:36-0700' > texlive-lang-spanish @50792_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-07-13T14:34:39-0700' > texlive-latex @50741_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-05-26T20:27:30-0700' > texlive-latex-extra @50885_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-05-26T20:37:39-0700' > texlive-latex-recommended @50818_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-05-26T20:29:34-0700' > texlive-luatex @50816_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-07-13T14:35:46-0700' > texlive-math-science @50760_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-05-26T20:40:26-0700' > texlive-metapost @50602_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-07-13T14:18:42-0700' > texlive-pictures @50872_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-05-26T20:31:31-0700' > texlive-plain-generic @50884_0+doc (active) platform='darwin 10' > archs='noarch' date='2019-05-26T20:41:21-0700' > texlive-xetex @50852_0+doc (active) platform='darwin 10' archs='noarch' > date='2019-07-13T14:19:10-0700' > ======= > > A hour on Google and various attempts at tex plugging have not helped. > > Any help from someone who knows the (hopefully simple) error I'm having here > is much appreciated! > > Best, > > Ken > > >