I'm building a runtime-shared-library package
0 here is a major package version and adhering to the naming conventions specified in the Debian policy.
The problem is I want to build another shared library
libbar depending on the runtime shared library package
libfoo0. So I'm considering adding a depends stanza, but I'm not sure if it is necessary to specify a version, like
Depends: libfoo0 (= 0.0.4)
0.0.4 here is the version of
libfoo0-dev.deb (package containing development files/necessary symlinks in
/usr/lib/) with which the
libbar was built. The problem I see is that would prohibit users from updating
Question: As long as
libfoo0 is binary backward compatible across major library version isn't it required to specify a dependency on the exact version of
libfoo0 a library/binary was built with?