El Martes, 27 de mayo de 2014 17:04:05 jcsl escribió:
Hi.
First of all, I'm having problems with this particular list because I don't receive the answers in my mail account, so I cannot answer to anybody that is trying to help me. I've unsubscribed and subscribed again to see if it works now. Sorry for the inconveniences.
In this answer to a previous question I did,
http://lists.opensuse.org/opensuse-packaging/2014-05/msg00032.html
I was said how to get the SONAME of a library, but how do you know it "before" the library is built? I mean, if I don't have that library installed and the package doesn't build so I can install the library and get it, I cannot run the suggested commands (readelf or objdump) to get the SONAME. So, how do you get the SONAME? I've read the page
http://en.opensuse.org/openSUSE:Shared_library_packaging_policy
but I can't see the answer to my question there (I may have overlooked it because my English is quite bad).
Greetings.
Hi. I have found that you can get the SONAME by adding the "readelf" or "objdump" command in the "install" section of the "spec" and reviewing the record of the build output. For example: readelf -a %{buildroot}%{_libdir}/libzlui.so | grep SONAME 0x000000000000000e (SONAME) Library soname: [libzlui.so.0.99] objdump %{buildroot}%{_libdir}/libzlui.so -p | grep SONAME SONAME libzlui.so.0.99 I have one more doubt. There is another library built as a subpackage in the same package. While in the libzlui I have to use the exact SONAME and I cannot even add a dash to separate the library name from the SONAME because the build is aborted (Your package contains a single shared library but is not named after its SONAME), the other library only issues a shlib-policy-missing-suffix warning. What is the difference between these two libraries? The warning disappears if I add a suffix to the library package name, and in this case there are no problems changing the name of the package. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org