From d13ecfd07da70de1e40900b1b07786fd556d9c8a Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 25 2018 10:00:30 +0000 Subject: Fix mode on %ghost dirs in /etc If the directory does not exist in %buildroot, rpm very usefully defaults to access mask of 0. When the directory is created in the file system, of course it has some other mode, and rpm -V reports the directory as changed. --- diff --git a/systemd.spec b/systemd.spec index f526eaf..085db56 100644 --- a/systemd.spec +++ b/systemd.spec @@ -652,22 +652,22 @@ fi %doc %{_pkgdocdir} %exclude %{_pkgdocdir}/LICENSE.* %license LICENSE.GPL2 LICENSE.LGPL2.1 -%ghost %dir /etc/systemd/system/basic.target.wants -%ghost %dir /etc/systemd/system/bluetooth.target.wants -%ghost %dir /etc/systemd/system/default.target.wants -%ghost %dir /etc/systemd/system/getty.target.wants -%ghost %dir /etc/systemd/system/graphical.target.wants -%ghost %dir /etc/systemd/system/local-fs.target.wants -%ghost %dir /etc/systemd/system/machines.target.wants -%ghost %dir /etc/systemd/system/multi-user.target.wants -%ghost %dir /etc/systemd/system/network-online.target.wants -%ghost %dir /etc/systemd/system/printer.target.wants -%ghost %dir /etc/systemd/system/remote-fs.target.wants -%ghost %dir /etc/systemd/system/sockets.target.wants -%ghost %dir /etc/systemd/system/sysinit.target.wants -%ghost %dir /etc/systemd/system/system-update.target.wants -%ghost %dir /etc/systemd/system/timers.target.wants -%ghost %dir /var/lib/rpm-state/systemd +%ghost %dir %attr(0755,-,-) /etc/systemd/system/basic.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/bluetooth.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/default.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/getty.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/graphical.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/local-fs.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/machines.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/multi-user.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/network-online.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/printer.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/remote-fs.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/sockets.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/sysinit.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/system-update.target.wants +%ghost %dir %attr(0755,-,-) /etc/systemd/system/timers.target.wants +%ghost %dir %attr(0755,-,-) /var/lib/rpm-state/systemd %files libs -f .file-list-libs %license LICENSE.LGPL2.1