<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ah, I see this in the current `ghc` portfile. No doubt the solution:</div><div><br></div><div><table class="highlight tab-size js-file-line-container" data-tab-size="8"><tbody><tr><td id="LC183" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">#</span> fix DejaVu texlive fonts names, e.g. "\setmonofont{DejaVu Sans Mono}"</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="highlight tab-size js-file-line-container" data-tab-size="8"><tbody><tr></tr><tr>
        <td id="LC184" class="blob-code blob-code-inner js-file-line">        <span class="pl-k">foreach</span> f <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\</span></span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC185" class="blob-code blob-code-inner js-file-line"><span class="pl-s">            <span class="pl-smi">${srcpath}</span>/<span class="pl-smi">${distname}</span>/libraries/Cabal/Cabal/doc/conf.py <span class="pl-cce">\</span></span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC186" class="blob-code blob-code-inner js-file-line"><span class="pl-s">            <span class="pl-smi">${srcpath}</span>/<span class="pl-smi">${distname}</span>/docs/users_guide/conf.py <span class="pl-cce">\</span></span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC187" class="blob-code blob-code-inner js-file-line"><span class="pl-s">            <span class="pl-pds">"</span></span> {</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC188" class="blob-code blob-code-inner js-file-line">            reinplace -E <span class="pl-s"><span class="pl-pds">"</span>s|(<span class="pl-cce">\{</span>DejaVu<span class="pl-cce">\[\[</span>:alnum:<span class="pl-cce">\]</span>_<span class="pl-cce">\]</span>*)<span class="pl-cce">\[\[</span>:space:<span class="pl-cce">\]\]</span>+|<span class="pl-cce">\\</span>1|g<span class="pl-pds">"</span></span> <span class="pl-cce">\</span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC189" class="blob-code blob-code-inner js-file-line">                <span class="pl-smi">${f}</span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC190" class="blob-code blob-code-inner js-file-line">            reinplace -E <span class="pl-s"><span class="pl-pds">"</span>s|(<span class="pl-cce">\{</span>DejaVu<span class="pl-cce">\[\[</span>:alnum:<span class="pl-cce">\]</span>_<span class="pl-cce">\]</span>*)<span class="pl-cce">\[\[</span>:space:<span class="pl-cce">\]\]</span>+|<span class="pl-cce">\\</span>1|g<span class="pl-pds">"</span></span> <span class="pl-cce">\</span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC191" class="blob-code blob-code-inner js-file-line">                <span class="pl-smi">${f}</span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC192" class="blob-code blob-code-inner js-file-line">            reinplace -E <span class="pl-s"><span class="pl-pds">"</span>s|<span class="pl-cce">\{</span>(DejaVu<span class="pl-cce">\[\[</span>:alnum:<span class="pl-cce">\]</span>_<span class="pl-cce">\]</span>*)<span class="pl-cce">\}</span>|<span class="pl-cce">\{\\</span>1.ttf<span class="pl-cce">\}</span>|g<span class="pl-pds">"</span></span> <span class="pl-cce">\</span></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="LC193" class="blob-code blob-code-inner js-file-line">                <span class="pl-smi">${f}</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="highlight tab-size js-file-line-container" data-tab-size="8"><tbody><tr>
        <td id="LC194" class="blob-code blob-code-inner js-file-line">        }</td></tr></tbody></table><div><br></div></div><div><br></div><div>Ken</div><div><br></div><br><div><div>On 2019-09-12, at 4:32 PM, Ken Cunningham wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I'm working on making a newer bootstrap version of ghc for SnowLeopard.<br><br>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.<br><br>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.<br><br>The ghc 8.0.1 build uses -- sphinx I believe, to process this bit of python:<br><br>========<br># -- Options for LaTeX output ---------------------------------------------<br><br>latex_elements = {<br>    'inputenc': '',<br>    'utf8extra': '',<br>    'preamble': '''<br>\usepackage{fontspec}<br>\usepackage{makeidx}<br>\setsansfont{DejaVu Sans}<br>\setromanfont{DejaVu Serif}<br>\setmonofont{DejaVu Sans Mono}<br>''',<br>}<br>=========<br><br>and that generates this bit in the generated tex file:<br><br>======<br>\usepackage{fontspec}<br>\usepackage{makeidx}<br>\setsansfont{DejaVuSans}<br>\setromanfont{DejaVuSerif}<br>\setmonofont{DejaVuSansMono}<br><br><br>\title{GHC Users Guide Documentation}<br>\date{Sep 12, 2019}<br>\release{8.0.2}<br>========<br><br>and that causes this error when building:<br><br>=======<br>(/opt/local/share/texmf-texlive/tex/latex/base/tuenc.def))<br>(/opt/local/share/texmf-texlive/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex: Invalid filename `DejaVu Sans', contains ' '<br><br><br>! Package fontspec Error: The font "DejaVu Sans" cannot be found.<br><br>======<br><br><br>clearly it can't find DejaVu Sans, but I have lots of texlive fonts installed, and also dejavu-fonts:<br><br>=====<br>$ port -v installed | grep deja | grep active<br>  dejavu-fonts @2.37_0 (active) platform='darwin 10' archs='noarch' date='2016-08-29T06:45:53-0700'<br><br>$ port -v installed | grep texlive | grep active<br>  lcdf-typetools @2.108_0+texlive (active) platform='darwin 10' archs='x86_64' date='2019-07-13T14:22:52-0700'<br>  texlive @2019_0+doc+medium (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:36:06-0700'<br>  texlive-basic @50893_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T19:51:28-0700'<br>  texlive-bin @2019.50896_0+x11 (active) platform='darwin 10' archs='x86_64' date='2019-05-26T19:49:09-0700'<br>  texlive-bin-extra @50853_1+doc (active) platform='darwin 10' archs='noarch' date='2019-06-23T22:01:01-0700'<br>  texlive-common @2019_0 (active) platform='darwin 10' archs='noarch' date='2019-05-26T18:34:12-0700'<br>  texlive-context @50709_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:20:39-0700'<br>  texlive-fonts-extra @50876_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T19:59:40-0700'<br>  texlive-fonts-recommended @49603_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:26:08-0700'<br>  texlive-fontutils @50695_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:22:56-0700'<br>  texlive-formats-extra @50700_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:28:15-0700'<br>  texlive-lang-cyrillic @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:36:28-0700'<br>  texlive-lang-czechslovak @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:23:19-0700'<br>  texlive-lang-english @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:25:24-0700'<br>  texlive-lang-european @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:26:43-0700'<br>  texlive-lang-french @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:28:17-0700'<br>  texlive-lang-german @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:29:54-0700'<br>  texlive-lang-italian @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:31:15-0700'<br>  texlive-lang-polish @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:32:16-0700'<br>  texlive-lang-portuguese @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:33:36-0700'<br>  texlive-lang-spanish @50792_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:34:39-0700'<br>  texlive-latex @50741_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:27:30-0700'<br>  texlive-latex-extra @50885_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:37:39-0700'<br>  texlive-latex-recommended @50818_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:29:34-0700'<br>  texlive-luatex @50816_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:35:46-0700'<br>  texlive-math-science @50760_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:40:26-0700'<br>  texlive-metapost @50602_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:18:42-0700'<br>  texlive-pictures @50872_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:31:31-0700'<br>  texlive-plain-generic @50884_0+doc (active) platform='darwin 10' archs='noarch' date='2019-05-26T20:41:21-0700'<br>  texlive-xetex @50852_0+doc (active) platform='darwin 10' archs='noarch' date='2019-07-13T14:19:10-0700'<br>=======<br><br>A hour on Google and various attempts at tex plugging have not helped.<br><br>Any help from someone who knows the (hopefully simple) error I'm having here is much appreciated!<br><br>Best,<br><br>Ken<br><br><br><br></div></blockquote></div><br></body></html>