Bugzilla – Bug 1142348
gdb is build without lzma support
Last modified: 2019-07-24 16:48:48 UTC
Consequently, it cannot read .gnu_debugdata, which is xz-compressed. Currently testing: ... $ osc diff -r1:2 Index: gdb.changes =================================================================== --- gdb.changes (revision 1) +++ gdb.changes (revision 2) @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Jul 22 11:30:43 UTC 2019 - Tom de Vries <tdevries@suse.de> + +- Add BuildRequires xz-devel and Requires liblzma5 + +------------------------------------------------------------------- Wed Jul 3 11:38:05 UTC 2019 - Tom de Vries <tdevries@suse.de> - Add BuildRequires valgrind for make check Index: gdb.spec =================================================================== --- gdb.spec (revision 1) +++ gdb.spec (revision 2) @@ -270,6 +270,8 @@ BuildRequires: readline-devel BuildRequires: rpm-devel BuildRequires: zlib-devel +Requires: liblzma5 +BuildRequires: xz-devel %if 0%{!?_without_python:1} %if 0%{suse_version} > 1000 Requires: %{python}-base ...
(In reply to Tom de Vries from comment #0) > +Requires: liblzma5 > +BuildRequires: xz-devel Hmm, apparently the Requires is not necessary: ... [ 4646s] RPMLINT report: [ 4646s] =============== [ 4658s] gdb.x86_64: W: explicit-lib-dependency liblzma5 [ 4658s] You must let rpm find the library dependencies by itself. Do not put unneeded [ 4658s] explicit Requires: tags. ...
Yeah, don't ever put Requires against shared libs into .spec files. (There are sometimes, very seldomly, cases where it's needed, either for compatiblity reasons, or because auto-req-prov doesn't work or because there are alternatives and you know that it only works with one. The latter two would usually be a bug in the distro, though. But that's why it's only a warning, not an error.)
https://build.opensuse.org/request/show/717896
https://build.opensuse.org/request/show/717918
Request accepted, marking resolved-fixed.