Name: elfutils Version: 0.183 Release: alt1 Summary: A collection of utilities and DSOs to handle ELF files and DWARF data License: GPLv3+ and (GPLv2+ or LGPLv3+) Group: Development/C URL: https://sourceware.org/elfutils/ # git://git.altlinux.org/gears/e/elfutils.git Source: %name-%version-%release.tar Requires: libelf = %EVR %def_enable static %def_enable check %def_enable libdebuginfod %def_enable debuginfod %def_enable debuginfod_urls BuildRequires: gettext BuildRequires: bison BuildRequires: flex # libstdc++ demangle support BuildRequires: gcc-c++ # compression support BuildRequires: bzlib-devel liblzma-devel libzstd-devel zlib-devel %if_enabled libdebuginfod BuildRequires: libcurl-devel %endif %if_enabled debuginfod BuildRequires: libarchive-devel BuildRequires: libmicrohttpd-devel BuildRequires: libsqlite3-devel %endif %{?_enable_check:BuildRequires: /proc} %define _gnu %nil %define _configure_script ../configure %define buildtarget build-%_target_platform %description Elfutils is a collection of utilities, including - eu-stack (to show backtraces), - eu-nm (for listing symbols from object files), - eu-size (for listing the section sizes of an object or archive file), - eu-strip (for discarding symbols), - eu-readelf (to see the raw ELF file structures), - eu-elflint (to check for well-formed ELF files), - eu-elfcompress (to compress or decompress ELF sections). %package devel Summary: Development libraries to handle compiled objects License: GPLv2+ or LGPLv3+ Group: Development/C Requires: %name = %EVR Requires: libasm-devel = %EVR, libdw-devel = %EVR, libelf-devel = %EVR BuildArch: noarch %description devel This package pulls in the libraries to create applications for handling compiled objects. %package devel-static Summary: Static archives to handle compiled objects License: GPLv2+ or LGPLv3+ Group: Development/C Requires: %name-devel = %EVR Requires: libasm-devel-static = %EVR Requires: libdw-devel-static = %EVR Requires: libelf-devel-static = %EVR BuildArch: noarch %description devel-static This package pulls in static archives with the code to handle compiled objects. %package -n libasm Summary: Shared library with a programmable assembler interface License: GPLv2+ or LGPLv3+ Group: System/Libraries Requires: libelf = %EVR, libdw = %EVR %description -n libasm This package provides a shared library with a programmable assembler interface. %package -n libasm-devel Summary: Development libasm library and header files License: GPLv2+ or LGPLv3+ Group: Development/C Requires: libasm = %EVR Requires: libelf-devel = %EVR, libdw-devel = %EVR %description -n libasm-devel This package contains the library and header files to create libasm based applications. %package -n libasm-devel-static Summary: Static libasm library License: GPLv2+ or LGPLv3+ Group: Development/C Requires: libasm-devel = %EVR Requires: libelf-devel-static = %EVR, libdw-devel-static = %EVR %description -n libasm-devel-static This package contains static libasm library. %package -n libdw Summary: Shared library that provides access to the DWARF debug information License: GPLv2+ or LGPLv3+ Group: System/Libraries Requires: libelf = %EVR %description -n libdw This package provides a shared library that provides access to DWARF debug information stored inside ELF files. %package -n libdw-devel Summary: Development libdw library and header files License: GPLv2+ or LGPLv3+ Group: Development/C Requires: libdw = %EVR Requires: libelf-devel = %EVR %description -n libdw-devel This package contains the library and header files to create libdw based applications. %package -n libdw-devel-static Summary: Static libdw library License: GPLv2+ or LGPLv3+ Group: Development/C Requires: libasm-devel = %EVR, libdw-devel = %EVR Requires: libelf-devel-static = %EVR %description -n libdw-devel-static This package contains static libdw library. %package -n libelf Summary: Shared library to read and write ELF files License: GPLv2+ or LGPLv3+ Group: System/Libraries %description -n libelf This package provides a shared library which allows reading and writing ELF files on a high level. Third party programs depend on this package to read internals of ELF files. The programs of the elfutils package use it also to generate new ELF files. %package -n libelf-devel Summary: Development libelf library and header files License: GPLv2+ or LGPLv3+ Group: Development/C Requires: libelf = %EVR %description -n libelf-devel This package contains the library and header files to create applications for handling compiled objects. libelf allows you to access the internals of the ELF object file format, so you can see the different sections of an ELF file. %package -n libelf-devel-static Summary: Static libelf library License: GPLv2+ or LGPLv3+ Group: Development/C Requires: libelf-devel = %EVR %description -n libelf-devel-static This package contains static libelf library. %package -n libdebuginfod Summary: Shared library to access debuginfod License: GPLv2+ or LGPLv3+ Group: System/Libraries Requires: debuginfod-urls = %EVR %description -n libdebuginfod This package provides libdebuginfod shared library. %package -n libdebuginfod-devel Summary: Development libdebuginfod library and header files License: GPLv2+ or LGPLv3+ Group: Development/C Requires: libdebuginfod = %EVR %description -n libdebuginfod-devel This package contains the library and header files for libdebuginfod. %package -n debuginfod-find Summary: A command line client for build-id HTTP ELF/DWARF server License: GPLv3+ Group: Development/C Requires: libdebuginfod = %EVR %description -n debuginfod-find This packages contains debuginfod-find command line client for build-id HTTP ELF/DWARF server. %package -n debuginfod-urls Summary: Shell profiles with canned debuginfod urls License: GPLv3+ or LGPLv3+ Group: Development/C BuildArch: noarch Requires: libelf = %EVR %description -n debuginfod-urls This package contains debuginfod url for ALT. %package -n debuginfod Summary: Debuginfo-related http file-server daemon License: GPLv3+ or LGPLv3+ Group: System/Servers %description -n debuginfod This package contains debuginfod daemon. %prep %setup -n %name-%version-%release %build %add_optflags -fexceptions %autoreconf rm -rf %buildtarget mkdir %buildtarget cd %buildtarget %configure \ --disable-silent-rules \ --enable-dependency-tracking \ --enable-maintainer-mode \ --program-prefix=eu- \ %{subst_enable libdebuginfod} \ %if_enabled debuginfod_urls --enable-debuginfod-urls="https://debuginfod.altlinux.org/" \ %endif %{subst_enable debuginfod} %make_build %install %makeinstall_std -C %buildtarget %find_lang %name %set_verify_elf_method strict,rpath=normal %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 %if_disabled debuginfod_urls # Explicitly remove debuginfod profile.d's as we don't have # default value for DEBUGINFOD_URLS anyway. rm %buildroot/%_sysconfdir/profile.d/debuginfod.* %endif %check export PATH="%buildroot%_bindir:$PATH" LD_LIBRARY_PATH=%buildroot%_libdir %make_build -k check -C %buildtarget VERBOSE=1 %files %_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 %_man1dir/eu-* %files devel %if_enabled static %files devel-static %endif %files -n libasm %_libdir/libasm-*.so %_libdir/libasm*.so.* %files -n libasm-devel %dir %_includedir/elfutils/ %_includedir/elfutils/libasm.h %_libdir/libasm.so %if_enabled static %files -n libasm-devel-static %_libdir/libasm.a %endif %files -n libdw %_libdir/libdw-*.so %_libdir/libdw*.so.* %files -n libdw-devel %_includedir/dwarf.h %dir %_includedir/elfutils/ %_includedir/elfutils/libdw.h %_includedir/elfutils/libdwfl.h %_includedir/elfutils/libdwelf.h %_includedir/elfutils/known-dwarf.h %_libdir/libdw.so %_pkgconfigdir/libdw.pc %if_enabled static %files -n libdw-devel-static %dir %_includedir/elfutils/ %_libdir/libdw.a %endif %files -n libelf -f %name.lang %doc AUTHORS CONTRIBUTING NEWS NOTES README THANKS %_libdir/libelf-*.so %_libdir/libelf*.so.* %files -n libelf-devel %_includedir/libelf.h %_includedir/gelf.h %_includedir/nlist.h %dir %_includedir/elfutils/ %_includedir/elfutils/elf-knowledge.h %_includedir/elfutils/version.h %_libdir/libelf.so %_pkgconfigdir/libelf.pc %_man3dir/elf_* %if_enabled static %files -n libelf-devel-static %_libdir/libelf.a %endif %if_enabled libdebuginfod %files -n libdebuginfod %_libdir/libdebuginfod-*.so %_libdir/libdebuginfod.so.* %files -n libdebuginfod-devel %dir %_includedir/elfutils/ %_includedir/elfutils/debuginfod.h %_libdir/libdebuginfod.so %_pkgconfigdir/libdebuginfod.pc %_man3dir/debuginfod*.3* %files -n debuginfod-find %_bindir/debuginfod-find %_man1dir/debuginfod-find.1* %endif %if_enabled debuginfod %files -n debuginfod %_bindir/debuginfod %_man8dir/debuginfod.* %endif %if_enabled debuginfod_urls %files -n debuginfod-urls %config(noreplace) %_sysconfdir/profile.d/debuginfod.*sh %endif %changelog * Fri Feb 05 2021 Dmitry V. Levin 0.183-alt1 - elfutils-0.182 -> elfutils-0.183. * Tue Dec 01 2020 Dmitry V. Levin 0.182-alt3 - Added libelf to libdebuginfod requirements. - Packaged debuginfod-find tool into a separate subpackage. - Packaged debuginfod-urls pointing to ALT debuginfod server (by Vitaly Chikunov). * Tue Nov 03 2020 Vitaly Chikunov 0.182-alt2 - spec: Enable libdebuginfod and debuginfod. * Sat Oct 31 2020 Dmitry V. Levin 0.182-alt1 - elfutils-0.181 -> elfutils-0.182. * Tue Sep 08 2020 Dmitry V. Levin 0.181-alt1 - elfutils-0.180-22-g15495182 -> elfutils-0.181. * Thu Aug 20 2020 Dmitry V. Levin 0.180.0.22.g1549-alt2 - libdwfl: do not dlopen libdebuginfod.so in --disable-libdebuginfod mode. * Thu Jul 23 2020 Dmitry V. Levin 0.180.0.22.g1549-alt1 - elfutils-0.180-2-g9698a399 -> elfutils-0.180-22-g15495182. * Mon Jun 15 2020 Dmitry V. Levin 0.180.0.2.9698-alt1 - elfutils-0.179 -> elfutils-0.180-2-g9698a399. * Mon Mar 30 2020 Dmitry V. Levin 0.179-alt1 - elfutils-0.178-15-g5de5dc7d -> elfutils-0.179. * Mon Dec 23 2019 Dmitry V. Levin 0.178.0.15.5de5-alt1 - elfutils-0.177 -> elfutils-0.178-15-g5de5dc7d. * Tue Aug 13 2019 Dmitry V. Levin 0.177-alt1 - elfutils-0.176-43-g1b1433d5 -> elfutils-0.177. * Wed Jul 17 2019 Dmitry V. Levin 0.176.0.43.1b14-alt1 - elfutils-0.176-5-ge56a0969 -> elfutils-0.176-43-g1b1433d5. * Thu Feb 28 2019 Dmitry V. Levin 0.176.0.5.e56a-alt1 - elfutils-0.176 -> elfutils-0.176-5-ge56a0969. * Fri Feb 15 2019 Dmitry V. Levin 0.176-alt1 - 0.175 -> 0.176 (fixes: CVE-2019-7146, CVE-2019-7148, CVE-2019-7149, CVE-2019-7150, CVE-2019-7664, CVE-2019-7665). * Fri Nov 16 2018 Dmitry V. Levin 0.175-alt1 - 0.174 -> 0.175. * Fri Sep 14 2018 Dmitry V. Levin 0.174-alt1 - 0.173 -> 0.174. * Fri Jun 29 2018 Dmitry V. Levin 0.173-alt1 - 0.172 -> 0.173. * Tue Jun 12 2018 Dmitry V. Levin 0.172-alt1 - 0.171-16-g6402475 -> 0.172. * Fri Jun 08 2018 Dmitry V. Levin 0.171-alt1 - Updated to elfutils-0.171-16-g6402475. * Thu Apr 19 2018 Dmitry V. Levin 0.170-alt6 - Backported a few upstream commits. * Fri Mar 30 2018 Dmitry V. Levin 0.170-alt5 - Moved libebl.h from libdw-devel-static to libasm-devel. * Wed Mar 28 2018 Dmitry V. Levin 0.170-alt4 - Backported a few upstream commits. * Mon Mar 19 2018 Dmitry V. Levin 0.170-alt3 - Split out libasm and libdw subpackage families. * Wed Nov 15 2017 Dmitry V. Levin 0.170-alt2 - Moved libelf.pc from %name-devel to libelf-devel. * Thu Aug 03 2017 Dmitry V. Levin 0.170-alt1 - 0.168 -> 0.170. * Wed Dec 28 2016 Dmitry V. Levin 0.168-alt1 - 0.167-13-g507e7e2 -> 0.168. * Fri Nov 18 2016 Dmitry V. Levin 0.167.0.13.507e7-alt1 - 0.165-3-g2d703bf -> 0.167-13-g507e7e2. - Enabled libstdc++ demangle support. * Thu Jan 14 2016 Dmitry V. Levin 0.165-alt1 - 0.164-14-gf8443bd -> 0.165-3-g2d703bf. * Mon Nov 16 2015 Dmitry V. Levin 0.164-alt1 - Updated to 0.164-14-gf8443bd. * Sat Dec 20 2014 Dmitry V. Levin 0.161-alt1 - Updated to 0.161. * Sun Jan 12 2014 Dmitry V. Levin 0.158-alt1 - Updated to 0.158. * Fri Aug 31 2012 Dmitry V. Levin 0.155-alt2 - elflint --gnu-ld: tolerate __bss_start out of .dynsym bounds. * Thu Aug 30 2012 Dmitry V. Levin 0.155-alt1 - Updated to 0.155. * Sun Mar 25 2012 Dmitry V. Levin 0.153-alt1 - Updated to 0.153. * Thu Mar 24 2011 Dmitry V. Levin 0.152-alt1 - Updated to 0.152. * Tue Feb 08 2011 Dmitry V. Levin 0.151-alt2 - Rebuilt for debuginfo. * Fri Jan 21 2011 Dmitry V. Levin 0.151-alt1 - Updated to 0.151. * Thu Nov 18 2010 Dmitry V. Levin 0.149-alt2 - Rebuilt with liblzma.so.5. * Tue Oct 19 2010 Dmitry V. Levin 0.149-alt1 - Updated to 0.149. * Thu Jul 01 2010 Dmitry V. Levin 0.148-alt1 - Updated to 0.148. * Wed May 26 2010 Alexey Tourbin 0.147-alt2 - alt-osabi.patch: Handle STB_GNU_UNIQUE symbols with ELFOSABI_NONE. - alt-bss.patch: Adjust segment flags with .bss (for klcc binaries). * Mon May 24 2010 Dmitry V. Levin 0.147-alt1 - Updated to 0.147. * Fri Mar 05 2010 Dmitry V. Levin 0.145-alt1 - Updated to 0.145. * Thu Jan 28 2010 Dmitry V. Levin 0.144-alt1 - Updated to 0.144. * Sun Dec 20 2009 Dmitry V. Levin 0.143-alt2 - Enhanced eu-findtextrel output. * Fri Dec 18 2009 Dmitry V. Levin 0.143-alt1 - Updated to 0.143. - Moved "make check" to %%check section. * Tue Jun 02 2009 Dmitry V. Levin 0.141-alt1 - Updated to 0.141. * Sun Dec 14 2008 Dmitry V. Levin 0.137-alt2 - Removed obsolete %%post_ldconfig/%%postun_ldconfig calls. * Sun Oct 26 2008 Dmitry V. Levin 0.137-alt1 - Updated to 0.137. * Fri Nov 16 2007 Dmitry V. Levin 0.131-alt1 - Updated to 0.131. * Sun Mar 25 2007 Dmitry V. Levin 0.126-alt1 - Updated to 0.126. * Wed Oct 18 2006 Dmitry V. Levin 0.124-alt1 - Updated to 0.124. - Fixed build with -D_FORTIFY_SOURCE=2 -Werror. * Sat Sep 16 2006 Dmitry V. Levin 0.123-alt1 - Updated to 0.123. * Wed Jun 07 2006 Dmitry V. Levin 0.120-alt1 - Updated to 0.120. * Mon Dec 05 2005 Dmitry V. Levin 0.116-alt1 - Updated to 0.116. * Fri Oct 14 2005 Dmitry V. Levin 0.115-alt1 - Updated to 0.115. - Create libelf-devel-static and package it by default. * Sun Sep 04 2005 Dmitry V. Levin 0.114-alt1 - Updated to 0.114. * Thu Jun 16 2005 Dmitry V. Levin 0.108-alt3 - Applied additional robustification of eu-strip and eu-readelf from RH's elfutils-0.108-5. * Fri Jun 03 2005 Dmitry V. Levin 0.108-alt2 - Applied upstream fix for unsanitized input issues (CAN-2005-1704). * Fri May 27 2005 Dmitry V. Levin 0.108-alt1 - Updated to 0.108. * Thu Nov 11 2004 Dmitry V. Levin 0.97-alt1 - Built for ALT Linux. * Sun Sep 26 2004 Jeff Johnson 0.97-2 - upgrade to 0.97. * Tue Aug 17 2004 Jakub Jelinek 0.95-5 - upgrade to 0.96. * Mon Jul 5 2004 Jakub Jelinek 0.95-4 - rebuilt with GCC 3.4.x, workaround VLA + alloca mixing warning * Tue Jun 15 2004 Elliot Lee - rebuilt * Fri Apr 2 2004 Jeff Johnson 0.95-2 - upgrade to 0.95. * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Fri Jan 16 2004 Jakub Jelinek 0.94-1 - upgrade to 0.94 * Fri Jan 16 2004 Jakub Jelinek 0.93-1 - upgrade to 0.93 * Thu Jan 8 2004 Jakub Jelinek 0.92-1 - full version - macroized spec file for GPL or OSL builds - include only libelf under GPL plus wrapper scripts * Wed Jan 7 2004 Jakub Jelinek 0.91-2 - macroized spec file for GPL or OSL builds * Wed Jan 7 2004 Ulrich Drepper - split elfutils-devel into two packages. * Wed Jan 7 2004 Jakub Jelinek 0.91-1 - include only libelf under GPL plus wrapper scripts * Tue Dec 23 2003 Jeff Johnson 0.89-3 - readelf, not readline, in %%description (#111214). * Fri Sep 26 2003 Bill Nottingham 0.89-1 - update to 0.89 (fix eu-strip) * Tue Sep 23 2003 Jakub Jelinek 0.86-3 - update to 0.86 (fix eu-strip on s390x/alpha) - libebl is an archive now; remove references to DSO * Mon Jul 14 2003 Jeff Johnson 0.84-3 - upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed). * Fri Jul 11 2003 Jeff Johnson 0.83-3 - upgrade to 0.83 (fix invalid ELf handle on *.so strip, more). * Wed Jul 9 2003 Jeff Johnson 0.82-3 - upgrade to 0.82 (strip tests fixed on big-endian). * Tue Jul 8 2003 Jeff Johnson 0.81-3 - upgrade to 0.81 (strip excludes unused symtable entries, test borked). * Thu Jun 26 2003 Jeff Johnson 0.80-3 - upgrade to 0.80 (debugedit changes for kernel in progress). * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed May 21 2003 Jeff Johnson 0.79-2 - upgrade to 0.79 (correct formats for size_t, more of libdw "works"). * Mon May 19 2003 Jeff Johnson 0.78-2 - upgrade to 0.78 (libdwarf bugfix, libdw additions). * Mon Feb 24 2003 Elliot Lee - debuginfo rebuild * Thu Feb 20 2003 Jeff Johnson 0.76-2 - use the correct way of identifying the section via the sh_info link. * Sat Feb 15 2003 Jakub Jelinek 0.75-2 - update to 0.75 (eu-strip -g fix) * Tue Feb 11 2003 Jakub Jelinek 0.74-2 - update to 0.74 (fix for writing with some non-dirty sections) * Thu Feb 6 2003 Jeff Johnson 0.73-3 - another -0.73 update (with sparc fixes). - do "make check" in %%check, not %%install, section. * Mon Jan 27 2003 Jeff Johnson 0.73-2 - update to 0.73 (with s390 fixes). * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Jan 22 2003 Jakub Jelinek 0.72-4 - fix arguments to gelf_getsymshndx and elf_getshstrndx - fix other warnings - reenable checks on s390x * Sat Jan 11 2003 Karsten Hopp 0.72-3 - temporarily disable checks on s390x, until someone has time to look at it * Thu Dec 12 2002 Jakub Jelinek 0.72-2 - update to 0.72 * Wed Dec 11 2002 Jakub Jelinek 0.71-2 - update to 0.71 * Wed Dec 11 2002 Jeff Johnson 0.69-4 - update to 0.69. - add "make check" and segfault avoidance patch. - elfutils-libelf needs to run ldconfig. * Tue Dec 10 2002 Jeff Johnson 0.68-2 - update to 0.68. * Fri Dec 6 2002 Jeff Johnson 0.67-2 - update to 0.67. * Tue Dec 3 2002 Jeff Johnson 0.65-2 - update to 0.65. * Mon Dec 2 2002 Jeff Johnson 0.64-2 - update to 0.64. * Sun Dec 1 2002 Ulrich Drepper 0.64 - split packages further into elfutils-libelf * Sat Nov 30 2002 Jeff Johnson 0.63-2 - update to 0.63. * Fri Nov 29 2002 Ulrich Drepper 0.62 - Adjust for dropping libtool * Sun Nov 24 2002 Jeff Johnson 0.59-2 - update to 0.59 * Thu Nov 14 2002 Jeff Johnson 0.56-2 - update to 0.56 * Thu Nov 7 2002 Jeff Johnson 0.54-2 - update to 0.54 * Sun Oct 27 2002 Jeff Johnson 0.53-2 - update to 0.53 - drop x86_64 hack, ICE fixed in gcc-3.2-11. * Sat Oct 26 2002 Jeff Johnson 0.52-3 - get beehive to punch a rhpkg generated package. * Wed Oct 23 2002 Jeff Johnson 0.52-2 - build in 8.0.1. - x86_64: avoid gcc-3.2 ICE on x86_64 for now. * Tue Oct 22 2002 Ulrich Drepper 0.52 - Add libelf-devel to conflicts for elfutils-devel * Mon Oct 21 2002 Ulrich Drepper 0.50 - Split into runtime and devel package * Fri Oct 18 2002 Ulrich Drepper 0.49 - integrate into official sources * Wed Oct 16 2002 Jeff Johnson 0.46-1 - Swaddle.