<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">So the last 10 or so tickets in trac seem like they are all for basically the same issue - a few missing symbols from libc prior to 10.7.<div><br></div><div>It is easy enough, but time consuming, to patch each individual source file that is missing the definition (there might be several, also, so you might have to do it multiple times in different files).</div><div><br></div><div>With this library of these missing functions <<a href="https://github.com/kencu/snowleopardfixes">https://github.com/kencu/snowleopardfixes</a>>, all of them from the Apple open source website IIRC, all you need to do is the following in the Portfile:</div><div><br></div><div><pre><font class="Apple-style-span" face="Geneva"><span class="Apple-style-span" style="font-size: 11px;"><span class="Apple-style-span" style="white-space: normal; "><span class="pl-k">if</span></span><span class="Apple-style-span" style="white-space: normal; "> {</span><span class="Apple-style-span" style="white-space: normal; "><span class="pl-smi">${os.platform}</span></span><span class="Apple-style-span" style="white-space: normal; "> eq </span><span class="Apple-style-span" style="white-space: normal; "><span class="pl-s"><span class="pl-pds">"</span>darwin<span class="pl-pds">"</span></span></span><span class="Apple-style-span" style="white-space: normal; "> && </span><span class="Apple-style-span" style="white-space: normal; "><span class="pl-smi">${os.major}</span></span><span class="Apple-style-span" style="white-space: normal; "> < 11} </span><code> {
depends_lib-append port:snowleopardfixes
configure.ldflags-append -lsnowleopardfixes
}
</code></span></font></pre><div><div>It could be better named, perhaps libcfixes, as it applies to 10.4 to 10.6, not just SnowLeopard. </div><div><br></div><div>It works for wine, and all the other ports that have had this issue. It takes 10 seconds to do, and no patching.</div></div></div><div><br></div><div>Is it time for this? Or shall we continue as we are?</div><div><br></div><div><br></div><div>Best,</div><div><br></div><div>Ken</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Addendum 1</div><div><br></div><div>I have a header in there as well to provide the function definitions, but that header can cause trouble by bringing in other #defines, and it seems that no port actually needs the header. Perhaps the header idea can be improved by someone with more knowledge of #include_next, etc, or more specific defines.</div><div><div><br></div><div>Addendum 2</div><div><br></div><div>As we have said before (last year) this library could be automatically linked in by base. That would cause trouble with the ports that have already patched in a def, tho.</div></div><div><br></div></body></html>