294 lines
10 KiB
RPMSpec
294 lines
10 KiB
RPMSpec
#
|
||
# spec file for package makedumpfile (Version 1.3.2)
|
||
#
|
||
# Copyright (c) 2009 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: zlib-devel
|
||
%if 0%{?suse_version} > 1100
|
||
BuildRequires: libdw-devel
|
||
%else
|
||
BuildRequires: libdw-devel libdw1 libelf-devel libelf0 libelf1
|
||
%endif
|
||
License: GPL v2 or later
|
||
Version: 1.3.2
|
||
Release: 1
|
||
Summary: Partial kernel dump
|
||
Group: System/Kernel
|
||
Url: https://sourceforge.net/projects/makedumpfile/
|
||
Source: %{name}-%{version}.tar.bz2
|
||
Patch0: %{name}-coptflags.diff
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
ExcludeArch: s390 s390x ppc
|
||
|
||
%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 -q
|
||
%patch0 -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
|
||
* Fri Feb 20 2009 bwalle@suse.de
|
||
- Update to 1.3.2
|
||
o Add --dump-dmesg option (Dumping dmesg buffer from /proc/vmcore
|
||
to a file)
|
||
o Fix a typo in README file.
|
||
o Code Cleanup
|
||
* Wed Dec 03 2008 bwalle@suse.de
|
||
- Exclude 's390' and 's390x' from being built, too.
|
||
* Mon Dec 01 2008 bwalle@suse.de
|
||
- Exclude 'ppc' from being built.
|
||
* Mon Dec 01 2008 bwalle@suse.de
|
||
- Drop makedumpfile-64bit-kernel-on-32bit-userland.diff: Rejected
|
||
upstream. We need to use a 64 bit makedumpfile for 64 bit
|
||
kernels on PPC64 (bnc#447432).
|
||
* Fri Nov 28 2008 bwalle@suse.de
|
||
- makedumpfile-64bit-kernel-on-32bit-userland.diff: Change return
|
||
type of read_vmcoreinfo_symbol() to 'unsigned long long'.
|
||
* Thu Nov 27 2008 bwalle@suse.de
|
||
- Fix parsing of 64 bit VMCOREINFO on 32 bit platforms. For SUSE,
|
||
this only affects openSUSE on PPC because SLES PPC has a 64 bit
|
||
userland now. (bnc#447432).
|
||
* Thu Nov 27 2008 bwalle@suse.de
|
||
- Update to 1.3.1
|
||
o Support linux-2.6.26 sparsemem on i386.
|
||
o Support linux-2.6.27 and linux-2.6.28.
|
||
- Remove makedumpfile-2.6.27.diff: Mainline.
|
||
* Thu Nov 20 2008 bwalle@suse.de
|
||
- Don't require a C++ compiler. That was from the time where the
|
||
library was built within that package and statically linked in.
|
||
* Wed Nov 12 2008 bwalle@suse.de
|
||
- Don't print the "The kernel version is not supported" message
|
||
for 2.6.27 (bnc#440225).
|
||
* Sat Oct 11 2008 bwalle@suse.de
|
||
- Update to 1.3.0
|
||
* features
|
||
o Support i386 CONFIG_VMSPLIT_1G kernel.
|
||
o Add compiling options for calling lseek64() surely.
|
||
o Use gzip for manpage compression.
|
||
* bug fixes
|
||
o Fix the buffer handling problem for reading struct page.
|
||
o Fix readmem to read each page.
|
||
o Don't write undefined values to disk.
|
||
o Fix memory leaks.
|
||
o Fix/Add error messages for debugging.
|
||
o Fix the type of file_offset.
|
||
o Fix the error handling of kvtop_xen().
|
||
o Fix the comment for some values in page.flags.
|
||
* Code Cleanup
|
||
o Cleanup: Separate xen's paddr_to_offset from linux's one.
|
||
o Cleanup: Use the existing macros in kvtop_xen_x86().
|
||
o Cleanup: Delete unnecessary description.
|
||
o Update copyright date.
|
||
* Tue Sep 09 2008 bwalle@suse.de
|
||
- update to 1.2.9
|
||
* features
|
||
o Support ia64 discontigmem kernels of linux-2.6.20+.
|
||
o Support x86_64 linux-2.6.27 kernel.
|
||
o Add makedumpfile's spec file.
|
||
o Add "--vtop" option for debugging.
|
||
o Add the debugging message for ia64 pgtable.
|
||
o Get information from vmcoreinfo of /proc/vmcore even if
|
||
-x/-i option.
|
||
* bug fixes
|
||
o Add free() for error handling.
|
||
o Fix NOT_FOUND value of SIZE(nodemask_t).
|
||
* code cleanup
|
||
o Use the terminal sizes of 80 for the IMPLEMENTATION file.
|
||
o Use static allocation instead of malloc().
|
||
o Add get_num_dumpable() function.
|
||
o Remove the unused pointer.
|
||
o Remove the unused code.
|
||
o Make the ELF methods simple.
|
||
o Merge the same code in write_elf_pages().
|
||
o Add "void" to some arguments.
|
||
o Separate the dependency code to machine and linux version.
|
||
o Cleanup vaddr_to_paddr() function.
|
||
- Remove new compression command for the manual page in the
|
||
Makefile because we use gzip, not zip, and Autobuild does the
|
||
compression automatically.
|
||
* 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.
|