|
|
@ -1,14 +1,10 @@
|
|
|
|
# Rebuild --with static to enable static subpackages
|
|
|
|
|
|
|
|
# This is *not* supported by elfutils maintainers
|
|
|
|
|
|
|
|
%bcond_with static
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: elfutils
|
|
|
|
Name: elfutils
|
|
|
|
Version: 0.191
|
|
|
|
Version: 0.189
|
|
|
|
%global baserelease 4
|
|
|
|
%global baserelease 3
|
|
|
|
Release: %{baserelease}%{?dist}
|
|
|
|
Release: %{baserelease}%{?dist}
|
|
|
|
URL: http://elfutils.org/
|
|
|
|
URL: http://elfutils.org/
|
|
|
|
%global source_url ftp://sourceware.org/pub/elfutils/%{version}/
|
|
|
|
%global source_url ftp://sourceware.org/pub/elfutils/%{version}/
|
|
|
|
License: GPL-3.0-or-later AND (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GFDL-1.3-no-invariants-or-later
|
|
|
|
License: GPLv3+ and (GPLv2+ or LGPLv3+) and GFDL
|
|
|
|
Source: %{?source_url}%{name}-%{version}.tar.bz2
|
|
|
|
Source: %{?source_url}%{name}-%{version}.tar.bz2
|
|
|
|
Source1: elfutils-debuginfod.sysusers
|
|
|
|
Source1: elfutils-debuginfod.sysusers
|
|
|
|
Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
|
|
|
|
Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
|
|
|
@ -18,7 +14,12 @@ Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
|
|
|
|
|
|
|
|
|
|
|
|
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 20
|
|
|
|
|
|
|
|
# see Supplements: instead
|
|
|
|
|
|
|
|
# Recommends: elfutils-debuginfod-client%%{depsuffix} = %%{version}-%%{release}
|
|
|
|
|
|
|
|
%else
|
|
|
|
Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
# For libstdc++ demangle support
|
|
|
|
# For libstdc++ demangle support
|
|
|
@ -72,6 +73,13 @@ BuildRequires: gettext-devel
|
|
|
|
|
|
|
|
|
|
|
|
# Patches
|
|
|
|
# Patches
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# elfcompress: Don't compress if section already compressed unless forced
|
|
|
|
|
|
|
|
Patch1: elfutils-0.189-elfcompress.patch
|
|
|
|
|
|
|
|
# libelf: Replace list of elf_getdata_rawchunk results with a tree
|
|
|
|
|
|
|
|
Patch2: elfutils-0.189-elf_getdata_rawchunk.patch
|
|
|
|
|
|
|
|
# PR29696: Removed secondary fd close in cache config causing race condition
|
|
|
|
|
|
|
|
Patch3: elfutils-0.189-debuginfod_config_cache-double-close.patch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Elfutils is a collection of utilities, including stack (to show
|
|
|
|
Elfutils is a collection of utilities, including stack (to show
|
|
|
|
backtraces), nm (for listing symbols from object files), size
|
|
|
|
backtraces), nm (for listing symbols from object files), size
|
|
|
@ -82,7 +90,7 @@ elfcompress (to compress or decompress ELF sections).
|
|
|
|
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries to handle compiled objects
|
|
|
|
Summary: Libraries to handle compiled objects
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
License: GPLv2+ or LGPLv3+
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
Provides: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
Provides: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -106,12 +114,13 @@ libraries.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development libraries to handle compiled objects
|
|
|
|
Summary: Development libraries to handle compiled objects
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
License: GPLv2+ or LGPLv3+
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
Provides: elfutils-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
Provides: elfutils-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libelf-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libelf-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: elfutils-devel-static < 0.180-5
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
The elfutils-devel package contains the libraries to create
|
|
|
|
The elfutils-devel package contains the libraries to create
|
|
|
@ -119,25 +128,9 @@ applications for handling compiled objects. libdw provides access
|
|
|
|
to the DWARF debugging information. libasm provides a programmable
|
|
|
|
to the DWARF debugging information. libasm provides a programmable
|
|
|
|
assembler interface.
|
|
|
|
assembler interface.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with static}
|
|
|
|
|
|
|
|
%package devel-static
|
|
|
|
|
|
|
|
Summary: Static archives to handle compiled objects
|
|
|
|
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
|
|
|
|
Provides: elfutils-devel-static%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: elfutils-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: elfutils-libelf-devel-static%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: libzstd-static%{depsuffix}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
|
|
|
|
The elfutils-devel-static package contains the static archives
|
|
|
|
|
|
|
|
with the code to handle compiled objects.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package libelf
|
|
|
|
%package libelf
|
|
|
|
Summary: Library to read and write ELF files
|
|
|
|
Summary: Library to read and write ELF files
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
License: GPLv2+ or LGPLv3+
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
Provides: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
Provides: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -151,12 +144,13 @@ elfutils package use it also to generate new ELF files.
|
|
|
|
|
|
|
|
|
|
|
|
%package libelf-devel
|
|
|
|
%package libelf-devel
|
|
|
|
Summary: Development support for libelf
|
|
|
|
Summary: Development support for libelf
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
License: GPLv2+ or LGPLv3+
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
Provides: elfutils-libelf-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
Provides: elfutils-libelf-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
Obsoletes: libelf-devel <= 0.8.2-2
|
|
|
|
Obsoletes: libelf-devel <= 0.8.2-2
|
|
|
|
|
|
|
|
Obsoletes: elfutils-libelf-devel-static < 0.180-5
|
|
|
|
|
|
|
|
|
|
|
|
%description libelf-devel
|
|
|
|
%description libelf-devel
|
|
|
|
The elfutils-libelf-devel package contains the libraries to create
|
|
|
|
The elfutils-libelf-devel package contains the libraries to create
|
|
|
@ -164,24 +158,10 @@ applications for handling compiled objects. libelf allows you to
|
|
|
|
access the internals of the ELF object file format, so you can see the
|
|
|
|
access the internals of the ELF object file format, so you can see the
|
|
|
|
different sections of an ELF file.
|
|
|
|
different sections of an ELF file.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with static}
|
|
|
|
|
|
|
|
%package libelf-devel-static
|
|
|
|
|
|
|
|
Summary: Static archive of libelf
|
|
|
|
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
|
|
|
|
Provides: elfutils-libelf-devel-static%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: elfutils-libelf-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description libelf-devel-static
|
|
|
|
|
|
|
|
The elfutils-libelf-static package contains the static archive
|
|
|
|
|
|
|
|
for libelf.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{provide_yama_scope}
|
|
|
|
%if %{provide_yama_scope}
|
|
|
|
%package default-yama-scope
|
|
|
|
%package default-yama-scope
|
|
|
|
Summary: Default yama attach scope sysctl setting
|
|
|
|
Summary: Default yama attach scope sysctl setting
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
License: GPLv2+ or LGPLv3+
|
|
|
|
Provides: default-yama-scope
|
|
|
|
Provides: default-yama-scope
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
# For the sysctl_apply macro we need systemd as build requires.
|
|
|
|
# For the sysctl_apply macro we need systemd as build requires.
|
|
|
@ -215,7 +195,7 @@ profiling) of processes.
|
|
|
|
|
|
|
|
|
|
|
|
%package debuginfod-client
|
|
|
|
%package debuginfod-client
|
|
|
|
Summary: Library and command line client for build-id HTTP ELF/DWARF server
|
|
|
|
Summary: Library and command line client for build-id HTTP ELF/DWARF server
|
|
|
|
License: GPL-3.0-or-later AND (GPL-2.0-or-later OR LGPL-3.0-or-later)
|
|
|
|
License: GPLv3+ and (GPLv2+ or LGPLv3+)
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
Provides: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
|
|
|
Provides: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -232,7 +212,7 @@ Supplements: valgrind annocheck bpftrace dwarves libabigail
|
|
|
|
|
|
|
|
|
|
|
|
%package debuginfod-client-devel
|
|
|
|
%package debuginfod-client-devel
|
|
|
|
Summary: Libraries and headers to build debuginfod client applications
|
|
|
|
Summary: Libraries and headers to build debuginfod client applications
|
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
|
|
|
License: GPLv2+ or LGPLv3+
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
%if 0%{!?_isa:1}
|
|
|
|
Provides: elfutils-debuginfod-client-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
Provides: elfutils-debuginfod-client-devel%{depsuffix} = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -240,7 +220,7 @@ Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%package debuginfod
|
|
|
|
%package debuginfod
|
|
|
|
Summary: HTTP ELF/DWARF file server addressed by build-id
|
|
|
|
Summary: HTTP ELF/DWARF file server addressed by build-id
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
License: GPLv3+
|
|
|
|
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
|
|
|
Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
|
|
@ -310,10 +290,8 @@ trap '' EXIT
|
|
|
|
%make_install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
|
|
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
|
|
|
|
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
|
|
|
|
%if %{without static}
|
|
|
|
|
|
|
|
# We don't want the static libraries
|
|
|
|
# We don't want the static libraries
|
|
|
|
rm ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib{elf,dw,asm}.a
|
|
|
|
rm ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib{elf,dw,asm}.a
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We don't have standard DEBUGINFOD_URLS necessarily, but still ship
|
|
|
|
# We don't have standard DEBUGINFOD_URLS necessarily, but still ship
|
|
|
|
# the profile.d/debuginfod* files, in case of a site specific server.
|
|
|
|
# the profile.d/debuginfod* files, in case of a site specific server.
|
|
|
@ -383,7 +361,6 @@ fi
|
|
|
|
%{_bindir}/eu-ranlib
|
|
|
|
%{_bindir}/eu-ranlib
|
|
|
|
%{_bindir}/eu-readelf
|
|
|
|
%{_bindir}/eu-readelf
|
|
|
|
%{_bindir}/eu-size
|
|
|
|
%{_bindir}/eu-size
|
|
|
|
%{_bindir}/eu-srcfiles
|
|
|
|
|
|
|
|
%{_bindir}/eu-stack
|
|
|
|
%{_bindir}/eu-stack
|
|
|
|
%{_bindir}/eu-strings
|
|
|
|
%{_bindir}/eu-strings
|
|
|
|
%{_bindir}/eu-strip
|
|
|
|
%{_bindir}/eu-strip
|
|
|
@ -411,12 +388,6 @@ fi
|
|
|
|
%{_libdir}/libdw.so
|
|
|
|
%{_libdir}/libdw.so
|
|
|
|
%{_libdir}/pkgconfig/libdw.pc
|
|
|
|
%{_libdir}/pkgconfig/libdw.pc
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with static}
|
|
|
|
|
|
|
|
%files devel-static
|
|
|
|
|
|
|
|
%{_libdir}/libdw.a
|
|
|
|
|
|
|
|
%{_libdir}/libasm.a
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang libelf
|
|
|
|
%files -f %{name}.lang libelf
|
|
|
|
%license COPYING-GPLV2 COPYING-LGPLV3
|
|
|
|
%license COPYING-GPLV2 COPYING-LGPLV3
|
|
|
|
%{_libdir}/libelf-%{version}.so
|
|
|
|
%{_libdir}/libelf-%{version}.so
|
|
|
@ -430,11 +401,6 @@ fi
|
|
|
|
%{_libdir}/pkgconfig/libelf.pc
|
|
|
|
%{_libdir}/pkgconfig/libelf.pc
|
|
|
|
%{_mandir}/man3/elf_*.3*
|
|
|
|
%{_mandir}/man3/elf_*.3*
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with static}
|
|
|
|
|
|
|
|
%files libelf-devel-static
|
|
|
|
|
|
|
|
%{_libdir}/libelf.a
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{provide_yama_scope}
|
|
|
|
%if %{provide_yama_scope}
|
|
|
|
%files default-yama-scope
|
|
|
|
%files default-yama-scope
|
|
|
|
%{_sysctldir}/10-default-yama-scope.conf
|
|
|
|
%{_sysctldir}/10-default-yama-scope.conf
|
|
|
@ -465,6 +431,7 @@ fi
|
|
|
|
%{_sysusersdir}/elfutils-debuginfod.conf
|
|
|
|
%{_sysusersdir}/elfutils-debuginfod.conf
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{_mandir}/man8/debuginfod*.8*
|
|
|
|
%{_mandir}/man8/debuginfod*.8*
|
|
|
|
|
|
|
|
%{_mandir}/man7/debuginfod*.7*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod
|
|
|
|
%dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod
|
|
|
@ -488,36 +455,6 @@ exit 0
|
|
|
|
%systemd_postun_with_restart debuginfod.service
|
|
|
|
%systemd_postun_with_restart debuginfod.service
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Apr 19 2024 Aaron Merey <amerey@redhat.com> - 0.191-3
|
|
|
|
|
|
|
|
- eu-srcfiles directly links to libdebuginfod.so so explicitly
|
|
|
|
|
|
|
|
Require elfutils-debuginfod-client not just Recommends.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 18 2024 Aaron Merey <amerey@redhat.com> - 0.191-2
|
|
|
|
|
|
|
|
- Update SPDX licenses.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 12 2024 Aaron Merey <amerey@redhat.com> - 0.191-1
|
|
|
|
|
|
|
|
- Upgrade to upstream elfutils 0.191
|
|
|
|
|
|
|
|
- Drop upstreamed patches
|
|
|
|
|
|
|
|
elfutils-0.190-fix-core-noncontig.patch
|
|
|
|
|
|
|
|
elfutils-0.190-gcc-14.patch
|
|
|
|
|
|
|
|
elfutils-0.190-remove-ET_REL-unstrip-test.patch
|
|
|
|
|
|
|
|
- Drop testcore-noncontig.bz2
|
|
|
|
|
|
|
|
- Add elfutils-0.191-profile-empty-urls.patch
|
|
|
|
|
|
|
|
- Add elfutils-0.191-riscv-flatten.patch
|
|
|
|
|
|
|
|
- Add feature flag for reenabling elfutils-libelf-devel-static and elfutils-devel-static
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 8 2023 Aaron Merey <amerey@redhat.com> - 0.190-2
|
|
|
|
|
|
|
|
- Add elfutils-0.190-fix-core-noncontig.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 3 2023 Mark Wielaard <mjw@redhat.com> - 0.190-1
|
|
|
|
|
|
|
|
- Upgrade to upstream elfutils 0.190
|
|
|
|
|
|
|
|
- Add eu-srcfiles
|
|
|
|
|
|
|
|
- Drop upstreamed patches
|
|
|
|
|
|
|
|
elfutils-0.189-debuginfod_config_cache-double-close.patch
|
|
|
|
|
|
|
|
elfutils-0.189-elf_getdata_rawchunk.patch
|
|
|
|
|
|
|
|
elfutils-0.189-elfcompress.patch
|
|
|
|
|
|
|
|
- Only package debuginfod-client-config.7 manpage for debuginfod-client
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 28 2023 Mark Wielaard <mjw@redhat.com> - 0.189-3
|
|
|
|
* Wed Jun 28 2023 Mark Wielaard <mjw@redhat.com> - 0.189-3
|
|
|
|
- Add elfutils-0.189-elf_getdata_rawchunk.patch
|
|
|
|
- Add elfutils-0.189-elf_getdata_rawchunk.patch
|
|
|
|
- Add elfutils-0.189-debuginfod_config_cache-double-close.patch
|
|
|
|
- Add elfutils-0.189-debuginfod_config_cache-double-close.patch
|
|
|
|