<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)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(GLIBCXX_3.4.20)'</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)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(GLIBCXX_3.4.21)'</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)</span><span style="color:rgb(0,0,0)">] Cannot require shared library: 'libstdc++.so.6(GLIBCXX_3.4.22)'</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>