crash-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. #
  2. # crash core analysis suite
  3. #
  4. Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
  5. Name: crash
  6. Version: 6.1.0
  7. Release: 1%{?_dist_release}
  8. License: GPLv3
  9. Group: Development/Debuggers
  10. Source: http://people.redhat.com/anderson/crash-%{version}.tar.gz
  11. URL: http://people.redhat.com/anderson
  12. ExclusiveOS: Linux
  13. ExclusiveArch: %{ix86} ia64 x86_64 ppc64 s390 s390x %{arm}
  14. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
  15. BuildRequires: ncurses-devel zlib-devel
  16. Requires: binutils
  17. %description
  18. The core analysis suite is a self-contained tool that can be used to
  19. investigate either live systems, kernel core dumps created from the
  20. netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch
  21. offered by Mission Critical Linux, or the LKCD kernel patch.
  22. %package devel
  23. Requires: %{name} = %{version}, zlib-devel
  24. Summary: kernel crash analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
  25. Group: Development/Debuggers
  26. %description devel
  27. The core analysis suite is a self-contained tool that can be used to
  28. investigate either live systems, kernel core dumps created from the
  29. netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch
  30. offered by Mission Critical Linux, or the LKCD kernel patch.
  31. %prep
  32. %setup -n %{name}-%{version} -q
  33. %build
  34. make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}"
  35. %install
  36. rm -rf %{buildroot}
  37. mkdir -p %{buildroot}%{_bindir}
  38. make DESTDIR=%{buildroot} install
  39. mkdir -p %{buildroot}%{_mandir}/man8
  40. cp -p crash.8 %{buildroot}%{_mandir}/man8/crash.8
  41. mkdir -p %{buildroot}%{_includedir}/crash
  42. chmod 0644 defs.h
  43. cp -p defs.h %{buildroot}%{_includedir}/crash
  44. %clean
  45. rm -rf %{buildroot}
  46. %files
  47. %defattr(-,root,root,-)
  48. %{_bindir}/crash
  49. %{_mandir}/man8/crash.8*
  50. %doc README COPYING3
  51. %files devel
  52. %defattr(-,root,root,-)
  53. %{_includedir}/*
  54. %changelog
  55. * Sun Nov 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.1.0-1
  56. - initial build for Vine Linux
  57. * Tue Aug 21 2012 Dave Anderson <anderson@redhat.com> - 6.0.9-1
  58. - Update to latest upstream release
  59. * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.8-2
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  61. * Mon Jul 1 2012 Dave Anderson <anderson@redhat.com> - 6.0.8-1
  62. - Update to latest upstream release.
  63. - Replace usage of "struct siginfo" with "siginfo_t".
  64. * Mon Apr 30 2012 Dave Anderson <anderson@redhat.com> - 6.0.6-1
  65. - Update to latest upstream release
  66. * Mon Mar 26 2012 Dave Anderson <anderson@redhat.com> - 6.0.5-1
  67. - Update to latest upstream release
  68. * Wed Jan 4 2012 Dave Anderson <anderson@redhat.com> - 6.0.2-1
  69. - Update to latest upstream release
  70. * Wed Oct 26 2011 Dave Anderson <anderson@redhat.com> - 6.0.0-1
  71. - Update to latest upstream release
  72. * Tue Sep 20 2011 Dave Anderson <anderson@redhat.com> - 5.1.8-1
  73. - Update to latest upstream release
  74. - Additional fixes for gcc-4.6 -Werror compile failures for ARM architecture.
  75. * Thu Sep 1 2011 Dave Anderson <anderson@redhat.com> - 5.1.7-2
  76. - Fixes for gcc-4.6 -Werror compile failures for ARM architecture.
  77. * Wed Aug 17 2011 Dave Anderson <anderson@redhat.com> - 5.1.7-1
  78. - Update to latest upstream release
  79. - Fixes for gcc-4.6 -Werror compile failures for ppc64/ppc.
  80. * Tue May 31 2011 Peter Robinson <pbrobinson@gmail.com> - 5.1.5-1
  81. - Update to latest upstream release
  82. - Add ARM to the Exclusive arch
  83. * Wed Feb 25 2011 Dave Anderson <anderson@redhat.com> - 5.1.2-2
  84. - Fixes for gcc-4.6 -Werror compile failures in gdb module.
  85. * Wed Feb 23 2011 Dave Anderson <anderson@redhat.com> - 5.1.2-1
  86. - Upstream version.
  87. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.6-3
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  89. * Tue Jul 20 2010 Dave Anderson <anderson@redhat.com> - 5.0.6-2
  90. - Bump version.
  91. * Tue Jul 20 2010 Dave Anderson <anderson@redhat.com> - 5.0.6-1
  92. - Update to upstream version.
  93. * Fri Sep 11 2009 Dave Anderson <anderson@redhat.com> - 4.0.9-2
  94. Bump version.
  95. * Fri Sep 11 2009 Dave Anderson <anderson@redhat.com> - 4.0.9-1
  96. - Update to upstream release, which allows the removal of the
  97. Revision tag workaround, the crash-4.0-8.11-dwarf3.patch and
  98. the crash-4.0-8.11-optflags.patch
  99. * Sun Aug 05 2009 Lubomir Rintel <lkundrak@v3.sk> - 4.0.8.11-2
  100. - Fix reading of dwarf 3 DW_AT_data_member_location
  101. - Use proper compiler flags
  102. * Wed Aug 05 2009 Lubomir Rintel <lkundrak@v3.sk> - 4.0.8.11-1
  103. - Update to later upstream release
  104. - Fix abuse of Revision tag
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  106. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-9.7.2
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  108. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-8.7.2
  109. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  110. * Thu Feb 19 2009 Dave Anderson <anderson@redhat.com> - 4.0-7.7.2
  111. - Replace exclusive arch i386 with ix86.
  112. * Thu Feb 19 2009 Dave Anderson <anderson@redhat.com> - 4.0-7.7.1
  113. - Updates to this file per crash merge review
  114. - Update to upstream version 4.0-7.7. Full changelog viewable in:
  115. http://people.redhat.com/anderson/crash.changelog.html
  116. * Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.0-7
  117. - fix license tag
  118. * Tue Apr 29 2008 Dave Anderson <anderson@redhat.com> - 4.0-6.3
  119. - Added crash-devel subpackage
  120. - Updated crash.patch to match upstream version 4.0-6.3
  121. * Wed Feb 20 2008 Dave Anderson <anderson@redhat.com> - 4.0-6.0.5
  122. - Second attempt at addressing the GCC 4.3 build, which failed due
  123. to additional ptrace.h includes in the lkcd vmdump header files.
  124. * Wed Feb 20 2008 Dave Anderson <anderson@redhat.com> - 4.0-6.0.4
  125. - First attempt at addressing the GCC 4.3 build, which failed on x86_64
  126. because ptrace-abi.h (included by ptrace.h) uses the "u32" typedef,
  127. which relies on <asm/types.h>, and include/asm-x86_64/types.h
  128. does not not typedef u32 as done in include/asm-x86/types.h.
  129. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.0-6.0.3
  130. - Autorebuild for GCC 4.3
  131. * Wed Jan 23 2008 Dave Anderson <anderson@redhat.com> - 4.0-5.0.3
  132. - Updated crash.patch to match upstream version 4.0-5.0.
  133. * Wed Aug 29 2007 Dave Anderson <anderson@redhat.com> - 4.0-4.6.2
  134. - Updated crash.patch to match upstream version 4.0-4.6.
  135. * Wed Sep 13 2006 Dave Anderson <anderson@redhat.com> - 4.0-3.3
  136. - Updated crash.patch to match upstream version 4.0-3.3.
  137. - Support for x86_64 relocatable kernels. BZ #204557
  138. * Mon Aug 7 2006 Dave Anderson <anderson@redhat.com> - 4.0-3.1
  139. - Updated crash.patch to match upstream version 4.0-3.1.
  140. - Added kdump reference to description.
  141. - Added s390 and s390x to ExclusiveArch list. BZ #199125
  142. - Removed LKCD v1 pt_regs references for s390/s390x build.
  143. - Removed LKCD v2_v3 pt_regs references for for s390/s390x build.
  144. * Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 4.0-3
  145. - rebuild
  146. * Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.4
  147. - Updated crash.patch such that <asm/page.h> is not #include'd
  148. by s390_dump.c; IBM did not make the file s390[s] only; BZ #192719
  149. * Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.3
  150. - Updated crash.patch such that <asm/page.h> is not #include'd
  151. by vas_crash.h; only ia64 build complained; BZ #191719
  152. * Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.2
  153. - Updated crash.patch such that <asm/segment.h> is not #include'd
  154. by lkcd_x86_trace.c; also for BZ #191719
  155. * Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.1
  156. - Updated crash.patch to bring it up to 4.0-2.26, which should
  157. address BZ #191719 - "crash fails to build in mock"
  158. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.0-2.18.1
  159. - rebuilt for new gcc4.1 snapshot and glibc changes
  160. * Wed Jan 04 2006 Dave Anderson <anderson@redhat.com> 4.0-2.18
  161. - Updated source package to crash-4.0.tar.gz, and crash.patch
  162. to bring it up to 4.0-2.18.
  163. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  164. - rebuilt
  165. * Thu Mar 03 2005 Dave Anderson <anderson@redhat.com> 3.10-13
  166. - Compiler error- and warning-related fixes for gcc 4 build.
  167. - Update to enhance x86 and x86_64 gdb disassembly output so as to
  168. symbolically display call targets from kernel module text without
  169. requiring module debuginfo data.
  170. - Fix hole where an ia64 vmcore could be mistakenly accepted as a
  171. usable dumpfile on an x86_64 machine, leading eventually to a
  172. non-related error message.
  173. * Wed Mar 02 2005 Dave Anderson <anderson@redhat.com> 3.10-12
  174. - rebuild (gcc 4)
  175. * Thu Feb 10 2005 Dave Anderson <anderson@redhat.com> 3.10-9
  176. - Updated source package to crash-3.10.tar.gz, containing
  177. IBM's final ppc64 processor support for RHEL4
  178. - Fixes potential "bt -a" hang on dumpfile where netdump IPI interrupted
  179. an x86 process while executing the instructions just after it had entered
  180. the kernel for a syscall, but before calling the handler. BZ #139437
  181. - Update to handle backtraces in dumpfiles generated on IA64 with the
  182. INIT switch (functionality intro'd in RHEL3-U5 kernel). BZ #139429
  183. - Fix for handling ia64 and x86_64 machines booted with maxcpus=1 on
  184. an SMP kernel. BZ #139435
  185. - Update to handle backtraces in dumpfiles generated on x86_64 from the
  186. NMI exception stack (functionality intro'd in RHEL3-U5 kernel).
  187. - "kmem -[sS]" beefed up to more accurately verify slab cache chains
  188. and report errors found.
  189. - Fix for ia64 INIT switch-generated backtrace handling when
  190. init_handler_platform() is inlined into ia64_init_handler();
  191. properly handles both RHEL3 and RHEL4 kernel patches.
  192. BZ #138350
  193. - Update to enhance ia64 gdb disassembly output so as to
  194. symbolically display call targets from kernel module
  195. text without requiring module debuginfo data.
  196. * Wed Jul 14 2004 Dave Anderson <anderson@redhat.com> 3.8-5
  197. - bump release for fc3
  198. * Tue Jul 13 2004 Dave Anderson <anderson@redhat.com> 3.8-4
  199. - Fix for gcc 3.4.x/gdb issue where vmlinux was mistakenly presumed non-debug
  200. * Fri Jun 25 2004 Dave Anderson <anderson@redhat.com> 3.8-3
  201. - remove (harmless) error message during ia64 diskdump invocation when
  202. an SMP system gets booted with maxcpus=1
  203. - several 2.6 kernel specific updates
  204. * Thu Jun 17 2004 Dave Anderson <anderson@redhat.com> 3.8-2
  205. - updated source package to crash-3.8.tar.gz
  206. - diskdump support
  207. - x86_64 processor support
  208. * Mon Sep 22 2003 Dave Anderson <anderson@redhat.com> 3.7-5
  209. - make bt recovery code start fix-up only upon reaching first faulting frame
  210. * Fri Sep 19 2003 Dave Anderson <anderson@redhat.com> 3.7-4
  211. - fix "bt -e" and bt recovery code to recognize new __KERNEL_CS and DS
  212. * Wed Sep 10 2003 Dave Anderson <anderson@redhat.com> 3.7-3
  213. - patch to recognize per-cpu GDT changes that redefine __KERNEL_CS and DS
  214. * Wed Sep 10 2003 Dave Anderson <anderson@redhat.com> 3.7-2
  215. - patches for netdump active_set determination and slab info gathering
  216. * Wed Aug 20 2003 Dave Anderson <anderson@redhat.com> 3.7-1
  217. - updated source package to crash-3.7.tar.gz
  218. * Wed Jul 23 2003 Dave Anderson <anderson@redhat.com> 3.6-1
  219. - removed Packager, Distribution, and Vendor tags
  220. - updated source package to crash-3.6.tar.gz
  221. * Fri Jul 18 2003 Jay Fenlason <fenlason@redhat.com> 3.5-2
  222. - remove ppc from arch list, since it doesn't work with ppc64 kernels
  223. - remove alpha from the arch list since we don't build it any more
  224. * Fri Jul 18 2003 Matt Wilson <msw@redhat.com> 3.5-1
  225. - use %%defattr(-,root,root)
  226. * Tue Jul 15 2003 Jay Fenlason <fenlason@redhat.com>
  227. - Updated spec file as first step in turning this into a real RPM for taroon.
  228. - Wrote man page.