]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elfutils.spec.in: fix debuginfod state/config file flags
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 30 Oct 2020 23:14:02 +0000 (19:14 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Fri, 30 Oct 2020 23:38:42 +0000 (19:38 -0400)
During a test upgrade of an RPM based on this spec file, it was
observed that, er, the /var/cache/.../debuginfod.sqlite file was
zeroed.  Whoops!  We don't want to lose this data.  Removed the
%verify attributes and added %ghost for the sqlite database.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
config/ChangeLog
config/elfutils.spec.in

index f93bbfd7615c0e3e7bd50950cad4390c9d15308c..d280511d95ea0b571c16180ad31273c12e445fe1 100644 (file)
@@ -1,3 +1,8 @@
+2020-10-30  Frank Ch. Eigler  <fche@redhat.com>
+
+       * elfutils.spec.in: Fix debuginfod config/state file attributes
+       for non-lossy updates.
+
 2020-10-08  Frank Ch. Eigler  <fche@redhat.com>
 
        * Makefile.am (uninstall-local): Uninstall the new profile.d files.
index 170c95e560e004c2c8a7518992526978609723b5..3caca9a68fe448db5b79f3e591de4939fa3e9284 100644 (file)
@@ -191,6 +191,8 @@ mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
 %make_install
 
 chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
+mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod
+touch ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod/debuginfod.sqlite
 
 # XXX Nuke unpackaged files
 ( cd ${RPM_BUILD_ROOT}
@@ -296,7 +298,7 @@ fi
 %{_libdir}/libdebuginfod.so.*
 %{_bindir}/debuginfod-find
 %{_mandir}/man1/debuginfod-find.1*
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/profile.d/*
+%config(noreplace) %{_sysconfdir}/profile.d/*
   
 %files debuginfod-client-devel
 %defattr(-,root,root)
@@ -308,13 +310,13 @@ fi
 %files debuginfod
 %defattr(-,root,root)
 %{_bindir}/debuginfod
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/debuginfod
+%config(noreplace) %{_sysconfdir}/sysconfig/debuginfod
 %{_unitdir}/debuginfod.service
 %{_sysconfdir}/sysconfig/debuginfod
 %{_mandir}/man8/debuginfod.8*
 
 %dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod
-%verify(not md5 size mtime) %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite
+%ghost %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite
 
 %pre debuginfod
 getent group debuginfod >/dev/null || groupadd -r debuginfod