Skip to content

Commit

Permalink
Merge pull request #10322 from ceph/wip-debian-python-warnings
Browse files Browse the repository at this point in the history
debian: python related changes

Reviewed-by: Dan Mick <dmick@redhat.com>
  • Loading branch information
dmick committed Jul 22, 2016
2 parents 42916c0 + f11acf2 commit 8c48f87
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
14 changes: 7 additions & 7 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Build-Depends: btrfs-tools,
pkg-config,
python (>= 2.6.6-3~),
python-argparse | libpython2.7-stdlib,
python-dev,
python-all-dev,
python-nose,
python-setuptools,
python-sphinx,
Expand Down Expand Up @@ -89,9 +89,7 @@ Depends: binutils,
grep,
logrotate,
lsb-release,
python,
python-argparse | libpython2.7-stdlib,
python-pkg-resources,
${python:Depends},
sdparm | hdparm,
xfsprogs,
${misc:Depends},
Expand Down Expand Up @@ -179,6 +177,7 @@ Architecture: linux-any
Depends: ceph-base (= ${binary:Version}),
parted,
${misc:Depends},
${python:Depends},
${shlibs:Depends}
Recommends: ceph-common (= ${binary:Version})
Replaces: ceph (<< 10)
Expand Down Expand Up @@ -319,6 +318,7 @@ Depends: librbd1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends},
python-rados (= ${binary:Version}),
python-cephfs (= ${binary:Version}),
python-rbd (= ${binary:Version}),
${python:Depends},
python-requests
Conflicts: ceph-client-tools
Replaces: ceph-client-tools,
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
10 changes: 9 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,15 @@ 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 \
dh_python2 -p python-$$binding; \
done
dh_python2 -p ceph-common
dh_python2 -p ceph-base
dh_python2 -p ceph-osd

# do not run tests
override_dh_auto_test:
Expand Down

0 comments on commit 8c48f87

Please sign in to comment.