From: Nathan Cutler Date: Sun, 7 Aug 2016 21:08:48 +0000 (+0200) Subject: rpm: proper packaging of udev directories X-Git-Tag: v11.0.1~413^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a164bc94d661b9d83b4a80e957712ed6f5cd122;p=ceph.git rpm: proper packaging of udev directories The issue here is that ceph.spec.in does not package the directories /usr/lib/udev and /usr/lib/udev/rules.d. The problem was not showing because hdparm, which is brought in as a build dependency, packages these directories. However, in SUSE a recent update to hdparm changes that and the problem manifests. This PR addresses the issue by adding udev as a build dependency, which should cover /usr/lib/udev, and by adding explicit "%dir %{_udevrulesdir}" to the packages that put files in this directory. Fixes: http://tracker.ceph.com/issues/16949 Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index 6fa560127262..f3ff83b01088 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -117,6 +117,7 @@ BuildRequires: python-requests BuildRequires: python-sphinx BuildRequires: python-virtualenv BuildRequires: snappy-devel +BuildRequires: udev BuildRequires: util-linux BuildRequires: valgrind-devel BuildRequires: xfsprogs @@ -880,6 +881,7 @@ DISABLE_RESTART_ON_UPDATE="yes" %{_unitdir}/rbdmap.service %{python_sitelib}/ceph_argparse.py* %{python_sitelib}/ceph_daemon.py* +%dir %{_udevrulesdir} %{_udevrulesdir}/50-rbd.rules %attr(3770,ceph,ceph) %dir %{_localstatedir}/log/ceph/ %attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/ @@ -1157,6 +1159,7 @@ fi %{_sbindir}/ceph-disk %{_sbindir}/ceph-disk-udev %{_libexecdir}/ceph/ceph-osd-prestart.sh +%dir %{_udevrulesdir} %{_udevrulesdir}/60-ceph-by-parttypeuuid.rules %{_udevrulesdir}/95-ceph-osd.rules %{_mandir}/man8/ceph-clsinfo.8*