SHA256
1
0
forked from pool/lxd

Accepting request 918522 from Virtualization:containers

- 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/918522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lxd?expand=0&rev=39
This commit is contained in:
Dominique Leuenberger 2021-09-14 19:14:11 +00:00 committed by Git OBS Bridge
commit 0ac337dfe7
2 changed files with 7 additions and 5 deletions

View File

@ -14,6 +14,10 @@ Sun Sep 5 06:43:47 UTC 2021 - Aleksa Sarai <asarai@suse.com>
* --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 <asarai@suse.com>

View File

@ -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.