]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: rpm: make sudo a build dependency 23077/head
authorNathan Cutler <ncutler@suse.com>
Mon, 16 Jul 2018 18:56:50 +0000 (20:56 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 19 Jul 2018 12:15:05 +0000 (14:15 +0200)
ede36df3253bd67bfe206abc0446f1f156feae64 added sudo as a runtime dependency,
but that commit also causes OBS builds to fail with:

[10666s] ... checking filelist
[10667s] ceph-osd-14.0.0-lp150.1332.1.x86_64.rpm: directories not owned by a package:
[10667s]  - /etc/sudoers.d

Since the "sudo" package is a runtime dependency of ceph-osd, it is guaranteed
to be installed on the target system and there is no reason for ceph-osd to own
this directory.

Having sudo as a build dependency makes OBS happy, and does no harm.

Follow-on fix for https://github.com/ceph/ceph/pull/22745

Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in

index f0b79644072d2f7e33148137fec5f49a6b6e1fb5..c9071c7844ffa87beb15b5f7e520b458e133b5e1 100644 (file)
@@ -157,6 +157,7 @@ BuildRequires:  procps
 BuildRequires: python%{_python_buildid}
 BuildRequires: python%{_python_buildid}-devel
 BuildRequires: snappy-devel
+BuildRequires: sudo
 BuildRequires: udev
 BuildRequires: util-linux
 BuildRequires: valgrind-devel