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

Message ID 20220407132922.20798-1-mark@klomp.org
State Committed
Headers
Series config: Add a versioned requires on libs for elfutils-debuginfod-client |

Commit Message

Mark Wielaard April 7, 2022, 1:29 p.m. UTC
  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 <mark@klomp.org>
---
 config/ChangeLog        | 5 +++++
 config/elfutils.spec.in | 2 ++
 2 files changed, 7 insertions(+)
  

Comments

Mark Wielaard April 12, 2022, 1:24 p.m. UTC | #1
On Thu, 2022-04-07 at 15:29 +0200, Mark Wielaard wrote:
> 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.

I pushed a slight variant of this that also adds an explicit versioned
requirement on elfutils-libelf. Which isn't strictly necessary because
that is already a versioned requires of elfutils-libs. But tools like
rpminspect check for these direct dependencies only.

See attached.

Cheers,

Mark
  

Patch

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  <mark@klomp.org>
+
+	* elfutils.spec.in (debuginfod-client): Add an explicit requires
+	on elfutils-libs.
+
 2021-11-10  Mark Wielaard  <mark@klomp.org>
 
 	* 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