<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#333333" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 5/31/18 21:24 , Joshua Root wrote:<br>
</div>
<blockquote
cite="mid:2afbbc9f-4dd9-7841-aba5-2658d31e394f@macports.org"
type="cite">
<pre wrap="">On 2018-6-1 03:21 , iEFdev wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I have some 5-6 ports that show this (gptfdisk, flac, etc.). Do you have
an example how to use the cxx_stdlib_overridden.tcl, or are there any
documentation to read more how to use it. Sorry, if it's obvious, but I
couldn't find it.
/// Since I'm using 10.7.5 with the CXX-fix
<a class="moz-txt-link-rfc2396E" href="https://trac.macports.org/wiki/LibcxxOnOlderSystems#LionandMountainLion"><https://trac.macports.org/wiki/LibcxxOnOlderSystems#LionandMountainLion></a>,
I'm not really sure if it the port(s) or my setup that triggers it.//
</pre>
</blockquote>
<pre wrap="">
cxx_stdlib_overridden.tcl is a script that runs automatically when
MacPorts base is installed. It sets up some metadata in the registry.
The ports that rev-upgrade is newly finding to be broken are those that
have configure.cxx_stdlib set to libc++ but in fact link with libstdc++,
or vice versa. These need to be fixed by either making them link with
the selected stdlib (preferred), or changing configure.cxx_stdlib to
match what they are actually using.
</pre>
</blockquote>
Thanks Josh,<br>
<br>
I made a quick test on flac, adding:<br>
<pre><pre># flac is using libstdc++ (this installation is configured to use libc++)
configure.cxx_stdlib libstdc++</pre></pre>
…and the rev-upgrade let it pass.<br>
<br>
<blockquote
cite="mid:2afbbc9f-4dd9-7841-aba5-2658d31e394f@macports.org"
type="cite">
<pre wrap="">Please open tickets or better yet PRs for affected ports.
- Josh
</pre>
</blockquote>
<br>
Since I'm on an older system, with libcxx set in my config files -
wouldn't a ticket be a better option in case this is a no-error?
Perhaps it should be wrapped around a check for what macos version,
etc?<br>
<br>
When searching I saw this one (non-related):
<a class="moz-txt-link-freetext" href="https://lists.macports.org/pipermail/macports-dev/2015-April/030230.html">https://lists.macports.org/pipermail/macports-dev/2015-April/030230.html</a><br>
<br>
So perhaps something like:<br>
<pre>if {[string equal ${configure.cxx_stdlib} "libc++"]} {
configure.cxx_stdlib libstdc++
}</pre>
Would that be a better approach?<br>
<br>
· Eric<br>
<br>
</body>
</html>