I am trying to fix linitan warning in OTB. I had a lot of warning says
package name does not matches so names.
For example earlier I had a single package with all libs.
libotb.install
usr/lib/libOTB*.so.* usr/lib/${DEB_HOST_MULTIARCH}
I tried to split them into seperate packages like
libotbcommon.install
usr/lib/libOTBCommon.so.* usr/lib/${DEB_HOST_MULTIARCH}
I also have a corresponding entry for libotbcommon inisde debian/control.
But still I get warnings from linitain
W: libotbcommon: package-name-doesnt-match-sonames libOTBCommon-5.0-1
Now this is normal because from[1] it gives a way to find the so name using
objdump
objdump -p obj-x86_64-linux-gnu/lib/libOTBCommon-5.0.so | sed -n
-e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed -r -e's/([0-9])\.so\./\1-/;
s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
The above command outputs libotbcommon-5.0-1
so If I change the package name to libotbcommon-5.0-1.install the warning
will go away. But then I will have the version number with the filename.
My question is having such .install files are normal?
should I have the same name for the package entry inside the debian/control
Package: libotbcommon -> Package: libotbcommon-5.0-1 ?
[1] https://lintian.debian.org/tags/package-name-doesnt-match-sonames.html
--
Regards,
Rashad