]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
packaging: RGW depends on /etc/mime.types 5385/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 23 Jun 2015 19:41:53 +0000 (13:41 -0600)
committerLoic Dachary <ldachary@redhat.com>
Tue, 28 Jul 2015 16:02:31 +0000 (18:02 +0200)
If the mimecap RPM or mime-support DEB is not installed, then the
/etc/mime.types file is not present on the system. RGW attempts to read
this file during startup, and if the file is not present, RGW logs an
error:

  ext_mime_map_init(): failed to open file=/etc/mime.types ret=-2

Make the radosgw package depend on the mailcap/mime-support packages so
that /etc/mime.types is always available on RGW systems.

http://tracker.ceph.com/issues/11864 Fixes: #11864

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
(cherry picked from commit c74a2f86a1f9b15aae0e723b410bedfc1d01a79b)

ceph.spec.in
debian/control

index f0c032c3bee1a5dfceec59f9efe81b93436ed89d..7a1aa2872a680cf72235e59d6c365527c91c1d1e 100644 (file)
@@ -165,6 +165,7 @@ Requires:   apache2-mod_fcgid
 %else
 BuildRequires: expat-devel
 BuildRequires: fcgi-devel
+Requires:      mailcap
 %endif
 %description radosgw
 This package is an S3 HTTP REST gateway for the RADOS object store. It
index 4f9fc9f8f8abff268e22b56f3f3f01d461a69f88..c83e5fb6b07e175d06d6d596627bf667c3ecd1df 100644 (file)
@@ -421,7 +421,8 @@ Description: Ceph distributed file system client library (development files)
 
 Package: radosgw
 Architecture: linux-any
-Depends: ceph-common (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Depends: ceph-common (= ${binary:Version}), mime-support,
+         ${misc:Depends}, ${shlibs:Depends}
 Description: REST gateway for RADOS distributed object store
  RADOS is a distributed object store used by the Ceph distributed
  storage system.  This package provides a REST gateway to the