From 1a046b60b160aa0c09c966471e0a4bd5f5eac49a2719975078939e913d16e872 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Sun, 12 Sep 2021 16:39:39 +0000 Subject: [PATCH] Accepting request 918520 from home:cyphar:lxc - Disable stripping of binaries, which seems to be causing issues at runtime due to some ld.so assertion failing. In particular it seems that libdqlite is getting corrupted somehow. OBS-URL: https://build.opensuse.org/request/show/918520 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxd?expand=0&rev=102 --- lxd.changes | 4 ++++ lxd.spec | 8 +++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lxd.changes b/lxd.changes index 160847d..43b0847 100644 --- a/lxd.changes +++ b/lxd.changes @@ -14,6 +14,10 @@ Sun Sep 5 06:43:47 UTC 2021 - Aleksa Sarai * --minimal option for lxd init * Additional network counters in instance state +- Disable stripping of binaries, which seems to be causing issues at runtime + due to some ld.so assertion failing. In particular it seems that libdqlite is + getting corrupted somehow. + ------------------------------------------------------------------- Fri Aug 20 11:59:37 UTC 2021 - Aleksa Sarai diff --git a/lxd.spec b/lxd.spec index bba8b49..099d991 100644 --- a/lxd.spec +++ b/lxd.spec @@ -14,8 +14,11 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +# nodebuginfo +%go_nostrip + %define _buildshell /bin/bash %define import_path github.com/lxc/lxd @@ -280,11 +283,6 @@ do name="$(basename "$(readlink "$lib")" | sed -E 's/\.[0-9]+\.[0-9]+$//')" patchelf --replace-needed {,%{_libdir}/%{name}/}"$name" "$target" done - - # TODO: For some reason, BRP isn't auto-stripping our binaries even though - # we've dropped go_nostrip. So just strip them manually until I can figure - # out why that's happening. - strip "$target" done # Generate man pages.