Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libdwarf for openSUSE:Factory checked in at 2025-09-22 16:41:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libdwarf (Old) and /work/SRC/openSUSE:Factory/.libdwarf.new.27445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libdwarf" Mon Sep 22 16:41:06 2025 rev:38 rq:1306506 version:2.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libdwarf/libdwarf.changes 2025-03-31 11:44:37.183743493 +0200 +++ /work/SRC/openSUSE:Factory/.libdwarf.new.27445/libdwarf.changes 2025-09-22 16:41:58.179184131 +0200 @@ -1,0 +2,32 @@ +Fri Sep 19 17:13:04 UTC 2025 - Martin Hauke <[email protected]> + +- Update to version 2.1.0 + * Removed heuristic checs for decompression reasonableness as + they failed on some real object files. + * Corrected handling and reporting of the DWARF6 attributes + DW_AT_language_name and DW_AT_language_version. + * An object with DWARF and GNU debuglink data and nothing else + is now correctly accepted and reported. +- Update to version 2.0.0 + * Fixed a longstanding bug in configure.ac which began to cause + builds to fail with recent autoconf. + * Updated the error report (for zlib, zstd) when decompression + exceeds a heuristic limit. +- Update to version 0.12 + * Improved the code in dwarfdump checking for valid address + ranges (-k options). + * Added the capability of using mmap instead of malloc in + reading section data and functions allowing reporting on + section malloc/mmap. + * Now detects duplicated attributes and generates an error and + provides a way to suppress the detection (for cases where one + needs to analyze an object that was created with a broken + compiler). +- Add patch: + * libdwarf-both.patch +- Use meson instead of autotools +- Build dwarfgen +- Run testsuite +- Use %ldconfig_scriptlets macro + +------------------------------------------------------------------- @@ -760,2 +791,0 @@ - -------------------------------------------------------------------- Old: ---- libdwarf-0.11.1.tar.xz New: ---- libdwarf-2.1.0.tar.xz libdwarf-both.patch ----------(New B)---------- New:- Add patch: * libdwarf-both.patch - Use meson instead of autotools ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libdwarf.spec ++++++ --- /var/tmp/diff_new_pack.EvrUML/_old 2025-09-22 16:41:58.823211191 +0200 +++ /var/tmp/diff_new_pack.EvrUML/_new 2025-09-22 16:41:58.823211191 +0200 @@ -1,7 +1,7 @@ # # spec file for package libdwarf # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,19 @@ Name: libdwarf -Version: 0.11.1 +Version: 2.1.0 Release: 0 Summary: Access DWARF debugging information License: GPL-2.0-or-later AND LGPL-2.1-or-later Group: Development/Libraries/C and C++ URL: https://prevanders.net/dwarf.html Source: https://github.com/davea42/libdwarf-code/releases/download/v%{version}/libdwarf-%{version}.tar.xz +Patch0: https://src.fedoraproject.org/rpms/libdwarf/raw/rawhide/f/libdwarf-both.patch BuildRequires: binutils-devel +BuildRequires: cmake +BuildRequires: gcc-c++ BuildRequires: libelf-devel +BuildRequires: meson BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(zlib) @@ -33,13 +37,13 @@ libdwarf is a library of functions to provide read/write DWARF debugging records. -%package -n libdwarf0 +%package -n libdwarf2 Summary: Library to access DWARF information in object files License: LGPL-2.1-or-later Group: System/Libraries Conflicts: libdwarf1 -%description -n libdwarf0 +%description -n libdwarf2 Library of functions to provide creation of DWARF debugging information records, DWARF line number information, DWARF address range and pubnames information, weak names information, and DWARF @@ -49,7 +53,7 @@ Summary: Development files for libdwarf License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ -Requires: libdwarf0 = %{version} +Requires: libdwarf2 = %{version} Requires: libelf-devel %description devel @@ -85,6 +89,7 @@ Summary: Documentation for libdwarf License: GPL-2.0-or-later Group: Documentation/Other +BuildArch: noarch %description doc Documentation for libdwarf. @@ -94,37 +99,39 @@ %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects -export CFLAGS="%{optflags}" -CFLAGS="$CFLAGS -fPIC" LDFLAGS="-pie" %configure --enable-shared -%make_build +%meson -Ddwarfgen=true --default-library=both +%meson_build %install -%make_install -mkdir %{buildroot}%{_includedir}/libdwarf -cp -l %{buildroot}%{_includedir}/libdwarf-0/*.h %{buildroot}%{_includedir}/libdwarf +%meson_install -%post -n libdwarf0 -p /sbin/ldconfig -%postun -n libdwarf0 -p /sbin/ldconfig +%check +%meson_test -%files -n libdwarf0 +%ldconfig_scriptlets -n libdwarf2 + +%files -n libdwarf2 %license src/lib/libdwarf/LIBDWARFCOPYRIGHT src/lib/libdwarf/LGPL.txt -%{_libdir}/libdwarf.so.0* +%{_libdir}/libdwarf.so.2* +%{_libdir}/libdwarfp.so.2* %files devel -%{_libdir}/libdwarf.la +%{_includedir}/libdwarf-2 %{_libdir}/libdwarf.so +%{_libdir}/libdwarfp.so %{_libdir}/pkgconfig/libdwarf.pc -%{_includedir}/libdwarf -%{_includedir}/libdwarf-0 %files devel-static %{_libdir}/libdwarf.a +%{_libdir}/libdwarfp.a %files tools %license src/bin/dwarfdump/GPL.txt %doc src/bin/dwarfdump/README %{_bindir}/dwarfdump -%{_mandir}/man1/dwarfdump* +%{_bindir}/dwarfgen +%{_mandir}/man1/dwarfdump.1%{?ext_man} +%{_mandir}/man1/dwarfgen.1%{?ext_man} %dir %{_datadir}/dwarfdump %{_datadir}/dwarfdump/dwarfdump.conf ++++++ libdwarf-0.11.1.tar.xz -> libdwarf-2.1.0.tar.xz ++++++ ++++ 22443 lines of diff (skipped) ++++++ libdwarf-both.patch ++++++ >From 51ea3e8455f1da6e3b6d5c34fb0d3ffdb0c155a2 Mon Sep 17 00:00:00 2001 From: Tom Hughes <[email protected]> Date: Tue, 25 Jun 2024 08:55:46 +0100 Subject: [PATCH] Make default-library=both work on linux --- src/lib/libdwarf/meson.build | 8 ++++---- src/lib/libdwarfp/meson.build | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/libdwarf/meson.build b/src/lib/libdwarf/meson.build index a7570214..6a970024 100644 --- a/src/lib/libdwarf/meson.build +++ b/src/lib/libdwarf/meson.build @@ -121,12 +121,12 @@ else libzstd_deps = dependency('',required: false) endif -if (lib_type == 'shared') - compiler_flags = ['-DLIBDWARF_BUILD'] - compiler_flags_public = [] -else +if (lib_type == 'static') compiler_flags = ['-DLIBDWARF_STATIC'] compiler_flags_public = ['-DLIBDWARF_STATIC'] +else + compiler_flags = ['-DLIBDWARF_BUILD'] + compiler_flags_public = [] endif libdwarf_lib = library('dwarf', libdwarf_src, diff --git a/src/lib/libdwarfp/meson.build b/src/lib/libdwarfp/meson.build index a46c89eb..c6a1cf72 100644 --- a/src/lib/libdwarfp/meson.build +++ b/src/lib/libdwarfp/meson.build @@ -31,12 +31,12 @@ libdwarfp_src = [ ] libdwarf_dir = include_directories('../libdwarf') -if (lib_type == 'shared') - compiler_flags = ['-DLIBDWARF_BUILD'] - compiler_flags_public = [] -else +if (lib_type == 'static') compiler_flags = ['-DLIBDWARF_STATIC'] compiler_flags_public = ['-DLIBDWARF_STATIC'] +else + compiler_flags = ['-DLIBDWARF_BUILD'] + compiler_flags_public = [] endif -- 2.49.0
