]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Add python-enum34 dependency to package for older distributions 36448/head
authorShyamsundar Ranganathan <srangana@redhat.com>
Wed, 5 Aug 2020 15:19:26 +0000 (11:19 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Mon, 10 Aug 2020 18:14:40 +0000 (14:14 -0400)
Subvolumes v2 introduces Enum usage, that is not part of python<=3.4 and is
provided as an extra package python-enum34 till python 2.4 version.

Added this as an explicit dependency to packaging, to ensure it is installed
in required distributions.

python-enum34 is also used by mgr-dashboard
(src/pybind/mgr/dashboard/plugins/feature_toggles.py) but the dependency is
not called out explicitly and is satisfied by, python-pyopenssl, which
depends on python-cryptography, which depends on python-enum34.

Platform availability notes:
- centos7 comes with python-enum34
- centos8 does not require this, as python versions are higher, and Enum is part
of the language itself
- openSUSE 15.1/2 comes with python-enum34
- Ubuntu Xenial/Bionic comes with python-enum34

Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
ceph.spec.in
debian/control

index 046111ada94b12b6e03e563fed458c8492a788a7..8a77bc2ca63c823ebb256b9a4bfcd6e3686a3627 100644 (file)
@@ -481,6 +481,9 @@ Requires:       pyOpenSSL
 %else
 Requires:       python%{_python_buildid}-pyOpenSSL
 %endif
+%if 0%{?rhel} < 8 || 0%{?suse_version}
+Requires:       python-enum34
+%endif
 %description mgr
 ceph-mgr enables python modules that provide services (such as the REST
 module derived from Calamari) and expose CLI hooks.  ceph-mgr gathers
index 111724e8dc4de18ab93efa3e37ba02734089ca8f..412c6a0538d92451f1a8170445ee92238b42e9f3 100644 (file)
@@ -186,6 +186,7 @@ Architecture: linux-any
 Depends: ceph-base (= ${binary:Version}),
          python-bcrypt,
          python-cherrypy3,
+         python-enum34,
          python-jwt,
          python-openssl,
          python-pecan,