mirror of
https://github.com/ceph/ceph
synced 2025-04-04 23:42:13 +00:00
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>
This commit is contained in:
parent
abe5da0e3a
commit
48f4576de1
6
debian/control
vendored
6
debian/control
vendored
@ -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
|
||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user