File lcrash.spec of Package lcrash
#
# spec file for package lcrash (Version 7.0.1_1434)
#
# 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: lcrash
ExclusiveArch: alpha ia64 s390 s390x ppc64 %ix86 x86_64
%if %suse_version >= 1030
BuildRequires: binutils-devel libelf0-devel
%else
BuildRequires: libelf
%endif
BuildRequires: glib2-devel popt-devel zlib-devel
BuildRequires: bison flex module-init-tools ncurses-devel
Summary: Linux Kernel Crash Dump (LKCD) Utilities
Version: 7.0.1_1434
Release: 1
%define sourcename lkcdutils
%define svnversion %(echo %{version} | cut -d _ -f 2)
%define tarversion svn-r%{svnversion}
License: GPL v2 or later
Group: System/Kernel
# Original source is from Sourceforge SVN
# svn co https://lkcd.svn.sourceforge.net/svnroot/lkcdutils lkcdutils -r %{svnversion}
Source: %{sourcename}-%{tarversion}.tar.bz2
Patch3: lcrash-fix-compat-dumps
Patch6: lcrash-add-cflags.diff
Patch7: lcrash-composite-types.patch
#
# temporary patches
Patch13: lcrash-architecture-independent-index
Patch14: lcrash-add-kl-init-virtop-i386
Patch15: lcrash-sanity-check
#
Obsoletes: lkcdutils < %{version}
Provides: lkcdutils = %{version}-%{release}
Url: http://lkcd.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %fillup_prereq %insserv_prereq
%description
This software package contains system crash dump analysis tools. It
includes Linux Crash (lcrash) and all appropriate user level scripts
required for saving and configuring system crash dumps.
%package devel
License: GPL v2 or later
Requires: lcrash = %{version}
Summary: Linux Kernel Crash Dump (LKCD) Utilities
Group: Development/Libraries/C and C++
AutoReqProv: on
PreReq: %install_info_prereq
%description devel
This software package contains system crash dump analysis tools. It
includes Linux Crash (lcrash) and all appropriate user level scripts
required for saving and configuring system crash dumps.
%package doc
License: GPL v2 or later
Requires: lcrash = %{version}
Summary: Linux Kernel Crash Dump (LKCD) Utilities
Group: System/Kernel
AutoReqProv: on
PreReq: %install_info_prereq
%description doc
This software package contains system crash dump analysis tools. It
includes Linux Crash (lcrash) and all appropriate user level scripts
required for saving and configuring system crash dumps.
%prep
%setup -q -n %{sourcename}-%{tarversion}
%patch3 -p1
%patch6 -p1
%patch7 -p2
%patch13 -p1
%patch14 -p1
%patch15 -p1
%build
# --target-arch=all only for Code 10 and beyond because
# binutils from SLES9 is too old, it doesn't provide
# print_insn_big_powerpc on x86_64, for example
export CFLAGS="$RPM_OPT_FLAGS -O0 -fno-strict-aliasing"
./configure \
--prefix=${_prefix} \
--mandir=%{_mandir} \
%if %suse_version >= 1000
--target-arch=all \
%endif
--cflags="$CFLAGS" \
--arch=$RPM_ARCH
%{__make}
%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/lkcd
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/lcrash
# binaries
install -m 0755 ./lcrash/lcrash $RPM_BUILD_ROOT/%{_bindir}
# lib + include files
cd lib
make ROOT=$RPM_BUILD_ROOT LIBDIR=/usr/%_lib prefix=$RPM_BUILD_ROOT/usr \
libdir=$RPM_BUILD_ROOT/usr/%_lib install
cd -
# manpages
install -m 0644 ./dwarf/dwarfdump/dwarfdump.1 $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 0644 ./lcrash/man/lcrash.1 $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 0644 ./dumputils/configdump.1 $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 0644 ./dumputils/savedump.1 $RPM_BUILD_ROOT/%{_mandir}/man1
gzip $RPM_BUILD_ROOT/%{_mandir}/man1/*
# permission
chmod a-x $RPM_BUILD_ROOT/%{_libdir}/libsial.a
%clean
if [ -z "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]; then
rm -rf $RPM_BUILD_ROOT
fi
%files
%defattr(-,root,root)
%{_bindir}/lcrash
%{_mandir}/man1/*
%dir %{_datadir}/sial
%{_datadir}/sial/lcrash
%files devel
%defattr(-,root,root)
%{_includedir}/lkcd/
%{_libdir}/libsial.a
%{_includedir}/sial_api.h
%{_includedir}/sial.h
%{_libdir}/lkcd
%files doc
%defattr(-,root,root)
%doc ./docs/lkcd_tutorial.pdf
%doc ./docs/lcrash/lcrash-howto/lcrash.pdf
%changelog
* Sat Nov 08 2008 bwalle@suse.de
- update to SVN version 1434
o "struct module" members have been changed between 2.6.26 and
2.6.27 from "unsigned long" to "unsigned int". Adjust kernel
symbol read function accordingly.
* Fri Oct 17 2008 bwalle@suse.de
- add ExclusiveArch alpha ia64 s390 s390x ppc64 x86 x86_64
* Mon Oct 06 2008 bwalle@suse.de
- update to SVN version 1433
o Fix configdump and savedump configuration parsing with double
quotes (bnc#431375)
o Small fix to print correct information about typedefed
funtions.
* Tue Aug 12 2008 bwalle@suse.de
- update to SVN version 1430
o Fix problems when reading type information from .debug_info
section and properly decode enum values
* Tue Aug 12 2008 bwalle@suse.de
- update to SVN version 1429
o small fix to size of an offset, and a mis-spelling
o prevent lcrash from looping on finding real types for certain
structures in a full ia32 kernel kerntypes file
o Add large page support for s390x.
o Fix backtraces on ia64 dumps with 64K page size.
* Mon Mar 10 2008 bwalle@suse.de
- update to SVN version 1422
o fix off-by-one in dumputils/parseconf.c
o allow lcrash to work on live ia64 systems with page size other
than 16k
* Thu Jan 10 2008 bwalle@suse.de
- update to SVN version 1420
o Fix timestamp problem in zfcp dbf view.
o Implement -N/--noverify option for lcrash
o Use page size of s390 dump header (#343799)
* Thu Dec 13 2007 bwalle@suse.de
- add sanity check for mapfile (#333794)
* Mon Dec 10 2007 bwalle@suse.de
- update to upstream SVN version 1415
o Add zfcp debug view.
o The page table walk is done now only according to the s390
architecture without assumptions on the implementation in the
kernel.
* Wed Oct 17 2007 bwalle@suse.de
- update to upstream SVN version 1411
o Close a hole in task_has_cpu() that can cause memory bloat
and fix a bug in alloc_block() that can cause too small of
a block to be allocated (which can result in block overrun).
(#334286)
o Make sure that lcrash exits when EOF is returned from getc()
in readline()
* Sun Sep 02 2007 bwalle@suse.de
- added Provides/Obsoletes because of update path from 10.2
* Wed Aug 29 2007 bwalle@suse.de
- updated to upstream SVN version 1408
o support for x86_64 VM after 2.6.11
o support for x86_64 kdump dumps
- added a patch that builds an architecture independent index.n
file (#304169)
- merged following patches mainline
o lcrash-fix-undefined-warning.diff
o lcrash-fix-missing-filenames.diff
o lcrash-fix-wrong-default-cpu-initialisation.diff
o lcrash-man.patch
o lcrash.linux-threads.patch
o lcrash-libelf-static.patch (part that adds lib64)
- dropped follwing patches
o lcrash-gcc4.patch
o lcrash-dumputils.patch
=> not needed because only lcrash is distributed
o lcrash-libelf-static.patch (part that links libself statically)
=> build lcrash dynamically, this package is only used
as debugging tool, not used in init scripts or initrd
where static linking may be necessary
- don't use a macro inside Version any more
- spec file also builds with other distributions (SLES 9/10)
* Mon Aug 27 2007 bwalle@suse.de
- disable parallel build, the Makefiles are not ready for this
* Mon Aug 27 2007 bwalle@suse.de
- add temp patches:
o lcrash-read-x86_64-kdump-dumps.patch
o lcrash-use-node_data.patch
o lcrash-fix-bt-kdump-crash.patch
o lcrash-implement-x86_64-vm-changes.patch
o lcrash-architecture-independent-index
o lcrash-fix-cross-debug
* Fri Aug 17 2007 bwalle@suse.de
- fix compile warnings in x86_64 disassembly support
- add patch to read dump files from kdump
* Mon Aug 06 2007 olh@suse.de
- remove inclusion of linux/threads.h
* Thu Jul 05 2007 bwalle@suse.de
- added x86_64 disassembly support (#287453)
- added lsof.sial (#287453)
* Tue Jul 03 2007 lrupp@suse.de
- libelf => libelf0-devel
- build parallel
- don't remove buildroot during install in an unsecure way
* Mon Jun 04 2007 bwalle@suse.de
- renamed lkcdutils to lcrash
- dropped all kernel lkcdutils related stuff since lkcd is not
in the kernel any more but was obsoleted by kdump
- dropped netdump-server package
- split package into main package, -devel and -doc
- removed all patches that are not against lcrash and/or unused
- dropped dwarf library, libdwarf is now another package (which
includes libdwarf in the latest mainline version)
* Mon May 21 2007 bwalle@suse.de
- add patch from ptesarik@suse.cz to fix composite types
* Mon Apr 16 2007 bwalle@suse.de
- fix failure of first 'rd' call (#264857)
- honor RPM_OPT_FLAGS when building lcrash
- set -fno-strict-aliasing because of type-punned pointers
* Fri Apr 13 2007 bwalle@suse.de
- update to svn 1364
o Call to kl_open_namelist needs another argument - because of
my earlier patch to add a -o option.
o added patches we already had in the package to SVN
o Add the -o option to lcrash to save debugging types to
a file (for use in kdb)
* Sun Apr 01 2007 bwalle@suse.de
- use ARCH_IS_IA64() instead of KL_ARCH == KL_ARCH_IA64 to honor
all ia64 architecture variants (#259537)
* Thu Mar 29 2007 bwalle@suse.de
- fixed BuildRequires for STABLE
* Thu Mar 15 2007 bwalle@suse.de
- accidentally removed binutils-devel from BuildRequires, fixing
this
* Tue Mar 13 2007 bwalle@suse.de
- adapt ps.sial to work around a limitation of the sial interpreter
that prevents anonymous structures from being handled corretly
(#184469, #252357)
* Sat Jan 27 2007 bwalle@suse.de
- upstream fixes
o Fix a bug in array dimensioning
o fix problems with the search function, esp. on s390
- don't read the /etc/dumputils.conf configuration file in savedump
when dump device and dump directory are specified on command
line (#239354)
- make lcrash -s (saves the dump to disk) work again (#239355)
according to the manpage
* Tue Jan 23 2007 bwalle@suse.de
- only call kl_check_page_tables_ia64() if debugging an IA64
backtrace
* Fri Jan 12 2007 bwalle@suse.de
- polling/non-polling mode is now read from the dump configuration
also when using the sysfs-based configuration interface (which we
use on SLES10)
* Thu Jan 11 2007 bwalle@suse.de
- added BuildRequires binutils-devel since binutils doesn't contain
header files any more
* Mon Jan 08 2007 bwalle@suse.de
- added patch from Jan Blunck that fixes the "operation on 'v1' may
be undefined" warning
* Tue Jan 02 2007 bwalle@suse.de
- update to new upstream version (svn revision 1339)
o fixes to various stack backtace related problems for ia64
o fixes for when a dump is initiated via kdb (system hangs)
o various other bug fixes
* Fri Dec 01 2006 jblunck@suse.de
- fix the ps.sial to work with SLES9 kernels too (#184469)
* Sun Nov 19 2006 schwab@suse.de
- Don't use kernel headers.
* Sun Nov 19 2006 ro@suse.de
- locally define offsetof if it does not come from kernel header
* Sat Nov 11 2006 aj@suse.de
- Fix man permissions.
* Mon Sep 04 2006 uli@suse.de
- adapt ps.sial to kABI changes (bug #184469)
* Thu Jun 01 2006 hare@suse.de
- lcrash produces incompete stack traces (#179253)
* Thu May 04 2006 hare@suse.de
- Use the correct config file (#164964)
* Fri Apr 28 2006 hare@suse.de
- Fix access to anonymous structs (#169406)
- Fix crash with 'page' command (#169447)
- Remove obsolete lkcdutils-ia64-fujitsu.patch
* Mon Apr 24 2006 hare@suse.de
- Fixed script name in /etc/init.d/boot.lkcd (#164964)
- Fix 4-Level Pagetable dumps (#166312)
- Install /etc/sysconfig/dump correctly (#164966)
* Mon Apr 10 2006 hare@suse.de
- Fix crash when started with args (#163769 - LTC22923)
* Wed Mar 29 2006 hare@suse.de
- Handle version 9 dumps correctly (#149136)
- Fix savedump to save kerntypes.
* Thu Mar 23 2006 hare@suse.de
- Fix S/390 standalone dumps (#159117 - LTC22496)
* Thu Feb 23 2006 hare@suse.de
- Compilation fixes
- Moved config file from /etc/dumputils.conf to
/etc/sysconfig/dump for compability.
* Tue Feb 21 2006 hare@suse.de
- Include latest CVS fixes which contains only upstreamed patches
- Remove separate upstreamed packages
- Fixed dumputils (#149136)
- Fixed init script (#148282)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 22 2005 hare@suse.de
- Update to 7.X.X cvs version
(Secure mode not yet ported)
* Mon Dec 19 2005 ro@suse.de
- added missing symlink to filelist and change name clash
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Wed Oct 12 2005 sbrabec@suse.cz
- Force glib2 using gtk1-compat-devel.
* Fri Apr 29 2005 ro@suse.de
- fix build with gcc-4
* Mon Aug 16 2004 hare@suse.de
- Fixed build with packaged binutils
- Updated for SL9.2
* Tue Jun 29 2004 hare@suse.de
- Fix missing dump information (#42546).
* Thu Jun 24 2004 hare@suse.de
- Modified init script to check for dump type first;
added init script for netdump configuration (#41855).
* Wed Jun 23 2004 hare@suse.de
- Update REAMDE for ia64 (#42206)
* Tue Jun 15 2004 hare@suse.de
- Update READMEs (#41405)
* Tue Jun 15 2004 hare@suse.de
- Fix netdump server Makefile (#41769 - LTC7378).
- Do not specify a default netdump server (#41851).
- Fix netdump on PPC64 (#41007 - LTC8771).
* Mon Jun 14 2004 agruen@suse.de
- #41884 / LTC8990: disk dump failure on ia64 w/64K pages.
* Wed Jun 09 2004 hare@suse.de
- Fix lcrash for CPUs > 32 (#41556).
* Wed May 26 2004 hare@suse.de
- Fix backtraces for modules on i386 (#41176).
* Wed May 26 2004 hare@suse.de
- Fix display of help text for netdump-server (#41014).
- Use default values for bogus port numbers (#41011).
* Wed May 26 2004 hare@suse.de
- Update AMD64 port (#39442).
* Wed May 26 2004 hare@suse.de
- Yet another ia64 update (#41002)
- Fix trace output on ppc64 (#41136)
- Fix make install (#41156).
- Fix backtraces on i386 (#41176).
* Tue May 25 2004 hare@suse.de
- ia64 update (#41002).
- Fix netdump failures on ppc64 (#41007).
* Mon May 24 2004 hare@suse.de
- Fix cross-compilation for x86_64 (#40917).
* Fri May 14 2004 hare@suse.de
- Fix dump with DUMP_LEVEL=1 (#39840).
* Fri May 14 2004 hare@suse.de
- Add man page for lkcd (#40403).
* Wed May 12 2004 hare@suse.de
- Set defaults to netdump & save kernel pages only (#39994).
* Tue May 11 2004 hare@suse.de
- Update netdump port setting fix (#39833).
* Thu May 06 2004 hare@suse.de
- Fix setting of netdump port (#39833).
* Thu Apr 29 2004 hare@suse.de
- Update x86_64 port.
* Wed Apr 28 2004 hare@suse.de
- Fix lkcd save for out-of-order sequences (#39564).
* Tue Apr 27 2004 hare@suse.de
- Display usage message for strace (#39415).
- Update core-dump support from Jan Beulich.
* Thu Apr 15 2004 hare@suse.de
- Using uname(2) to determine default parameter
of lcrash (#37992).
* Tue Apr 06 2004 hare@suse.de
- Enabled x86_64 port.
- Fix sysconfig documentation (#38390)
* Mon Apr 05 2004 hare@suse.de
- Fixed documentation for lkcd defaults (#37992)
- Fix i386 backtraces.
* Thu Apr 01 2004 hare@suse.de
- Disabled ia64 support until further notice
- Fixes by Jan Beulich (Fixing also #35529)
- Update to latest CVS.
* Mon Mar 22 2004 mason@suse.de
- added ia64 support
* Thu Mar 11 2004 ro@suse.de
- added check_build.sh to build only on 2.6 hosts
* Tue Mar 02 2004 schwab@suse.de
- Fix invalid use of kernel headers.
* Wed Feb 25 2004 hare@suse.de
- Fixed typo in gcc33-aliasing patch.
* Fri Feb 20 2004 ro@suse.de
- do nothing for stop case of boot.lkcd
* Thu Feb 19 2004 hare@suse.de
- Update to CVS head.
- Fixed build with bison instead of yacc.
- Added PPC64 target architecture.
- Fixed gcc 3.3 strict aliasing issues.
* Tue Oct 07 2003 uli@suse.de
- added unpackaged files/dirs to file list
- made FS structure FHS-compliant
- enabled all (working) architectures
* Tue Sep 23 2003 hare@suse.de
- Fixed fillup to update DUMP_FLAGS to the new format (#31095).
* Mon Sep 15 2003 schwab@suse.de
- Fix pattern in sed command.
* Mon Sep 15 2003 schwab@suse.de
- Fix build on ia64.
- Explicitly pass bfd-version.
* Wed Aug 27 2003 lmb@suse.de
- Merged two change sets.
* Thu Aug 21 2003 lmb@suse.de
- Fix from IBM for detecting PAE in the dumps. (#26727)
* Thu Aug 14 2003 hare@suse.de
- Fixed build on s390x / bi-arch machines.
* Mon Aug 04 2003 lmb@suse.de
- Fix from IBM for parsing dumps. (Also related to #26727)
* Wed Jul 09 2003 lmb@suse.de
- Update to CVS lkcdutils.
* Wed Jul 09 2003 lmb@suse.de
- Fix LKCD lkcd_netconfig / netdump.
- Added rudimentary help message to lkcd_netconfig and fixed the
ioctl() ordering.
* Fri Jul 04 2003 lmb@suse.de
- Add boot.lkcd script. (#26727)
* Mon Mar 17 2003 okir@suse.de
- build fix for network based crash dumps
* Fri Mar 14 2003 duwe@suse.de
- added rudimentary utility to configure network dumps
* Thu Feb 20 2003 mmj@suse.de
- Add sysconfig metadata [#23876]
* Thu Sep 05 2002 ro@suse.de
- initial suse package
- modified sysconfig template (changed to comment/var-blocks
and use fillup)
* Tue Sep 03 2002 go@turbolinux.co.jp
- modified for UnitedLinux
* Fri Aug 16 2002 go@turbolinux.co.jp
- support -64G kernel
* Mon Jun 10 2002 go@turbolinux.co.jp
- support smp64G kernel
* Sun Jun 09 2002 go@turbolinux.co.jp
- update 4.1-1
* Mon Apr 15 2002 go@turbolinux.co.jp
- fixed for kernel compiled gcc31
* Sun Feb 03 2002 go@turbolinux.co.jp
- update 4.0.1-3 from CVS
* Tue Jan 29 2002 go@turbolinux.co.jp
- update 4.0
- compat for 3.2
* Fri Sep 28 2001 go@turbolinux.co.jp
- first release clush dump utility