[Bug debuginfod/29022] 000-permissions files cause problems for backups

2022-04-07 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29022

Mark Wielaard  changed:

   What|Removed |Added

   Last reconfirmed||2022-04-07
 Ever confirmed|0   |1
 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amerey at redhat dot com

--- Comment #4 from Mark Wielaard  ---
Aaron already wrote up a patch to use zero sized files as negative cache
instead of zero permission files:
https://sourceware.org/pipermail/elfutils-devel/2022q2/004861.html

The only question is how this works on upgrade with an old cache. But it might
just work out because the old negative cache files were also zero sized and the
unlink should just work despite any changes in permissions.

If someone could try it out and/or give it a formal review that would be great.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[PATCH] config: Add a versioned requires on libs for elfutils-debuginfod-client

2022-04-07 Thread Mark Wielaard
elfutils-debuginfod-client contains the debuginfod-client binary
which is uses libelf and libdw. Add an explicit versioned requires
on elfutils-libs so they will always be in sync like done with all
other inter sub package dependencies.

Signed-off-by: Mark Wielaard 
---
 config/ChangeLog| 5 +
 config/elfutils.spec.in | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/config/ChangeLog b/config/ChangeLog
index acbaaa88..be27373f 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2022-04-07  Mark Wielaard  
+
+   * elfutils.spec.in (debuginfod-client): Add an explicit requires
+   on elfutils-libs.
+
 2021-11-10  Mark Wielaard  
 
* elfutils.spec.in: Update for 0.186.
diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in
index aac0dffc..f4b26f03 100644
--- a/config/elfutils.spec.in
+++ b/config/elfutils.spec.in
@@ -141,6 +141,8 @@ profiling) of processes.
 %package debuginfod-client
 Summary: Library and command line client for build-id HTTP ELF/DWARF server
 License: GPLv3+ and (GPLv2+ or LGPLv3+)
+# For debuginfod-find binary
+Requires: elfutils-libs = %{version}-%{release}
 
 %package debuginfod-client-devel
 Summary: Libraries and headers to build debuginfod client applications
-- 
2.18.4