public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libkdumpfile] f44: Update to version 0.5.6
@ 2026-06-19 21:35 Michel Lind
  0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-06-19 21:35 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libkdumpfile
            Branch : f44
            Commit : deb903d3f50541c13f6a9aadf926687278ac3bac
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-06-19T22:03:36+01:00
            Stats  : +80/-45 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/libkdumpfile/c/deb903d3f50541c13f6a9aadf926687278ac3bac?branch=f44

            Log:
            Update to version 0.5.6

Signed-off-by: Michel Lind <salimma@fedoraproject.org>

---
diff --git a/drop-bfd-true-false-macros.diff b/drop-bfd-true-false-macros.diff
new file mode 100644
index 0000000..7fe91bd
--- /dev/null
+++ b/drop-bfd-true-false-macros.diff
@@ -0,0 +1,64 @@
+Description: Drop use of removed bfd TRUE/FALSE macros
+ binutils 2.46 removed the legacy TRUE/FALSE macros (and bfd_boolean) from
+ its public headers; the second argument of disassembler() is now a plain
+ C bool. kdumpid still passed TRUE/FALSE, and the disassembler detection in
+ m4/tools.m4 did the same in its conftest, so both failed to compile with
+ binutils >= 2.46 ("'FALSE' undeclared").
+ .
+ Use the integer literals 0/1 instead, which are valid for both the old
+ bfd_boolean and the new bool parameter type, keeping compatibility with
+ older binutils.
+Author: Michel Lind <michel@michel-slm.name>
+Bug: https://codeberg.org/ptesarik/libkdumpfile/issues/91
+Forwarded: https://codeberg.org/ptesarik/libkdumpfile/pulls/92
+Last-Update: 2026-06-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+diff --git a/m4/tools.m4 b/m4/tools.m4
+index 33078c2..f0560a5 100644
+--- a/m4/tools.m4
++++ b/m4/tools.m4
+@@ -45,7 +45,7 @@ AC_DEFUN([KDUMP_DIS_ASM_LIBS],[dnl determine disassembler libraries
+ DIS_ASM_LIBS=-lopcodes
+ AC_LANG_CONFTEST([AC_LANG_PROGRAM(
+   [#include <dis-asm.h>],
+-  [disassembler(bfd_arch_i386, FALSE, bfd_mach_x86_64, NULL);])])
++  [disassembler(bfd_arch_i386, 0, bfd_mach_x86_64, NULL);])])
+ dnl ignore undefined symbols from missing linker dependencies
+ AC_MSG_CHECKING([for disassembler in $DIS_ASM_LIBS])
+ KDUMP_TRY_LINK_UNDEF($DIS_ASM_LIBS, [-Wl,--require-defined=disassembler])
+diff --git a/tools/kdumpid/s390.c b/tools/kdumpid/s390.c
+index 4be5114..b740463 100644
+--- a/tools/kdumpid/s390.c
++++ b/tools/kdumpid/s390.c
+@@ -159,7 +159,7 @@ looks_like_kcode_s390(struct dump_desc *dd, uint64_t addr)
+ 	info.arch          = bfd_arch_s390;
+ 	info.mach          = bfd_mach_s390_64;
+ 	disassemble_init_for_target(&info);
+-	print_insn = disassembler(bfd_arch_s390, TRUE,
++	print_insn = disassembler(bfd_arch_s390, 1,
+ 				  bfd_mach_s390_64, NULL);
+ 	if (!print_insn)
+ 		return 0;
+diff --git a/tools/kdumpid/x86.c b/tools/kdumpid/x86.c
+index 8cabc4c..23f7bdf 100644
+--- a/tools/kdumpid/x86.c
++++ b/tools/kdumpid/x86.c
+@@ -288,7 +288,7 @@ looks_like_kcode_x86(struct dump_desc *dd, uint64_t addr)
+ 	/* Try i386 code first */
+ 	info.mach          = bfd_mach_i386_i386;
+ 	disassemble_init_for_target(&info);
+-	print_insn = disassembler(bfd_arch_i386, FALSE,
++	print_insn = disassembler(bfd_arch_i386, 0,
+ 				  bfd_mach_i386_i386, NULL);
+ 	if ((!dd->arch || strcmp(dd->arch, "x86_64")) &&
+ 	    print_insn &&
+@@ -301,7 +301,7 @@ looks_like_kcode_x86(struct dump_desc *dd, uint64_t addr)
+ 	memset(priv, 0, sizeof(struct disas_priv) + dd->page_size / 8);
+ 	info.mach          = bfd_mach_x86_64;
+ 	disassemble_init_for_target(&info);
+-	print_insn = disassembler(bfd_arch_i386, FALSE,
++	print_insn = disassembler(bfd_arch_i386, 0,
+ 				  bfd_mach_x86_64, NULL);
+ 	if ((!dd->arch || strcmp(dd->arch, "i386")) &&
+ 	    print_insn &&

diff --git a/libkdumpfile.spec b/libkdumpfile.spec
index 789064c..d9a9cdc 100644
--- a/libkdumpfile.spec
+++ b/libkdumpfile.spec
@@ -1,34 +1,28 @@
-%if 0%{?fedora} >= 42 || 0%{?rhel} >= 10
-# Python bindings removed post-0.5.5
-# see commit 40c9ff981f1f3bd968af37a50b50c3478d8267cd
-%bcond_with python
-%else
-%bcond_without python
-%endif
-
 %global mainlibsover 12
 %global addrlibsover 3
 
 Name:           libkdumpfile
-Version:        0.5.5
+Version:        0.5.6
 Release:        %autorelease
 Summary:        Kernel coredump file access
 
 License:        LGPL-3.0-or-later OR GPL-2.0-or-later
-URL:            https://github.com/ptesarik/libkdumpfile
+URL:            https://codeberg.org/ptesarik/libkdumpfile
 Source:         %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# drop macros removed from binutils 2.46
+Patch:          drop-bfd-true-false-macros.diff
 
 BuildRequires:  gcc-c++
 BuildRequires:  doxygen
 BuildRequires:  make
-BuildRequires:  sed
 BuildRequires:  binutils-devel
 BuildRequires:  libzstd-devel
 BuildRequires:  lzo-devel
-%if %{with python}
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-%else
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libtool
+# this last existed in Fedora 41 and EL 9
+%if 0%{?fedora} < 44
 Obsoletes:      python3-libkdumpfile < 0.5.5-1
 %endif
 BuildRequires:  snappy-devel
@@ -63,19 +57,6 @@ Obsoletes:      %{name}-doc < 0.5.2-1
 
 The %{name}-doc package contains documentation for %{name}.
 
-%if %{with python}
-%package -n python3-%{name}
-Summary:        Python bindings for %{name}
-Obsoletes:      %{name}-python < 0.4.0-6
-Provides:       %{name}-python = %{version}-%{release}
-Provides:       %{name}-python%{?_isa} = %{version}-%{release}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
-
-%description -n python3-%{name} %{_description}
-
-The python3-%{name} package contains Python bindings for %{name}.
-%endif
-
 %package        util
 Summary:        Utilities to read kernel core dumps
 Requires:       %{name}%{?_isa} = %{version}-%{release}
@@ -86,16 +67,14 @@ The %{name}-devel package contains misc utilities built with %{name}.
 
 %prep
 %autosetup -p1
-# Remove unneeded shebang
-sed -e "\|#!/usr/bin/env python|d" -i python/*/*.py
+
+
+%conf
+autoreconf -fiv
 
 
 %build
-%configure \
-%if %{without python}
-  --with-python=no \
-%endif
-%{nil}
+%configure
 
 %{__make} doxygen-doc
 %make_build
@@ -130,15 +109,6 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
 %license COPYING COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv3
 %doc doc/html
 
-%if %{with python}
-%files -n python3-%{name}
-%{python3_sitearch}/%{name}-%{version}-*.egg-info
-%{python3_sitearch}/addrxlat/
-%{python3_sitearch}/_addrxlat.*.so
-%{python3_sitearch}/kdumpfile/
-%{python3_sitearch}/_kdumpfile.*.so
-%endif
-
 %files util
 %{_bindir}/dumpattr
 %{_bindir}/kdumpid

diff --git a/series b/series
new file mode 100644
index 0000000..86978f7
--- /dev/null
+++ b/series
@@ -0,0 +1 @@
+drop-bfd-true-false-macros.diff

diff --git a/sources b/sources
index 1009156..7967a68 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libkdumpfile-0.5.5.tar.gz) = 350f82f1297623f8531f3e1d1f21224d9b4b93d1c90bd4f4c24e792d3cbb02b9b9850d73ca1ade116fe698cfa60d2fdc1b5403f9847f1803c95a9417f854a935
+SHA512 (libkdumpfile-0.5.6.tar.gz) = 23cc61ef7d5befd4bfeead7665747f1490137a615b065c89a419c53cc9393edc4852744a4fae3ab47de16b5fe8bab7c2dcfb5fc4aabd23b46bcb39aaf040cab9

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-19 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19 21:35 [rpms/libkdumpfile] f44: Update to version 0.5.6 Michel Lind

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox