forked from pool/kdump
This commit is contained in:
parent
3d8bc88688
commit
64467edc34
19
kdump-elf32.diff
Normal file
19
kdump-elf32.diff
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# HG changeset patch
|
||||||
|
# User Bernhard Walle <bwalle@suse.de>
|
||||||
|
# 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;
|
@ -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
|
Fri Aug 01 12:00:17 CEST 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
18
kdump.spec
18
kdump.spec
@ -2,19 +2,27 @@
|
|||||||
# spec file for package kdump (Version 0.5.5)
|
# spec file for package kdump (Version 0.5.5)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# 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/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
|
Url: http://freehg.org/u/bwalle/kdump/
|
||||||
|
|
||||||
Name: kdump
|
Name: kdump
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Version: 0.5.5
|
Version: 0.5.5
|
||||||
Release: 1
|
Release: 5
|
||||||
Requires: curl openssh makedumpfile
|
Requires: curl openssh makedumpfile
|
||||||
Summary: Script for kdump
|
Summary: Script for kdump
|
||||||
Group: System/Kernel
|
Group: System/Kernel
|
||||||
@ -34,6 +42,7 @@ Obsoletes: kdump-helpers <= 0.2.4
|
|||||||
Provides: kexec-tools:/etc/init.d/kdump
|
Provides: kexec-tools:/etc/init.d/kdump
|
||||||
Requires: kexec-tools
|
Requires: kexec-tools
|
||||||
PreReq: coreutils sed
|
PreReq: coreutils sed
|
||||||
|
Patch0: kdump-elf32.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
kdump is a package that includes several scripts for kdump, including
|
kdump is a package that includes several scripts for kdump, including
|
||||||
@ -47,6 +56,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
@ -94,6 +104,8 @@ echo "Stopping kexec ..."
|
|||||||
%config %{_sysconfdir}/udev/rules.d/70-kdump.rules
|
%config %{_sysconfdir}/udev/rules.d/70-kdump.rules
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 05 2008 bwalle@suse.de
|
||||||
|
- Don't report ELF32 as "invalid ELF class"
|
||||||
* Fri Aug 01 2008 bwalle@suse.de
|
* Fri Aug 01 2008 bwalle@suse.de
|
||||||
- update to 0.5.5
|
- update to 0.5.5
|
||||||
o make dependency to libssh2 optional
|
o make dependency to libssh2 optional
|
||||||
|
Loading…
x
Reference in New Issue
Block a user