From: Kefu Chai Date: Sun, 17 Jul 2016 09:21:04 +0000 (+0800) Subject: debian: remove ${shlibs:Depends} from python-* packages X-Git-Tag: ses5-milestone5~329^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48f4576de1825f5a386c0efd18e85a9fa919c2f0;p=ceph.git 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 --- diff --git a/debian/control b/debian/control index 68de4b9d9c4dc..4d4eb08893e5a 100644 --- a/debian/control +++ b/debian/control @@ -656,7 +656,7 @@ Description: Meta-package for python libraries for the Ceph libraries Package: python-rados Architecture: linux-any Section: python -Depends: librados2 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, ${python:Depends} +Depends: librados2 (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Replaces: python-ceph (<< 0.92-1223) Breaks: python-ceph (<< 0.92-1223) Description: Python libraries for the Ceph librados library @@ -670,7 +670,7 @@ Description: Python libraries for the Ceph librados library Package: python-rbd Architecture: linux-any Section: python -Depends: librbd1 (>= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, ${python:Depends} +Depends: librbd1 (>= ${binary:Version}), ${misc:Depends}, ${python:Depends} Replaces: python-ceph (<< 0.92-1223) Breaks: python-ceph (<< 0.92-1223) Description: Python libraries for the Ceph librbd library @@ -684,7 +684,7 @@ Description: Python libraries for the Ceph librbd library Package: python-cephfs Architecture: linux-any Section: python -Depends: libcephfs1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, ${python:Depends} +Depends: libcephfs1 (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Replaces: python-ceph (<< 0.92-1223) Breaks: python-ceph (<< 0.92-1223) Description: Python libraries for the Ceph libcephfs library diff --git a/debian/rules b/debian/rules index d1baaf433b5e5..02fbaf6a4212c 100755 --- a/debian/rules +++ b/debian/rules @@ -132,7 +132,7 @@ override_dh_strip: dh_strip -pceph-test --dbg-package=ceph-test-dbg override_dh_shlibdeps: - dh_shlibdeps -a --exclude=erasure-code --exclude=rados-classes --exclude=compressor + dh_shlibdeps -a --exclude=erasure-code --exclude=rados-classes --exclude=compressor --exclude=python-rados --exclude=python-cephfs --exclude=python-rbd override_dh_python2: for binding in rados cephfs rbd; do \