Skip to content

Commit

Permalink
build/ops: deb: add python dependencies where needed
Browse files Browse the repository at this point in the history
this reverts 48f4576 and f140a8c

Fixes: http://tracker.ceph.com/issues/17579
Signed-off-by: Nathan Cutler <[email protected]>
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
smithfarm committed Oct 19, 2016
1 parent fcdef1e commit 26f0ebd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ Package: ceph-mgr
Architecture: linux-any
Depends: ceph-base (= ${binary:Version}),
${misc:Depends},
${python:Depends},
${shlibs:Depends}
Replaces: ceph (<< 0.93-417)
Breaks: ceph (<< 0.93-417)
Expand Down Expand Up @@ -664,6 +665,7 @@ Architecture: linux-any
Section: python
Depends: librados2 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
Expand All @@ -680,6 +682,7 @@ Architecture: linux-any
Section: python
Depends: librados2 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python3:Depends}
Description: Python 3 libraries for the Ceph librados library
Ceph is a massively scalable, open-source, distributed
Expand All @@ -694,6 +697,7 @@ Architecture: linux-any
Section: python
Depends: librbd1 (>= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
Expand All @@ -710,6 +714,7 @@ Architecture: linux-any
Section: python
Depends: librbd1 (>= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python3:Depends}
Description: Python 3 libraries for the Ceph librbd library
Ceph is a massively scalable, open-source, distributed
Expand All @@ -724,6 +729,7 @@ Architecture: linux-any
Section: python
Depends: libcephfs1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
Expand All @@ -740,6 +746,7 @@ Architecture: linux-any
Section: python
Depends: libcephfs1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python3:Depends}
Description: Python 3 libraries for the Ceph libcephfs library
Ceph is a massively scalable, open-source, distributed
Expand Down
5 changes: 2 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,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 \
--exclude=python-rados --exclude=python-cephfs --exclude=python-rbd \
--exclude=python3-rados --exclude=python3-cephfs --exclude=python3-rbd \
dh_shlibdeps -a --exclude=erasure-code --exclude=rados-classes --exclude=compressor

override_dh_python2:
for binding in rados cephfs rbd; do \
Expand All @@ -150,6 +148,7 @@ override_dh_python2:
dh_python2 -p ceph-common
dh_python2 -p ceph-base
dh_python2 -p ceph-osd
dh_python2 -p ceph-mgr

override_dh_python3:
for binding in rados cephfs rbd; do \
Expand Down

0 comments on commit 26f0ebd

Please sign in to comment.