de145c
#
de145c
# crash core analysis suite
de145c
#
ed0152
%global reponame crash-gcore
de145c
Summary: Gcore extension module for the crash utility
de145c
Name: crash-gcore-command
ed0152
Version: 1.6.3
de9238
Release: 3%{?dist}
de145c
License: GPLv2
de145c
Group: Development/Debuggers
ed0152
Source: https://github.com/fujitsu/crash-gcore/archive/v%{version}/%{name}-%{version}.tar.gz
ed0152
URL: https://github.com/fujitsu/crash-gcore
de145c
# Vendor: FUJITSU LIMITED
de145c
# Packager: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
de145c
ExclusiveOS: Linux
de145c
ExclusiveArch: x86_64 %{ix86} arm aarch64 ppc64 ppc64le
de145c
Buildroot: %{_tmppath}/%{name}-root
de145c
BuildRequires: crash-devel >= 5.1.5, zlib-devel lzo-devel snappy-devel
de145c
Requires: crash >= 5.1.5
ed0152
Patch0: 0001-coredump-use-MEMBER_-OFFSET-SIZE-instead-of-GCORE_-O.patch
ed0152
Patch1: 0002-gcore-defs-remove-definitions-and-initializations-fo.patch
ed0152
Patch2: 0003-gcore-fix-memory-allocation-failure-during-processin.patch
de9238
Patch3: 0001-x86-Fix-failure-of-collecting-vsyscall-mapping-due-t.patch
de9238
Patch4: 0002-coredump-fix-segmentation-fault-caused-by-type-misma.patch
de9238
Patch5: 0003-elf-fix-warning-message-caused-by-type-mismatch-of-o.patch
de9238
Patch6: 0004-coredump-fix-unexpected-truncation-of-generated-core.patch
de9238
Patch7: 0005-gcore.mk-fix-mismatch-of-_FILE_OFFSET_BITS-when-buil.patch
de145c
de145c
%description
de145c
Command for creating a core dump file of a user-space task that was
de145c
running in a kernel dumpfile.
de145c
de145c
%prep
ed0152
%setup -q -n %{reponame}-%{version}
ed0152
%patch0 -p1
ed0152
%patch1 -p1
ed0152
%patch2 -p1
de9238
%patch3 -p1
de9238
%patch4 -p1
de9238
%patch5 -p1
de9238
%patch6 -p1
de9238
%patch7 -p1
de145c
de145c
%build
ed0152
make CFLAGS="%{optflags} -Wl,-z,now" -C src -f gcore.mk
de145c
de145c
%install
de145c
rm -Rf $RPM_BUILD_ROOT
de145c
mkdir -p %{buildroot}%{_libdir}/crash/extensions/
ed0152
cp %{_builddir}/%{reponame}-%{version}/src/gcore.so %{buildroot}%{_libdir}/crash/extensions/
de145c
de145c
%clean
de145c
rm -rf %{buildroot}
de145c
rm -Rf $RPM_BUILD_ROOT
de145c
de145c
%files
de145c
%defattr(-,root,root)
de145c
%{_libdir}/crash/extensions/gcore.so
de145c
%doc COPYING
de145c
de145c
%changelog
de9238
* Fri Nov 18 2022 Lianbo Jiang <lijiang@redhat.com> - 1.6.3-3
de9238
- Update to upstream commit d2795659986d
de9238
- Resolves: rhbz#2119697
de9238
3055e0
* Tue Apr 12 2022 Tao Liu <ltao@redhat.com> - 1.6.3-2
ed0152
- Rebase to upstream crash-gcore-command-1.6.3
ed0152
- Fix memory allocation failure issue
3055e0
- Resolves: rhbz#2060355
ed0152
f7954e
* Wed Dec 2 2020 Bhupesh Sharma <bhsharma@redhat.com> - 1.6.0-1
f7954e
- Rebase crash-gcore-command to github upstream version crash-gcore-command-1.6.0
f7954e
  Resolves: rhbz#1903465
f7954e
de145c
* Wed Jul 8 2020 Bhupesh Sharma <bhsharma@redhat.com> - 1.5.1-1
de145c
- Rebase crash-gcore-command to github upstream version crash-gcore-command-1.5.1
de145c
  Resolves: rhbz#1851747
de145c
de145c
* Tue Jun 25 2019 Dave Anderson <anderson@redhat.com> - 1.3.1-4
de145c
- Fix "invalid structure size: pid_link"
de145c
  Resolves: rhbz#1722726
de145c
de145c
* Tue Dec  4 2018 Dave Anderson <anderson@redhat.com> - 1.3.1-3
de145c
- Fix x86_64 "invalid structure member offset: thread_struct_fs"
de145c
  Resolves: rhbz#1589019
de145c
- Fix arm64 "invalid structure member offset: thread_struct_fpsimd_state"
de145c
  Resolves: rhbz#1625810
de145c
de145c
* Wed Sep 10 2018 Dave Anderson <anderson@redhat.com> - 1.3.1-2
de145c
- Address annocheck link issue
de145c
  Resolves: rhbz#1630556
de145c
de145c
* Mon Aug 13 2018 Dave Anderson <anderson@redhat.com> - 1.3.1-1
de145c
- Bump release for mass rebuild
de145c
  Resolves: rhbz#1615509
de145c
de145c
* Thu Nov 6 2014 Dave Anderson <anderson@redhat.com> - 1.3.1-0
de145c
- Rebase to 1.3.1 to address 32-bit x86 build error.
de145c
- Resolves: rhbz#1077311
de145c
de145c
* Tue Nov 4 2014 Dave Anderson <anderson@redhat.com> - 1.3.0-0
de145c
- Add aarch64 support
de145c
- Resolves: rhbz#1077311
de145c
- Add ppc64/ppc64le support
de145c
- Resolves: rhbz#1125485
de145c
de145c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2.1-2
de145c
- Mass rebuild 2013-12-27
de145c
de145c
de145c
* Tue Aug 20 2013 Dave Anderson <anderson@redhat.com> - 1.2.1-1
de145c
  crash utility has added LZO and snappy compression in addition to zlib.
de145c
de145c
* Thu May 23 2013 HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com> - 1.2.1-0
de145c
  Fixes for missing VDSO and vsyscall pages in core dump.
de145c
de145c
* Wed Nov 21 2012 HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com> - 1.2-0
de145c
  Support recent kernels around 3.6.
de145c
de145c
* Tue Jan 31 2012 Dave Anderson <anderson@redhat.com> - 1.0-3
de145c
  Address Pkgwrangler/rpmlint issues.
de145c
  Resolves: rbhz#692799
de145c
de145c
* Wed Jan 25 2012 Dave Anderson <anderson@redhat.com> - 1.0-2
de145c
  Compile with RPM_OPT_FLAGS and fix warnings generated from using it. 
de145c
  Resolves: rbhz#692799
de145c
de145c
* Thu Apr 13 2011 HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com> - 1.0-1
de145c
- Remove inclusion of kvmdump.h and unwind_x86_64.h due to non-supporting issue
de145c
  on crash-devel package. Instead, use a new interface for them.
de145c
- Remove ppc64, ia64, s390 and s390x from ExclusiveArch, leave x86_64
de145c
  and %%{ix86} there.
de145c
- Add descriptions in BuildRequires and Requires about crash and crash-devel.
de145c
de145c
* Wed Apr 6 2011 HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com> - 1.0-0
de145c
- Initial crash-gcore-command package
de145c