SHA256
6
0
forked from pool/elfutils

2 Commits

Author SHA256 Message Date
91322de797 Accepting request 1238095 from Base:System
- Add fix-static-linking.patch (bsc#1234445) (forwarded request 1230649 from ateixeira)

OBS-URL: https://build.opensuse.org/request/show/1238095
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/elfutils?expand=0&rev=115
2025-01-16 17:31:24 +00:00
d659a0ca0f Accepting request 1227791 from Base:System
- Add pkgconfig(json-c) to reenable debuginfod support
- Add fish to enable profile support for fish
- Remove files packaged by libelf-devel

- update to 0.192
  CONDUCT: A new code of conduct has been adopted.  See the
  	   CONDUCT file for more information.
  debuginfod: Add per-file signature verification for integrity
              checking, using RPM IMA scheme from Fedora/RHEL.
  	      New API for metadata queries: file name -> buildid.
  	      Server-side extraction of files from kernel debuginfo
  	      packages is significantly faster. Now takes < 0.25 seconds,
  	      down from ~50 seconds.
  libdw: New functions dwfl_set_sysroot, dwfl_frame_unwound_source
  	 and dwfl_unwound_source_str.
  stacktrace: Experimental new tool that can process a stream of stack
              samples from the Sysprof profiler and unwind them into call
              chains. Enable on x86 with --enable-stacktrace. See
              README.eu-stacktrace in the development branch for detailed
              usage instructions:
              https://sourceware.org/cgit/elfutils/tree/README.eu-stacktrace?h=users/serhei/eu-stacktrace

- Remove files packaged by elfutils-debuginfod

- update to 0.192
  CONDUCT: A new code of conduct has been adopted.  See the
  	   CONDUCT file for more information.
  debuginfod: Add per-file signature verification for integrity
              checking, using RPM IMA scheme from Fedora/RHEL.
  	      New API for metadata queries: file name -> buildid.

OBS-URL: https://build.opensuse.org/request/show/1227791
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/elfutils?expand=0&rev=114
2024-12-03 19:45:25 +00:00
9 changed files with 116 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:df76db71366d1d708365fc7a6c60ca48398f14367eb2b8954efc8897147ad871
size 9310088

Binary file not shown.

BIN
elfutils-0.192.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
elfutils-0.192.tar.bz2.sig Normal file

Binary file not shown.

View File

@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Mon Dec 2 13:14:04 UTC 2024 - Andreas Schwab <schwab@suse.de>
- Add pkgconfig(json-c) to reenable debuginfod support
- Add fish to enable profile support for fish
- Remove files packaged by libelf-devel
-------------------------------------------------------------------
Sun Dec 1 17:36:52 UTC 2024 - Adrian Schröter <adrian@suse.de>
- update to 0.192
CONDUCT: A new code of conduct has been adopted. See the
CONDUCT file for more information.
debuginfod: Add per-file signature verification for integrity
checking, using RPM IMA scheme from Fedora/RHEL.
New API for metadata queries: file name -> buildid.
Server-side extraction of files from kernel debuginfo
packages is significantly faster. Now takes < 0.25 seconds,
down from ~50 seconds.
libdw: New functions dwfl_set_sysroot, dwfl_frame_unwound_source
and dwfl_unwound_source_str.
stacktrace: Experimental new tool that can process a stream of stack
samples from the Sysprof profiler and unwind them into call
chains. Enable on x86 with --enable-stacktrace. See
README.eu-stacktrace in the development branch for detailed
usage instructions:
https://sourceware.org/cgit/elfutils/tree/README.eu-stacktrace?h=users/serhei/eu-stacktrace
-------------------------------------------------------------------
Tue May 21 15:45:51 UTC 2024 - Michael Matz <matz@suse.com>

View File

@@ -17,7 +17,7 @@
Name: elfutils-debuginfod
Version: 0.191
Version: 0.192
Release: 0
Summary: Debuginfod server provided by elfutils
License: GPL-3.0-or-later
@@ -48,6 +48,8 @@ BuildRequires: zlib-devel
BuildRequires: zstd
# For debuginfod
BuildRequires: pkgconfig(json-c) >= 0.11
BuildRequires: fish
BuildRequires: pkgconfig(libarchive) >= 3.1.2
BuildRequires: pkgconfig(libcurl) >= 7.29.0
BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33
@@ -143,6 +145,7 @@ autoreconf -fi
# some patches create new test scripts, which are created 644 by default
chmod a+x tests/run*.sh
%configure \
--enable-libdebuginfod --enable-debuginfod \
%if %{suse_version} > 1500
--enable-debuginfod-urls=https://debuginfod.opensuse.org/ \
%endif
@@ -167,7 +170,8 @@ rm -f %{buildroot}/%{_includedir}/gelf.h
rm -f %{buildroot}/%{_includedir}/nlist.h
rm -f %{buildroot}/%{_includedir}/dwarf.h
rm -f %{buildroot}/%{_libdir}/libdw*
rm -f %{buildroot}/%{_mandir}/man3/elf_*.3*
rm -f %{buildroot}/%{_mandir}/man3/elf*_*.3*
rm -f %{buildroot}/%{_mandir}/man3/libelf.3*
rm -f %{buildroot}/%{_mandir}/man1/eu-*.1*
rm -rf %{buildroot}%{_datadir}/locale/
rm -f %{buildroot}/%{_libdir}/pkgconfig/libdw.pc
@@ -188,7 +192,7 @@ touch %{buildroot}%{_localstatedir}/cache/debuginfod/debuginfod.sqlite
%check
%if 0%{?qemu_user_space_build}
# qemu-linux-user does not support ptrace and a few other process details
export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native.sh run-deleted.sh"
export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native.sh run-deleted.sh run-backtrace-native-core.sh"
%endif
%make_build check
@@ -224,6 +228,7 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
%files -n debuginfod-profile
%config %{_sysconfdir}/profile.d/debuginfod.sh
%config %{_sysconfdir}/profile.d/debuginfod.csh
%{_datadir}/fish/vendor_conf.d/debuginfod.fish
%dir %{_sysconfdir}/debuginfod
%if %{suse_version} > 1500
%config %{_sysconfdir}/debuginfod/elfutils.urls

View File

@@ -1,3 +1,34 @@
-------------------------------------------------------------------
Thu Dec 12 18:37:00 UTC 2024 - Antonio Teixeira <antonio.teixeira@suse.com>
- Add fix-static-linking.patch (bsc#1234445)
-------------------------------------------------------------------
Mon Dec 2 13:13:00 UTC 2024 - Andreas Schwab <schwab@suse.de>
- Remove files packaged by elfutils-debuginfod
-------------------------------------------------------------------
Sun Dec 1 17:36:52 UTC 2024 - Adrian Schröter <adrian@suse.de>
- update to 0.192
CONDUCT: A new code of conduct has been adopted. See the
CONDUCT file for more information.
debuginfod: Add per-file signature verification for integrity
checking, using RPM IMA scheme from Fedora/RHEL.
New API for metadata queries: file name -> buildid.
Server-side extraction of files from kernel debuginfo
packages is significantly faster. Now takes < 0.25 seconds,
down from ~50 seconds.
libdw: New functions dwfl_set_sysroot, dwfl_frame_unwound_source
and dwfl_unwound_source_str.
stacktrace: Experimental new tool that can process a stream of stack
samples from the Sysprof profiler and unwind them into call
chains. Enable on x86 with --enable-stacktrace. See
README.eu-stacktrace in the development branch for detailed
usage instructions:
https://sourceware.org/cgit/elfutils/tree/README.eu-stacktrace?h=users/serhei/eu-stacktrace
-------------------------------------------------------------------
Tue May 21 15:45:51 UTC 2024 - Michael Matz <matz@suse.com>

View File

@@ -17,7 +17,7 @@
Name: elfutils
Version: 0.191
Version: 0.192
Release: 0
Summary: Higher-level library to access ELF files
License: GPL-3.0-or-later
@@ -31,6 +31,7 @@ Source4: https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version
Source5: %{name}.keyring
Source6: elfutils-rpmlintrc
Patch1: harden_debuginfod.service.patch
Patch2: fix-static-linking.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@@ -172,7 +173,10 @@ chmod a+x tests/run*.sh
# remove unneeded files
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}/%{_sysconfdir}/profile.d/debuginfod.*sh
rm -f %{buildroot}%{_datadir}/fish/vendor_conf.d/debuginfod.fish
rm -f %{buildroot}/%{_libdir}/pkgconfig/libdebuginfod.pc
rm -f %{buildroot}%{_mandir}/man8/debuginfod*.8*
rm -rf %{buildroot}/%{_datadir}/fish
ls -lR %{buildroot}/%{_libdir}/libelf*
%find_lang %{name}
@@ -188,7 +192,7 @@ ls -lR %{buildroot}/%{_libdir}/libelf*
%check
%if 0%{?qemu_user_space_build}
# qemu-linux-user does not support ptrace and a few other process details
export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native.sh run-deleted.sh"
export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native.sh run-deleted.sh run-backtrace-native-core.sh"
%endif
%make_build check
@@ -240,6 +244,9 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
%{_includedir}/elfutils/version.h
%{_libdir}/pkgconfig/libelf.pc
%{_mandir}/man3/elf_*.3*
%{_mandir}/man3/elf32_*.3*
%{_mandir}/man3/elf64_*.3*
%{_mandir}/man3/libelf.3.gz
%files -n libdw1
%{_libdir}/libdw.so.*

37
fix-static-linking.patch Normal file
View File

@@ -0,0 +1,37 @@
From f5d6e088f84dd05278c4698a21cbf1ff4569978d Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Tue, 22 Oct 2024 15:03:42 +0200
References: bsc#1234445
Subject: [PATCH 1/1] libelf: Add libeu objects to libelf.a static archive
libelf might use some symbols from libeu.a, specifically the eu-search
wrappers. But we don't ship libeu.a separately. So include the libeu
objects in the libelf.a archive to facilitate static linking.
* libelf/Makefile.am (libeu_objects): New variable.
(libelf_a_LIBADD): New, add libeu_objects.
https://sourceware.org/bugzilla/show_bug.cgi?id=32293
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
libelf/Makefile.am | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libelf/Makefile.am b/libelf/Makefile.am
index 3402863ef..2d3dbdf22 100644
--- a/libelf/Makefile.am
+++ b/libelf/Makefile.am
@@ -122,6 +122,9 @@ libelf.so: $(srcdir)/libelf.map $(libelf_so_LIBS) $(libelf_so_DEPS)
@$(textrel_check)
$(AM_V_at)ln -fs $@ $@.$(VERSION)
+libeu_objects = $(shell $(AR) t ../lib/libeu.a)
+libelf_a_LIBADD = $(addprefix ../lib/,$(libeu_objects))
+
install: install-am libelf.so
$(mkinstalldirs) $(DESTDIR)$(libdir)
$(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
--
2.43.5