<div dir="ltr">Thank you for reply! Yes, I have multiple compilers in use (regular g++ and 6.4.0) for different components. At this stage, optimization of compilers would be rather difficult and I would prefer to specify corresponding exclude define. I did try to specify full names, but that did not help. Not sure whether the library name + extra in brackets play a role over here. Someone better than me in regex-fu and spec-fu is needed.<div><br></div><div>Rinigus </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 5:54 PM, Tone Kastlunger <span dir="ltr"><<a href="mailto:users.giulietta@gmail.com" target="_blank">users.giulietta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>It seems you have 5 different std lib's.<br></div>Find out what is linking them (my guess is different components/libraries), change all to one and compile.<br></div>If that is not possible, specify all the libs one by one with full names in the spec file.<br><br></div>That's my 2cents<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Sep 18, 2017 at 12:10 PM, rinigus <span dir="ltr"><<a href="mailto:rinigus.git@gmail.com" target="_blank">rinigus.git@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Bump. Any takers (see below)? Would really help me out with mess induced by <a href="https://build.merproject.org/package/show/home:rinigus:maps/mapbox-demo-sfos" target="_blank">https://build.merproject.or<wbr>g/package/show/home:rinigus:ma<wbr>ps/mapbox-demo-sfos</a> at the corresponding repo.<span class="m_4184107323552788926HOEnZb"><font color="#888888"><div><br></div><div>Rinigus</div></font></span><div><div class="m_4184107323552788926h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 16, 2017 at 10:17 AM, rinigus <span dir="ltr"><<a href="mailto:rinigus.git@gmail.com" target="_blank">rinigus.git@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have a trouble with excluding libstdc++ requirements from RPM. In my case, I compile the code with gcc-6.4 and include libstdc++ as an app-shipped library through /usr/share/appname/lib . Maybe someone could help to construct exclude define - I didn't managed to cure the requirements in spec using macro section</div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(205,139,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="text-decoration-line:underline">%</span>define __provides_exclude_from ^<span style="text-decoration-line:underline">%</span>{_datadir}/.*$</font></pre>
<pre style="margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="text-decoration-line:underline">%</span>define __requires_exclude ^libstdc*$</font></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(205,139,0)"><br></span></pre>Not sure what I am doing wrong in this case. It would really speed me up if I can get over this bump. RPM checker errors are:<pre style="margin-top:0px;margin-bottom:0px"><br></pre></div><div>
<p style="margin:0px"><span style="color:rgb(170,0,0)">ERROR</span><span style="color:rgb(0,0,0)"> [</span><span style="color:rgb(0,0,170)">libstdc++.so.6(CXXABI_1.3.8)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(CXXABI_1.3.8)'</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">ERROR</span><span style="color:rgb(0,0,0)"> [</span><span style="color:rgb(0,0,170)">libstdc++.so.6(CXXABI_1.3.9)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(CXXABI_1.3.9)'</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">ERROR</span><span style="color:rgb(0,0,0)"> [</span><span style="color:rgb(0,0,170)">libstdc++.so.6(GLIBCXX_3.4.20<wbr>)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(GLIBCXX_3.4.20<wbr>)'</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">ERROR</span><span style="color:rgb(0,0,0)"> [</span><span style="color:rgb(0,0,170)">libstdc++.so.6(GLIBCXX_3.4.21<wbr>)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(GLIBCXX_3.4.21<wbr>)'</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">ERROR</span><span style="color:rgb(0,0,0)"> [</span><span style="color:rgb(0,0,170)">libstdc++.so.6(GLIBCXX_3.4.22<wbr>)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(GLIBCXX_3.4.22<wbr>)'</span></p><p style="margin:0px"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px"><span style="color:rgb(0,0,0)">Please note that, at this stage, I would prefer to ship libstdc++ lib version with the application.</span></p><p style="margin:0px"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px"><span style="color:rgb(0,0,0)">Cheers,</span></p><p style="margin:0px"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px"><span style="color:rgb(0,0,0)">Rinigus</span></p></div></div>
</blockquote></div><br></div></div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfi<wbr>shos.org</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a><br></blockquote></div><br></div>