diff --git a/kdump-elf32.diff b/kdump-elf32.diff new file mode 100644 index 0000000..86cf1b3 --- /dev/null +++ b/kdump-elf32.diff @@ -0,0 +1,19 @@ +# HG changeset patch +# User Bernhard Walle +# Date 1217881323 -7200 +# Node ID 6cd588dd331313494649612a36d8493ef36ab585 +# Parent 20c1d15845d2ece1b22f63478b40f3304e014fcd +Don't report ELF32 as "invalid ELF class" + +diff --git a/kdumptool/vmcoreinfo.cc b/kdumptool/vmcoreinfo.cc +--- a/kdumptool/vmcoreinfo.cc ++++ b/kdumptool/vmcoreinfo.cc +@@ -149,7 +149,7 @@ + + // check elf32 vs. elf64 + int clazz = gelf_getclass(elf); +- if (clazz == ELFCLASS32) ++ if (clazz == ELFCLASSNONE) + throw KError("Vmcoreinfo: Invalid ELF class."); + + isElf64 = clazz == ELFCLASS64; diff --git a/kdump.changes b/kdump.changes index 3423a83..dcb61bd 100644 --- a/kdump.changes +++ b/kdump.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 4 22:27:26 CEST 2008 - bwalle@suse.de + +- Don't report ELF32 as "invalid ELF class" + ------------------------------------------------------------------- Fri Aug 01 12:00:17 CEST 2008 - bwalle@suse.de diff --git a/kdump.spec b/kdump.spec index 2a7d931..a3bbfe6 100644 --- a/kdump.spec +++ b/kdump.spec @@ -2,19 +2,27 @@ # spec file for package kdump (Version 0.5.5) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild +Url: http://freehg.org/u/bwalle/kdump/ Name: kdump License: GPL v2 or later Version: 0.5.5 -Release: 1 +Release: 5 Requires: curl openssh makedumpfile Summary: Script for kdump Group: System/Kernel @@ -34,6 +42,7 @@ Obsoletes: kdump-helpers <= 0.2.4 Provides: kexec-tools:/etc/init.d/kdump Requires: kexec-tools PreReq: coreutils sed +Patch0: kdump-elf32.diff %description kdump is a package that includes several scripts for kdump, including @@ -47,6 +56,7 @@ Authors: %prep %setup +%patch0 -p1 %build mkdir build @@ -94,6 +104,8 @@ echo "Stopping kexec ..." %config %{_sysconfdir}/udev/rules.d/70-kdump.rules %changelog +* Tue Aug 05 2008 bwalle@suse.de +- Don't report ELF32 as "invalid ELF class" * Fri Aug 01 2008 bwalle@suse.de - update to 0.5.5 o make dependency to libssh2 optional