diff options
author | Kefu Chai <kchai@redhat.com> | 2016-07-17 11:21:04 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2016-07-22 09:02:12 +0200 |
commit | 48f4576de1825f5a386c0efd18e85a9fa919c2f0 (patch) | |
tree | 142e451bd6a5a3cd1c40432a85439867971f52e9 /debian | |
parent | debian: do not run dh-python against non-python packages (diff) | |
download | ceph-48f4576de1825f5a386c0efd18e85a9fa919c2f0.tar.xz ceph-48f4576de1825f5a386c0efd18e85a9fa919c2f0.zip |
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>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/control | 6 | ||||
-rwxr-xr-x | debian/rules | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/debian/control b/debian/control index 68de4b9d9c4..4d4eb08893e 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 d1baaf433b5..02fbaf6a421 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 \ |