> The best way to get dependencies on shared libraries is of course > dpkg-shlibdeps, but I assume there is a reason it's not used here so you > should explain why.
Yes but this a python binding which use ctypes, so the code is never linked to the libraries... I wrote this d/rules: override_dh_gencontrol: libca=$(shell dpkg-query -W -f '$${Depends}' libca-dev | awk '{print $$1}'); \ libcom=$(shell dpkg-query -W -f '$${Depends}' libcom-dev | awk '{print $$1}'); \ echo "lib:Depends=$$libca, $$libcom" >> debian/python3-pyepics.substvars dh_gencontrol d/control: Package: python3-pyepics Architecture: amd64 Depends: python3-pkg-resources, ${lib:Depends}, ${misc:Depends}, ${python3:Depends}, but I do not know if this is the best solution. Fred