public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lldpad] rawhide: Fix readline dependency
@ 2026-10-05 12:23 Michal Schmidt
0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-10-05 12:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/lldpad
Branch : rawhide
Commit : 369286d4e0b8eadbce6d06d502db4c5a72729424
Author : Michal Schmidt <mschmidt@redhat.com>
Date : 2026-09-16T18:46:47+02:00
Stats : +4/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/lldpad/c/369286d4e0b8eadbce6d06d502db4c5a72729424?branch=rawhide
Log:
Fix readline dependency
readline should not be a hard Requires, because openlldp uses dlopen()
to load the library at runtime and it implements a fallback. Downgrade
it to a weak dependency: Recommends.
The readline package itself is not sufficient, because openlldp looks
for unversioned libhistory.so and libreadline.so, which are found in the
readline-devel package. Recommend that.
---
diff --git a/lldpad.spec b/lldpad.spec
index 4e4be67..c550813 100644
--- a/lldpad.spec
+++ b/lldpad.spec
@@ -21,7 +21,10 @@ BuildRequires: libnl3-devel
BuildRequires: readline-devel
BuildRequires: systemd
BuildRequires: make
-Requires: readline
+
+# weak_readline.c dlopen()s libhistory.so and libreadline.so,
+# with no version suffix. They are in the -devel package.
+Recommends: readline-devel
Requires(post): systemd
Requires(preun): systemd
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-05 12:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-05 12:23 [rpms/lldpad] rawhide: Fix readline dependency Michal Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox