<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='color:black'>(I’ve resent this because I accidentally included an HTML tag in the previous email)<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>We’ve recently encountered a build failure while building TeXLive from source in Hombrew.  The root cause appears to be that<span class=apple-converted-space> </span>https://github.com/TeX-Live/texlive-source/commit/0b14c16fc71723576a31b0164f1580785af867ee<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> added the file “texk/web2c/mfluadir/potrace/config.h” which shares its name with “texk/web2c/w2c/config.h”. <span class=apple-converted-space> </span></span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal style='caret-color: rgb(0, 0, 0);font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='color:black'> </span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal style='caret-color: rgb(0, 0, 0);font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='color:black'>The ordering of the CPPFLAGS in “texk/web2c/Makefile.in” is “$(DEFAULT_INCLUDES) $(INCLUDES) $(libmfluapotrace_a_CPPFLAGS)” which resolves to “-I. -I./w2c -I./mfluadir/potrace”, which unfortunately will pick up “w2c/config.h” before “mfluadir/potrace/config.h”.<span class=apple-converted-space> </span></span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal style='caret-color: rgb(0, 0, 0);font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='color:black'>I believe this is the wrong file, and “w2c/config.h” includes “kpathsea/config.h” which is not in the “web2c” directory and causes the build to fail.</span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal style='caret-color: rgb(0, 0, 0);font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='color:black'> </span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal style='caret-color: rgb(0, 0, 0);font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='color:black'>We circumvented this problem in Homebrew by changing “$(DEFAULT_INCLUDES) $(INCLUDES) $(libmfluapotrace_a_CPPFLAGS)” to “$(libmfluapotrace_a_CPPFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES)” in the Makefile.in so that “mfluadir/potrace/config.h” is found before “w2c/config.h”.  However I think a better solution here would be to just rename “mfluadir/potrace/config.h” to something like “mfluadir/potrace/potrace_config.h”.  I am happy to send out a patch that changes this along with the relevant include statements in the other files in “mfluadir/potrace”, but I wanted to get some idea of whether this makes sense to do.  It’s possible that this has not caused failures in other systems because the inclusion of config.h by files in “mfluadir/potrace” is conditional on “HAVE_CONFIG_H” being defined, which does happen for us in Homebrew but may not occur in other environments.</span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal style='caret-color: rgb(0, 0, 0);font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='color:black'> </span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal style='caret-color: rgb(0, 0, 0);font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='color:black'>Daniel Nachun</span><span style='font-size:13.5pt;color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p></div></body></html>