]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
debian: remove ${shlibs:Depends} from python-* packages
authorKefu Chai <kchai@redhat.com>
Sun, 17 Jul 2016 09:21:04 +0000 (17:21 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Jul 2016 07:02:12 +0000 (15:02 +0800)
commit48f4576de1825f5a386c0efd18e85a9fa919c2f0
tree142e451bd6a5a3cd1c40432a85439867971f52e9
parentabe5da0e3afbef0093f4141ce0bd10511862977d
debian: remove ${shlibs:Depends} from python-* packages

* debian/control:
  as we have listed the linked libraries in Depends section, for example,
  python-rados depends on librados. and we don't need `dpkg-shlibdeps` to
  help figure out shared library substvar dependencies for us. by removing
  them, we can silence the warnings of
```
warning: dpkg-shlibdeps: package could avoid a useless dependency if
debian/python-rados/usr/lib/python2.7/dist-packages/rados.x86_64-linux-gnu.so
was not linked against libpthread.so.0 (it uses none of the library's
symbols)
```
  -lpthread is introduced by `python-config --ldflags` but it turns out we
  are not using any symbols from pthread in the extension directly. and
  pthread is included in glibc. so this does not added any extra
  dependency to python-* pacakges. but it's desirable to have less
  warnings.
* debian/rules: exclude python-* packages from dh_shlibdeps, as we will
  not use it to prepare the shlib deps substvars for these packages any
  more.

Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/control
debian/rules