]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: We no longer need redhat-lsb-core
authorBoris Ranto <branto@redhat.com>
Fri, 23 Oct 2015 14:39:16 +0000 (16:39 +0200)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Tue, 10 Nov 2015 17:31:57 +0000 (23:01 +0530)
Drop the redhat-lsb-core dependency as it is no longer necessary on
fedora/rhel.

The other two init scripts do not use redhat-lsb-core either. The
init-ceph.in conditionally requires /lib/lsb/init-functions and does not
use any of the functions defined in that file (at least not directly).
The init-radosgw file includes /etc/rc.d/init.d/functions on non-debian
platforms instead of /lib/lsb/init-functions file so it does not require
redhat-lsb-core either.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 15600572265bed397fbd80bdd2b7d83a0e9bd918)

Conflicts:
ceph.spec.in
Merge conflict because there were other commits that introduced systemd
& SUSE specific bits in the master which havent yet reached
hammer. Since this commit only removed redhat-lsb-core from *el distros
removing the specific lines

ceph.spec.in
src/init-rbdmap

index 140e0e3141a8d7bc679de7109f026c869456efbc..0d8c6d37680ebd580da3af0e5484e261594edb9e 100644 (file)
@@ -126,9 +126,6 @@ Requires:   python-rados = %{epoch}:%{version}-%{release}
 Requires:      python-rbd = %{epoch}:%{version}-%{release}
 Requires:      python-cephfs = %{epoch}:%{version}-%{release}
 Requires:      python-requests
-%if 0%{?rhel} || 0%{?fedora}
-Requires:  redhat-lsb-core
-%endif
 # python-argparse is only needed in distros with Python 2.6 or lower
 %if (0%{?rhel} && 0%{?rhel} <= 6) || (0%{?suse_version} && 0%{?suse_version} <= 1110)
 Requires:      python-argparse
index bb2bf2d7e641053d124b7433afe574854435bfbe..d779efc0aba0f537021574f0df56a4d35f582743 100755 (executable)
@@ -21,7 +21,9 @@
 DESC="RBD Mapping:"
 RBDMAPFILE="/etc/ceph/rbdmap"
 
-. /lib/lsb/init-functions
+if [ -e /lib/lsb/init-functions ]; then
+    . /lib/lsb/init-functions
+fi
 
 do_map() {
        if [ ! -f "$RBDMAPFILE" ]; then