]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
deb,rpm: python-cephfs should depend on python-rados
authorKefu Chai <kchai@redhat.com>
Sat, 14 Jul 2018 03:13:27 +0000 (11:13 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 25 Jul 2018 07:22:16 +0000 (15:22 +0800)
in `cephfs.pyx` we `cimport rados`, and in
LibCephFs.create_with_rados(), Rados.cluster is accesssed without GIL,
so we need to import the rados module for cephfs to ensure that it's
safe to access this attribute without GIL.

dh_python2 and dh_python3 cannot fill ${python:Depends} and
${python3:Depends} with this dependency, so we need to set it
explicitly.

Fixes: http://tracker.ceph.com/issues/24918
Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in
debian/control

index 4850e8f283f0025d741a43828c2ef0ee9e708cfc..870afdbfea1ec9424450adbfa1f9d40098703f7e 100644 (file)
@@ -730,9 +730,7 @@ Summary:    Python 2 libraries for Ceph distributed file system
 Group:         Development/Libraries/Python
 %endif
 Requires:      libcephfs2 = %{_epoch_prefix}%{version}-%{release}
-%if 0%{?suse_version}
-Recommends: python-rados = %{_epoch_prefix}%{version}-%{release}
-%endif
+Requires:      python-rados = %{_epoch_prefix}%{version}-%{release}
 Obsoletes:     python-ceph < %{_epoch_prefix}%{version}-%{release}
 %description -n python-cephfs
 This package contains Python 2 libraries for interacting with Cephs distributed
index 708f64556e257d852c0caf5c3c0717096f23c98c..8cde074afa1cc0aa70e5b6e883bcd23619110b1a 100644 (file)
@@ -891,6 +891,7 @@ Package: python-rgw
 Architecture: linux-any
 Section: python
 Depends: librgw2 (>= ${binary:Version}),
+         python-rados (= ${binary:Version}),
          ${misc:Depends},
          ${python:Depends},
          ${shlibs:Depends},
@@ -925,6 +926,7 @@ Package: python3-rgw
 Architecture: linux-any
 Section: python
 Depends: librgw2 (>= ${binary:Version}),
+         python3-rados (= ${binary:Version}),
          ${misc:Depends},
          ${python3:Depends},
          ${shlibs:Depends},
@@ -957,6 +959,7 @@ Package: python-cephfs
 Architecture: linux-any
 Section: python
 Depends: libcephfs2 (= ${binary:Version}),
+         python-rados (= ${binary:Version}),
          ${misc:Depends},
          ${python:Depends},
          ${shlibs:Depends},
@@ -991,6 +994,7 @@ Package: python3-cephfs
 Architecture: linux-any
 Section: python
 Depends: libcephfs2 (= ${binary:Version}),
+         python3-rados (= ${binary:Version}),
          ${misc:Depends},
          ${python3:Depends},
          ${shlibs:Depends},