From d659a0ca0f793e030c60e4511801d847fb9311634e482cafcb210667833ddeff Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Tue, 3 Dec 2024 19:45:25 +0000 Subject: [PATCH 1/2] 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 --- elfutils-0.191.tar.bz2 | 3 --- elfutils-0.191.tar.bz2.sig | Bin 310 -> 0 bytes elfutils-0.192.tar.bz2 | 3 +++ elfutils-0.192.tar.bz2.sig | Bin 0 -> 310 bytes elfutils-debuginfod.changes | 28 ++++++++++++++++++++++++++++ elfutils-debuginfod.spec | 11 ++++++++--- elfutils.changes | 26 ++++++++++++++++++++++++++ elfutils.spec | 10 ++++++++-- 8 files changed, 73 insertions(+), 8 deletions(-) delete mode 100644 elfutils-0.191.tar.bz2 delete mode 100644 elfutils-0.191.tar.bz2.sig create mode 100644 elfutils-0.192.tar.bz2 create mode 100644 elfutils-0.192.tar.bz2.sig diff --git a/elfutils-0.191.tar.bz2 b/elfutils-0.191.tar.bz2 deleted file mode 100644 index b783b12..0000000 --- a/elfutils-0.191.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:df76db71366d1d708365fc7a6c60ca48398f14367eb2b8954efc8897147ad871 -size 9310088 diff --git a/elfutils-0.191.tar.bz2.sig b/elfutils-0.191.tar.bz2.sig deleted file mode 100644 index 1b14dbcd554f9b977f89ec534b2d4aa7a2dedbea3731a62cd86c5ae9a0fbca64..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SEvc79j*|D`OR7xYICKjXbn;{Xe32o^W#o0%hVhwEzkU5On=N zqIaHfb0%pA{0&J3I^%@@9|retM3kUmf@)>&MUq3to+`n99l*^&_(N zl9jE916z@^KboHPOvNSAvcU1y(^ZXH%>-<8PQ>|VHM<~f_hOp(W2rwACHG8{P1dl| z^WVJ19>X~n3_sq+pU}ojV{k9%6>8evh3bNcJz-`f00j?UV;c56z+a!|Gh&ogqn*j7pI(iAnGK635tmezH@1#+Xysf& IUs3XBNgpkc2mk;8 diff --git a/elfutils-0.192.tar.bz2 b/elfutils-0.192.tar.bz2 new file mode 100644 index 0000000..2aa1e87 --- /dev/null +++ b/elfutils-0.192.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:616099beae24aba11f9b63d86ca6cc8d566d968b802391334c91df54eab416b4 +size 11913897 diff --git a/elfutils-0.192.tar.bz2.sig b/elfutils-0.192.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..3ec2ebab8c4aa08c84581d4ed316dd091a6666949922a34647e6c50653622d2e GIT binary patch literal 310 zcmV-60m=S}0W$;u0SEvc79j*|D`OR7xYICKjXbn;{Xe32o^W#o0%sDjB>)Nu5On=N zqIaHfb3UsF{U0D*w|R81{1!`Nnrdp)*1z>GSi9y=6LF!L_hI;K0S8gk^5di_^WZko zvF%=m8PL(;^s>+XJUtc^<;X>G=bQ-Sw~Ui!s;n%lu=Aw5jIOdl>@&`|?8A#%TYYBK z5201CTb>+boB*0}{ur$@nap%^1ZqXSKgz7!f4G?s#gRvD z=)Q)iSBiZj#LQ?7AGh?hpm68*#fQO*k{ktZ`44z+OOl7P7QsY(Orj;FI$-@L+S*D@ I;#MDbMiz#bu>b%7 literal 0 HcmV?d00001 diff --git a/elfutils-debuginfod.changes b/elfutils-debuginfod.changes index 8f99860..aceda74 100644 --- a/elfutils-debuginfod.changes +++ b/elfutils-debuginfod.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Mon Dec 2 13:14:04 UTC 2024 - Andreas Schwab + +- 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 + +- 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 diff --git a/elfutils-debuginfod.spec b/elfutils-debuginfod.spec index dafdce4..b978759 100644 --- a/elfutils-debuginfod.spec +++ b/elfutils-debuginfod.spec @@ -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 diff --git a/elfutils.changes b/elfutils.changes index 58031be..a49d8d8 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon Dec 2 13:13:00 UTC 2024 - Andreas Schwab + +- Remove files packaged by elfutils-debuginfod + +------------------------------------------------------------------- +Sun Dec 1 17:36:52 UTC 2024 - Adrian Schröter + +- 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 diff --git a/elfutils.spec b/elfutils.spec index 3a74469..34824cf 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -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 @@ -172,7 +172,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 +191,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 +243,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.* -- 2.51.1 From 91322de7971f268c942d8458fae802cda9accb8daeb1599d863882e70f8ce582 Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Thu, 16 Jan 2025 17:31:24 +0000 Subject: [PATCH 2/2] 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 --- elfutils.changes | 5 +++++ elfutils.spec | 1 + fix-static-linking.patch | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 fix-static-linking.patch diff --git a/elfutils.changes b/elfutils.changes index a49d8d8..b322181 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 12 18:37:00 UTC 2024 - Antonio Teixeira + +- Add fix-static-linking.patch (bsc#1234445) + ------------------------------------------------------------------- Mon Dec 2 13:13:00 UTC 2024 - Andreas Schwab diff --git a/elfutils.spec b/elfutils.spec index 34824cf..2407bbd 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -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 diff --git a/fix-static-linking.patch b/fix-static-linking.patch new file mode 100644 index 0000000..e413d9f --- /dev/null +++ b/fix-static-linking.patch @@ -0,0 +1,37 @@ +From f5d6e088f84dd05278c4698a21cbf1ff4569978d Mon Sep 17 00:00:00 2001 +From: Mark Wielaard +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 +--- + 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 + -- 2.51.1