crash-vl.spec 12 KB

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