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