Add so version number to private libraries for dpkg-shlibdeps

We also want dpkg-shlibdeps to generate correct dependency information
for the private libraries in our binary packages, but dpkg-shlibdeps
only works when the library has a version number.

Origin: vendor
Forwarded: not-needed

Gbp-Pq: Name add-so-version-to-private-libraries
This commit is contained in:
Jeroen Dekkers 2022-05-14 02:51:19 +08:00 committed by openKylinBot
parent 63e1eba6f5
commit aa8fa87168
1 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,9 @@ def SAMBA_LIBRARY(bld, libname, source,
raise Errors.WafError("public library '%s' must have header files" %
libname)
if private_library and not vnum:
vnum = '0'
if bundled_name is not None:
pass
elif target_type == 'PYTHON' or realname or not private_library: