From: Nathan Cutler Date: Mon, 16 Jul 2018 18:56:50 +0000 (+0200) Subject: build/ops: rpm: make sudo a build dependency X-Git-Tag: v14.0.1~840^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23077%2Fhead;p=ceph.git build/ops: rpm: make sudo a build dependency 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index f0b79644072d..c9071c7844ff 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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