From 4d592de923ff6430e81dac8157365627b351c2acd57e0f55726091e3d135b69e Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Thu, 20 Jun 2019 11:11:33 +0000 Subject: [PATCH] Accepting request 711067 from home:cyphar:lxc Fix strip usage. OBS-URL: https://build.opensuse.org/request/show/711067 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxd?expand=0&rev=22 --- lxd.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lxd.spec b/lxd.spec index 799e643..5c86c10 100644 --- a/lxd.spec +++ b/lxd.spec @@ -196,12 +196,12 @@ done ./bin/lxd help >/dev/null ) -# Give our libraries unrecognisable DT_SONAME entries. -patchelf --set-soname '._LXD_INTERNAL-libsqlite3.so.0' "$PKGDIR/dist/sqlite/.libs/libsqlite3.so.0" -patchelf --set-soname '._LXD_INTERNAL-libdqlite.so.0' "$PKGDIR/dist/dqlite/.libs/libdqlite.so.0" # Strip debug symbols (we disabled debuginfo so we must do it manually). strip "$PKGDIR/dist/sqlite/.libs/libsqlite3.so" strip "$PKGDIR/dist/dqlite/.libs/libdqlite.so" +# Give our libraries unrecognisable DT_SONAME entries. +patchelf --set-soname '._LXD_INTERNAL-libsqlite3.so.0' "$PKGDIR/dist/sqlite/.libs/libsqlite3.so.0" +patchelf --set-soname '._LXD_INTERNAL-libdqlite.so.0' "$PKGDIR/dist/dqlite/.libs/libdqlite.so.0" # Switch to absolute DT_NEEDED for the lxd binary. patchelf --remove-rpath bin/lxd