]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
packaging: RGW depends on /etc/mime.types 5110/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 23 Jun 2015 19:41:53 +0000 (13:41 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 15 Jul 2015 15:14:15 +0000 (09:14 -0600)
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>
ceph.spec.in
debian/control

index 0cc02e4226c863c281648d723ccc56942c4b3c27..375028b7f2e6d340d3e4535fab56e477bfd445ee 100644 (file)
@@ -193,6 +193,7 @@ Requires:   apache2-mod_fcgid
 %if 0%{?rhel} || 0%{?fedora}
 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 b541403ce68e952a5d7d184b7e3f198a86afdef6..6fa995c340930df5aff4083de5ef430e55fb361b 100644 (file)
@@ -426,7 +426,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