makedumpfile/makedumpfile.spec

210 lines
7.0 KiB
RPMSpec

#
# spec file for package makedumpfile (Version 1.2.8)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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
Name: makedumpfile
BuildRequires: gcc-c++ libdw-devel libdw1 libelf-devel libelf0 libelf1 zlib-devel
%define elfutils_version 0.124
License: GPL v2 or later
Version: 1.2.8
Release: 1
Summary: Partial kernel dump
Group: System/Kernel
Url: https://sourceforge.net/projects/makedumpfile/
Source: makedumpfile-%{version}.tar.bz2
Patch: makedumpfile-coptflags.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
makedumpfile is a dump program to shorten the size of dump file. It
copies only the necessary pages for analysis with various dump levels,
and can compress the page data. The obtained dump file can by analyzed
via gdb or crash utility.
Authors:
--------
NEC Corporation
%prep
%setup -n makedumpfile -q
%patch -p1
%build
make COPTFLAGS="$RPM_OPT_FLAGS"
%install
mkdir -p $RPM_BUILD_ROOT/bin
install -c -m 0755 makedumpfile $RPM_BUILD_ROOT/bin
install -c -m 0755 makedumpfile-R.pl $RPM_BUILD_ROOT/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 0644 makedumpfile.8 $RPM_BUILD_ROOT%{_mandir}/man8
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README COPYING IMPLEMENTATION
%doc %{_mandir}/man?/*
/bin/*
%changelog
* Tue Aug 12 2008 bwalle@suse.de
- update to 1.2.8
* Add the IMPLEMENTATION file for the kdump-compressed format.
* Fri Jul 18 2008 bwalle@suse.de
- update to 1.2.7
* features
o Add xen-3.1.2 support
o handle x86_64 xen code/data relocation
o Add linux-2.6.26 support
o Add the progress bar for creating dump bitmap
o Shrink the time for creating dump bitmap
* bug fixes
o Fix vmcoreinfo generation on 32bit hosts for 64bit kernels
o Fix compile warning
o Fix illegal buffer access
o Improve error handing when SIZE(nodemask_t) is undefined
* code cleanup
o Remove trailing whitespace
o Remove unnecessary description in manpage
o Cleanup machine dependent method
o Cleanup open_dump_file() method
- drop makedumpfile-fix-64bit-on-32bit: merged mainline
* Fri Jun 06 2008 bwalle@suse.de
- update to 1.2.6
o Extract vmcoreinfo from /proc/vmcore for Xen (by Itsuro ODA)
o Add linux-2.6.25 support
o Add '--help' option
o Fix the error code of Xen extracting feature (by Akio Takebe)
o Fix the ia64 problem that invalid data is copied around
overlapping segments.
o make create_dump_bitmap() simple
* Fri Mar 28 2008 bwalle@suse.de
- update to 1.2.5
o follow the changes of page flags.
To follow the changes of page flags in linux kernel, a new
makedumpfile can get these values from the vmcoreinfo data.
o Code Cleanup
o fix error return values of vtop().
* Thu Feb 07 2008 bwalle@suse.de
- update to 1.2.4
o Add linux-2.6.24 support.
o Add xen kernel support to the STDOUT feature (-F option).
o Fix the method looking for .debug_info section in
get_debug_info().
o Fix the problem that -d1 option cannot be specified without
-x/-i option.
* Mon Dec 10 2007 bwalle@suse.de
- Fix generation of vmcoreinfo for ELF64 kernels on 32bit machines
* Thu Nov 29 2007 bwalle@suse.de
- updated to 1.2.3
o Add the filtering feature for free_pages of linux-2.6.24.
* Fri Nov 02 2007 bwalle@suse.de
- updated to 1.2.2
o Fix the problem that vmcoreinfo cannot be extracted from ELF32
/proc/vmcore.
* Thu Oct 11 2007 bwalle@suse.de
- adding libelf0 libelf1 to BuildRequires to make the resolver
of the BuildService happy for <= 10.2
* Wed Oct 10 2007 bwalle@suse.de
- updated to 1.2.1
o Add virtual memmap support for x86_64 sparsemem kernel.
o Add the message_level (16) for printing the report message.
o Add linux-2.6.23 support because makedumpfile was tested on
linux-2.6.23.
o Change the common/debug message output to STDOUT from
STDERR if not specifying '-F' option
o Some cleanups
* Fri Sep 07 2007 bwalle@suse.de
- updated to 1.2.0
o extract vmcoreinfo from /proc/vmcore.
o linux-2.6.23-rc4-mm1 support.
o Add the "-d 1" option (skip zero-filled pages) for Xen.
o Add the feature which gets enum number.
o Some Cleanups
* Mon Aug 13 2007 bwalle@suse.de
- updated to 1.1.6
o linux-2.6.22 support.
o Change the check method of free_pages for linux-2.6.21 or
later.
o Some cleanups
* Fri Jul 27 2007 bwalle@suse.de
- updated to 1.1.5
o new feature that allows extracting the part of xen hypervisor
and domain-0 from /proc/vmcore.
o new option '-f' to overwrite existing dumpfile
o new option '--message-level "message-level"'
o fix the problem that makedumpfile complains about overlapping
memory segments.
o Rename makedumpfile's config file to "vmcoreinfo file"
o Change the method for getting the kernel's OSRELEASE if
generating a vmcoreinfo file.
o Some cleanups
* Mon Jun 11 2007 bwalle@suse.de
- updated to 1.1.4
o Add ia64 DISCONTIGMEM support.
o Add ia64_vtop.
o Add __FUNCTION__ to ERRMSG.
o Cleanup README.
o Fix DISCONTIGMEM bitmap.
o Fix ELF output with overlapping sections.
* Tue Jun 05 2007 bwalle@suse.de
- fix build
* Tue Jun 05 2007 bwalle@suse.de
- link dynamically against libc to decrease binary size (initrd
has already libc included) but leave the other libraries linked
statically
* Mon May 21 2007 tiwai@suse.de
- use external elfutils packages.
* Fri Apr 13 2007 tiwai@suse.de
- updated to version 1.1.3:
* 2.6.21 kernel support
* fix handling of excluded zero-filled pages for crash
* crash can display dump_level
* Thu Mar 29 2007 rguenther@suse.de
- add zlib-devel BuildRequires
* Fri Mar 09 2007 tiwai@suse.de
- updated to version 1.1.2:
* don't exit even for the unsupported kernel version
* minor fixes
* documents, man page
* Thu Feb 08 2007 tiwai@suse.de
- updated to version 1.1.1:
* x86-64 DISCONTIGMEM support
* Mon Feb 05 2007 tiwai@suse.de
- updated to version 1.1.0:
* support SSH transfer
* Thu Jan 18 2007 tiwai@suse.de
- updated to version 1.0.9:
* fix the calculation of page size.
* Tue Jan 09 2007 tiwai@suse.de
- remove codes with problematic license from elfutils-0.124
(#232894)
* Tue Jan 09 2007 tiwai@suse.de
- added COPYING file (from elfutils)
- fixed optimization flags to use $RPM_OPT_FLAGS
- fix a minor compile error with C99 standard.
* Mon Jan 08 2007 tiwai@suse.de
- initial version: 1.0.8
- build statically with elfutils-1.2.4 since elfutils conflicts
with the existing libelf.