From 3fc66afda62097dd1b8d8f9b826a57ce57fa0453a7dd2275edceaeb2a247f3fa Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Thu, 23 Jan 2020 04:52:42 +0000 Subject: [PATCH] Accepting request 766440 from home:cyphar:lxc Patch all binaries to avoid requires issues. OBS-URL: https://build.opensuse.org/request/show/766440 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxd?expand=0&rev=34 --- lxd.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lxd.spec b/lxd.spec index 2ba1c85..3812b38 100644 --- a/lxd.spec +++ b/lxd.spec @@ -248,7 +248,7 @@ done # Switch to absolute DT_NEEDED for all dylibs we have as well as the main LXD # binary. We do this for all dylibs to make sure we don't end up with weird # chain-loading problems. -for target in bin/lxd "$INSTALL_LIBDIR"/lib*.so +for target in bin/* "$INSTALL_LIBDIR"/lib*.so do # Drop RPATH in case it got included during builds. patchelf --remove-rpath "$target" @@ -270,6 +270,8 @@ for bin in * do # Ensure that all our binaries are dynamic. boo#1138769 file "$bin" | grep 'dynamically linked' + # Check what they are linked against. + ldd "$bin" done popd