forked from pool/elfutils
Accepting request 752710 from home:marxin:branches:Base:System-new
- Update to version 0.178: debuginfod: New server, client tool and library to index and fetch ELF/DWARF files addressed by build-id through HTTP. doc: There are now some manual pages for functions and tools. backends: The libebl libraries are no longer dynamically loaded through dlopen, but are now compiled into libdw.so directly. readelf: -n, --notes now takes an optional "SECTION" argument. -p and -x now also handle section numbers. New option --dyn-sym to show just the dynamic symbol table. libcpu: Add RISC-V disassembler. libdw: Abbrevs and DIEs can now be read concurrently by multiple threads through the same Dwarf handle. libdwfl: Will try to use debuginfod when installed as fallback to retrieve ELF and DWARF debug data files by build-id. - remove dwelf_elf_e_machine_string.patch. - remove unused libebl-plugins and libebl-devel subpackages - new subpackages debuginfod-client, debuginfod-client-devel and debuginfod added - main package binaries are explicitely listed and man pages for the binaries are included OBS-URL: https://build.opensuse.org/request/show/752710 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=140
This commit is contained in:
parent
9c3347a7b7
commit
1d8cbb5168
@ -1,11 +1,4 @@
|
|||||||
libasm1
|
libasm1
|
||||||
libebl-plugins
|
|
||||||
obsoletes "libebl-<targettype> < <version>"
|
|
||||||
provides "libebl-<targettype> = <version>"
|
|
||||||
obsoletes "libebl1-<targettype> < <version>"
|
|
||||||
provides "libebl1-<targettype> = <version>"
|
|
||||||
libelf1
|
|
||||||
requires "libebl-plugins-<targettype> = <version>"
|
|
||||||
libdw1
|
libdw1
|
||||||
libelf-devel
|
libelf-devel
|
||||||
requires -libelf-<targettype>
|
requires -libelf-<targettype>
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
Index: elfutils-0.177/tests/dwelf_elf_e_machine_string.c
|
|
||||||
===================================================================
|
|
||||||
--- elfutils-0.177.orig/tests/dwelf_elf_e_machine_string.c
|
|
||||||
+++ elfutils-0.177/tests/dwelf_elf_e_machine_string.c
|
|
||||||
@@ -40,6 +40,7 @@ main (int argc, char **argv)
|
|
||||||
int em;
|
|
||||||
const char *machine;
|
|
||||||
|
|
||||||
+ errno = 0;
|
|
||||||
if (strncmp ("0x", argv[i], 2) == 0)
|
|
||||||
val = strtol (&argv[i][2], NULL, 16);
|
|
||||||
else
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fa489deccbcae7d8c920f60d85906124c1989c591196d90e0fd668e3dc05042e
|
|
||||||
size 8852413
|
|
Binary file not shown.
3
elfutils-0.178.tar.bz2
Normal file
3
elfutils-0.178.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:31e7a00e96d4e9c4bda452e1f2cdac4daf8abd24f5e154dee232131899f3a0f2
|
||||||
|
size 9007557
|
BIN
elfutils-0.178.tar.bz2.sig
Normal file
BIN
elfutils-0.178.tar.bz2.sig
Normal file
Binary file not shown.
@ -1,3 +1,33 @@
|
|||||||
|
Fri Nov 29 16:01:36 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Update to version 0.178:
|
||||||
|
|
||||||
|
debuginfod: New server, client tool and library to index and fetch
|
||||||
|
ELF/DWARF files addressed by build-id through HTTP.
|
||||||
|
|
||||||
|
doc: There are now some manual pages for functions and tools.
|
||||||
|
|
||||||
|
backends: The libebl libraries are no longer dynamically loaded through
|
||||||
|
dlopen, but are now compiled into libdw.so directly.
|
||||||
|
|
||||||
|
readelf: -n, --notes now takes an optional "SECTION" argument.
|
||||||
|
-p and -x now also handle section numbers.
|
||||||
|
New option --dyn-sym to show just the dynamic symbol table.
|
||||||
|
|
||||||
|
libcpu: Add RISC-V disassembler.
|
||||||
|
|
||||||
|
libdw: Abbrevs and DIEs can now be read concurrently by multiple
|
||||||
|
threads through the same Dwarf handle.
|
||||||
|
|
||||||
|
libdwfl: Will try to use debuginfod when installed as fallback to
|
||||||
|
retrieve ELF and DWARF debug data files by build-id.
|
||||||
|
- remove dwelf_elf_e_machine_string.patch.
|
||||||
|
- remove unused libebl-plugins and libebl-devel subpackages
|
||||||
|
- new subpackages debuginfod-client, debuginfod-client-devel and
|
||||||
|
debuginfod added
|
||||||
|
- main package binaries are explicitely listed and man pages
|
||||||
|
for the binaries are included
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 14 15:19:43 UTC 2019 - Andreas Schwab <schwab@suse.de>
|
Thu Nov 14 15:19:43 UTC 2019 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
145
elfutils.spec
145
elfutils.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package elfutils
|
# spec file for package elfutils
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC.
|
# Copyright (c) 2019 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: elfutils
|
Name: elfutils
|
||||||
Version: 0.177
|
Version: 0.178
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Higher-level library to access ELF files
|
Summary: Higher-level library to access ELF files
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
@ -31,15 +31,23 @@ Source1: README-BEFORE-ADDING-PATCHES
|
|||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Source3: %{name}.changes
|
Source3: %{name}.changes
|
||||||
Source5: %{name}.keyring
|
Source5: %{name}.keyring
|
||||||
Patch1: dwelf_elf_e_machine_string.patch
|
|
||||||
Patch2: cfi-fix.patch
|
Patch2: cfi-fix.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libbz2-devel
|
BuildRequires: libbz2-devel
|
||||||
BuildRequires: xz-devel
|
BuildRequires: xz-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
# For debuginfod
|
||||||
|
BuildRequires: pkgconfig(libarchive) >= 3.1.2
|
||||||
|
BuildRequires: pkgconfig(libcurl) >= 7.29.0
|
||||||
|
BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33
|
||||||
|
BuildRequires: pkgconfig(sqlite3) >= 3.7.17
|
||||||
|
# For the run-debuginfod-find.sh test case in %check for /usr/sbin/ss
|
||||||
|
BuildRequires: curl
|
||||||
|
BuildRequires: iproute
|
||||||
|
|
||||||
%description
|
%description
|
||||||
elfutils is a collection of utilities and libraries to read, create
|
elfutils is a collection of utilities and libraries to read, create
|
||||||
@ -65,33 +73,9 @@ Requires: libasm1 = %{version}
|
|||||||
This package contains the headers and libraries needed to build
|
This package contains the headers and libraries needed to build
|
||||||
applications that require libasm.
|
applications that require libasm.
|
||||||
|
|
||||||
%package -n libebl-plugins
|
|
||||||
Summary: Architecture backends for libebl
|
|
||||||
Group: System/Libraries
|
|
||||||
Provides: libebl = %{version}-%{release}
|
|
||||||
Obsoletes: libebl < %{version}-%{release}
|
|
||||||
Provides: libebl1 = %{version}-%{release}
|
|
||||||
Obsoletes: libebl1 < %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n libebl-plugins
|
|
||||||
This subpackage contains the plugins to read architecture-specific
|
|
||||||
debug info. This is part of the elfutils package.
|
|
||||||
|
|
||||||
%package -n libebl-devel
|
|
||||||
Summary: Development files for libebl and for EBL plugins
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: glibc-devel
|
|
||||||
Requires: libdw-devel = %{version}
|
|
||||||
|
|
||||||
%description -n libebl-devel
|
|
||||||
This package contains the headers and libraries needed to build
|
|
||||||
applications that require libebl, or to build additional EBL
|
|
||||||
architecutre backend plugins.
|
|
||||||
|
|
||||||
%package -n libelf1
|
%package -n libelf1
|
||||||
Summary: Library to read and write ELF files
|
Summary: Library to read and write ELF files
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: libebl-plugins = %{version}
|
|
||||||
|
|
||||||
%description -n libelf1
|
%description -n libelf1
|
||||||
This package provides a high-level library to read and write ELF files.
|
This package provides a high-level library to read and write ELF files.
|
||||||
@ -127,11 +111,41 @@ Requires: libelf-devel = %{version}
|
|||||||
This package contains the headers and libraries needed to build
|
This package contains the headers and libraries needed to build
|
||||||
applications that require libdw.
|
applications that require libdw.
|
||||||
|
|
||||||
|
%package -n debuginfod-client
|
||||||
|
Summary: Library and command line client for build-id HTTP ELF/DWARF server
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
|
||||||
|
%description -n debuginfod-client
|
||||||
|
The elfutils-debuginfod-client package contains shared libraries
|
||||||
|
dynamically loaded from -ldw, which use a debuginfod service
|
||||||
|
to look up debuginfo and associated data. Also includes a
|
||||||
|
command-line frontend.
|
||||||
|
|
||||||
|
%package -n debuginfod-client-devel
|
||||||
|
Summary: Libraries and headers to build debuginfod client applications
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
|
%description -n debuginfod-client-devel
|
||||||
|
The elfutils-debuginfod-client-devel package contains the libraries
|
||||||
|
to create applications to use the debuginfod service.
|
||||||
|
|
||||||
|
%package -n debuginfod
|
||||||
|
Summary: HTTP ELF/DWARF file server addressed by build-id
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
%{?systemd_requires}
|
||||||
|
|
||||||
|
%description -n debuginfod
|
||||||
|
The elfutils-debuginfod package contains the debuginfod binary
|
||||||
|
and control files for a service that can provide ELF/DWARF
|
||||||
|
files to remote clients, based on build-id identification.
|
||||||
|
The ELF/DWARF file searching functions in libdwfl can query
|
||||||
|
such servers to download those files on demand.
|
||||||
|
|
||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -165,17 +179,19 @@ rm -f %{buildroot}/%{_libdir}/*.la
|
|||||||
ls -lR %{buildroot}/%{_libdir}/libelf*
|
ls -lR %{buildroot}/%{_libdir}/libelf*
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
install -Dm0644 config/debuginfod.service ${RPM_BUILD_ROOT}%{_unitdir}/debuginfod.service
|
||||||
|
install -Dm0644 config/debuginfod.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/debuginfod
|
||||||
|
mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod
|
||||||
|
touch ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod/debuginfod.sqlite
|
||||||
|
|
||||||
%post -n libasm1 -p /sbin/ldconfig
|
%post -n libasm1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libelf1 -p /sbin/ldconfig
|
%post -n libelf1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libdw1 -p /sbin/ldconfig
|
%post -n libdw1 -p /sbin/ldconfig
|
||||||
|
%post -n debuginfod-client -p /sbin/ldconfig
|
||||||
%postun -n libasm1 -p /sbin/ldconfig
|
%postun -n libasm1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libelf1 -p /sbin/ldconfig
|
%postun -n libelf1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libdw1 -p /sbin/ldconfig
|
%postun -n libdw1 -p /sbin/ldconfig
|
||||||
|
%postun -n debuginfod-client -p /sbin/ldconfig
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?qemu_user_space_build}
|
%if 0%{?qemu_user_space_build}
|
||||||
@ -187,7 +203,24 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
|
|||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
|
%doc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
|
||||||
%{_bindir}/*
|
%{_bindir}/eu-addr2line
|
||||||
|
%{_bindir}/eu-ar
|
||||||
|
%{_bindir}/eu-elfclassify
|
||||||
|
%{_bindir}/eu-elfcmp
|
||||||
|
%{_bindir}/eu-elfcompress
|
||||||
|
%{_bindir}/eu-elflint
|
||||||
|
%{_bindir}/eu-findtextrel
|
||||||
|
%{_bindir}/eu-make-debug-archive
|
||||||
|
%{_bindir}/eu-nm
|
||||||
|
%{_bindir}/eu-objdump
|
||||||
|
%{_bindir}/eu-ranlib
|
||||||
|
%{_bindir}/eu-readelf
|
||||||
|
%{_bindir}/eu-size
|
||||||
|
%{_bindir}/eu-stack
|
||||||
|
%{_bindir}/eu-strings
|
||||||
|
%{_bindir}/eu-strip
|
||||||
|
%{_bindir}/eu-unstrip
|
||||||
|
%{_mandir}/man1/eu-*.1*
|
||||||
|
|
||||||
%files -n libasm1
|
%files -n libasm1
|
||||||
%{_libdir}/libasm.so.*
|
%{_libdir}/libasm.so.*
|
||||||
@ -199,14 +232,6 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
|
|||||||
%dir %{_includedir}/elfutils
|
%dir %{_includedir}/elfutils
|
||||||
%{_includedir}/elfutils/libasm.h
|
%{_includedir}/elfutils/libasm.h
|
||||||
|
|
||||||
%files -n libebl-plugins
|
|
||||||
%{_libdir}/elfutils
|
|
||||||
|
|
||||||
%files -n libebl-devel
|
|
||||||
%{_libdir}/libebl.a
|
|
||||||
%dir %{_includedir}/elfutils
|
|
||||||
%{_includedir}/elfutils/libebl.h
|
|
||||||
|
|
||||||
%files -n libelf1
|
%files -n libelf1
|
||||||
%{_libdir}/libelf.so.*
|
%{_libdir}/libelf.so.*
|
||||||
%{_libdir}/libelf-%{version}.so
|
%{_libdir}/libelf-%{version}.so
|
||||||
@ -221,6 +246,7 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
|
|||||||
%{_includedir}/elfutils/elf-knowledge.h
|
%{_includedir}/elfutils/elf-knowledge.h
|
||||||
%{_includedir}/elfutils/version.h
|
%{_includedir}/elfutils/version.h
|
||||||
%{_libdir}/pkgconfig/libelf.pc
|
%{_libdir}/pkgconfig/libelf.pc
|
||||||
|
%{_mandir}/man3/elf_*.3*
|
||||||
|
|
||||||
%files -n libdw1
|
%files -n libdw1
|
||||||
%{_libdir}/libdw.so.*
|
%{_libdir}/libdw.so.*
|
||||||
@ -239,4 +265,39 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
|
|||||||
|
|
||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
|
|
||||||
|
%files -n debuginfod-client
|
||||||
|
%{_libdir}/libdebuginfod-%{version}.so
|
||||||
|
%{_bindir}/debuginfod-find
|
||||||
|
%{_mandir}/man1/debuginfod-find.1*
|
||||||
|
|
||||||
|
%files -n debuginfod-client-devel
|
||||||
|
%{_libdir}/pkgconfig/libdebuginfod.pc
|
||||||
|
%{_mandir}/man3/debuginfod_*.3*
|
||||||
|
%{_includedir}/elfutils/debuginfod.h
|
||||||
|
%{_libdir}/libdebuginfod.so*
|
||||||
|
|
||||||
|
%files -n debuginfod
|
||||||
|
%{_bindir}/debuginfod
|
||||||
|
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/debuginfod
|
||||||
|
%{_unitdir}/debuginfod.service
|
||||||
|
%{_mandir}/man8/debuginfod.8*
|
||||||
|
%{_sysconfdir}/sysconfig/debuginfod
|
||||||
|
|
||||||
|
%dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod
|
||||||
|
%verify(not md5 size mtime) %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite
|
||||||
|
|
||||||
|
%pre -n debuginfod
|
||||||
|
getent group debuginfod >/dev/null || %{_sbindir}/groupadd -r debuginfod
|
||||||
|
getent passwd debuginfod >/dev/null || %{_sbindir}/useradd -r -g debuginfod -d /var/cache/debuginfod -s /bin/false -c "elfutils debuginfo server" debuginfod
|
||||||
|
%service_add_pre debuginfod.service
|
||||||
|
|
||||||
|
%post -n debuginfod
|
||||||
|
%service_add_post debuginfod.service
|
||||||
|
|
||||||
|
%preun -n debuginfod
|
||||||
|
%service_del_preun debuginfod.service
|
||||||
|
|
||||||
|
%postun -n debuginfod
|
||||||
|
%service_del_postun debuginfod.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user