[SailfishDevel] exclude requires from rpm: libstdc++

rinigus rinigus.git at gmail.com
Sat Sep 16 07:17:04 UTC 2017


Hi,

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


%define __provides_exclude_from ^%{_datadir}/.*$

%define __requires_exclude ^libstdc*$


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:


ERROR [libstdc++.so.6(CXXABI_1.3.8)] Cannot require shared library:
'libstdc++.so.6(CXXABI_1.3.8)'

ERROR [libstdc++.so.6(CXXABI_1.3.9)] Cannot require shared library:
'libstdc++.so.6(CXXABI_1.3.9)'

ERROR [libstdc++.so.6(GLIBCXX_3.4.20)] Cannot require shared library:
'libstdc++.so.6(GLIBCXX_3.4.20)'

ERROR [libstdc++.so.6(GLIBCXX_3.4.21)] Cannot require shared library:
'libstdc++.so.6(GLIBCXX_3.4.21)'

ERROR [libstdc++.so.6(GLIBCXX_3.4.22)] Cannot require shared library:
'libstdc++.so.6(GLIBCXX_3.4.22)'


Please note that, at this stage, I would prefer to ship libstdc++ lib
version with the application.


Cheers,


Rinigus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20170916/ea0941cf/attachment.html>


More information about the Devel mailing list