From 9df28f893296dd0ff74cf363f6725130abc19a2c89e41ce869aaf8c573ebdcdc Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 23 Feb 2021 10:40:01 +0000 Subject: [PATCH] Accepting request 873509 from home:darix:playground - Make sure we pull in the libraries we need for dlopen, by following the symlinks from the .so symlinks with the requires_file macro. OBS-URL: https://build.opensuse.org/request/show/873509 OBS-URL: https://build.opensuse.org/package/show/network/keepalived?expand=0&rev=66 --- keepalived.changes | 7 +++++++ keepalived.spec | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/keepalived.changes b/keepalived.changes index d7205d0..5e04390 100644 --- a/keepalived.changes +++ b/keepalived.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 18 16:17:02 UTC 2021 - Marcus Rueckert + +- Make sure we pull in the libraries we need for dlopen, by + following the symlinks from the .so symlinks with the + requires_file macro. + ------------------------------------------------------------------- Tue Jan 26 14:58:01 UTC 2021 - Marcus Rueckert diff --git a/keepalived.spec b/keepalived.spec index 61db2ed..618d014 100644 --- a/keepalived.spec +++ b/keepalived.spec @@ -16,6 +16,8 @@ # +%define requires_file() %( readlink -f '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' -f | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") + #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates @@ -86,6 +88,11 @@ BuildRequires: pkgconfig(libsystemd) %else Requires(pre): %insserv_prereq %endif +%requires_file %{_libdir}/libipset.so +%requires_file %{_libdir}/libip6tc.so +%requires_file %{_libdir}/libip4tc.so +%requires_file %{_libdir}/libnl-3.so +%requires_file %{_libdir}/libnl-genl-3.so %description This project provides facilities for load balancing and high-availability to