From 7cd1501209090b11f8c8a7cc5ba52bc6575b2184 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 28 Jul 2020 19:01:47 +0000 Subject: [PATCH] import crash-gcore-command-1.5.1-1.el8 --- .crash-gcore-command.metadata | 1 + .gitignore | 1 + SOURCES/rhel8_build.patch | 11 ++++ SPECS/crash-gcore-command.spec | 109 +++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 .crash-gcore-command.metadata create mode 100644 .gitignore create mode 100644 SOURCES/rhel8_build.patch create mode 100644 SPECS/crash-gcore-command.spec diff --git a/.crash-gcore-command.metadata b/.crash-gcore-command.metadata new file mode 100644 index 0000000..abdc1e6 --- /dev/null +++ b/.crash-gcore-command.metadata @@ -0,0 +1 @@ +9c542d8503824e5f16d00c47bfdb38a7481ed752 SOURCES/crash-gcore-command-1.5.1.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..569004f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/crash-gcore-command-1.5.1.tar.gz diff --git a/SOURCES/rhel8_build.patch b/SOURCES/rhel8_build.patch new file mode 100644 index 0000000..053a733 --- /dev/null +++ b/SOURCES/rhel8_build.patch @@ -0,0 +1,11 @@ +--- crash-gcore-command-1.3.1/gcore.mk.orig ++++ crash-gcore-command-1.3.1/gcore.mk +@@ -102,7 +102,7 @@ gcore.so: gcore.c $(INCDIR)/defs.h + echo "gcore: architecture not supported"; \ + else \ + make -f gcore.mk $(GCORE_OFILES) && \ +- gcc $(RPM_OPT_FLAGS) $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) $(ARCH_CFLAGS) -nostartfiles -shared -rdynamic $(GCORE_OFILES) -o $@ $< ; \ ++ gcc $(RPM_OPT_FLAGS) $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) $(ARCH_CFLAGS) -nostartfiles -shared -rdynamic $(GCORE_OFILES) -Wl,-z,now -o $@ $< ; \ + fi; + + %.o: %.c $(INCDIR)/defs.h diff --git a/SPECS/crash-gcore-command.spec b/SPECS/crash-gcore-command.spec new file mode 100644 index 0000000..0fc0872 --- /dev/null +++ b/SPECS/crash-gcore-command.spec @@ -0,0 +1,109 @@ +# +# crash core analysis suite +# +Summary: Gcore extension module for the crash utility +Name: crash-gcore-command +Version: 1.5.1 +Release: 1%{?dist} +License: GPLv2 +Group: Development/Debuggers +Source: https://github.com/crash-utility/crash-extensions/blob/master/%{name}-%{version}.tar.gz +URL: https://crash-utility.github.io/extensions.html +# Vendor: FUJITSU LIMITED +# Packager: HATAYAMA Daisuke +ExclusiveOS: Linux +ExclusiveArch: x86_64 %{ix86} arm aarch64 ppc64 ppc64le +Buildroot: %{_tmppath}/%{name}-root +BuildRequires: crash-devel >= 5.1.5, zlib-devel lzo-devel snappy-devel +Requires: crash >= 5.1.5 +Patch0: rhel8_build.patch + +%description +Command for creating a core dump file of a user-space task that was +running in a kernel dumpfile. + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 -b rhel8_build.patch + +%build +make -f gcore.mk + +%install +rm -Rf $RPM_BUILD_ROOT +mkdir -p %{buildroot}%{_libdir}/crash/extensions/ +cp %{_builddir}/%{name}-%{version}/gcore.so %{buildroot}%{_libdir}/crash/extensions/ + +%clean +rm -rf %{buildroot} +rm -Rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_libdir}/crash/extensions/gcore.so +%doc COPYING + +%changelog +* Wed Jul 8 2020 Bhupesh Sharma - 1.5.1-1 +- Rebase crash-gcore-command to github upstream version crash-gcore-command-1.5.1 + Resolves: rhbz#1851747 + +* Tue Jun 25 2019 Dave Anderson - 1.3.1-4 +- Fix "invalid structure size: pid_link" + Resolves: rhbz#1722726 + +* Tue Dec 4 2018 Dave Anderson - 1.3.1-3 +- Fix x86_64 "invalid structure member offset: thread_struct_fs" + Resolves: rhbz#1589019 +- Fix arm64 "invalid structure member offset: thread_struct_fpsimd_state" + Resolves: rhbz#1625810 + +* Wed Sep 10 2018 Dave Anderson - 1.3.1-2 +- Address annocheck link issue + Resolves: rhbz#1630556 + +* Mon Aug 13 2018 Dave Anderson - 1.3.1-1 +- Bump release for mass rebuild + Resolves: rhbz#1615509 + +* Thu Nov 6 2014 Dave Anderson - 1.3.1-0 +- Rebase to 1.3.1 to address 32-bit x86 build error. +- Resolves: rhbz#1077311 + +* Tue Nov 4 2014 Dave Anderson - 1.3.0-0 +- Add aarch64 support +- Resolves: rhbz#1077311 +- Add ppc64/ppc64le support +- Resolves: rhbz#1125485 + +* Fri Dec 27 2013 Daniel Mach - 1.2.1-2 +- Mass rebuild 2013-12-27 + + +* Tue Aug 20 2013 Dave Anderson - 1.2.1-1 + crash utility has added LZO and snappy compression in addition to zlib. + +* Thu May 23 2013 HATAYAMA Daisuke - 1.2.1-0 + Fixes for missing VDSO and vsyscall pages in core dump. + +* Wed Nov 21 2012 HATAYAMA Daisuke - 1.2-0 + Support recent kernels around 3.6. + +* Tue Jan 31 2012 Dave Anderson - 1.0-3 + Address Pkgwrangler/rpmlint issues. + Resolves: rbhz#692799 + +* Wed Jan 25 2012 Dave Anderson - 1.0-2 + Compile with RPM_OPT_FLAGS and fix warnings generated from using it. + Resolves: rbhz#692799 + +* Thu Apr 13 2011 HATAYAMA Daisuke - 1.0-1 +- Remove inclusion of kvmdump.h and unwind_x86_64.h due to non-supporting issue + on crash-devel package. Instead, use a new interface for them. +- Remove ppc64, ia64, s390 and s390x from ExclusiveArch, leave x86_64 + and %%{ix86} there. +- Add descriptions in BuildRequires and Requires about crash and crash-devel. + +* Wed Apr 6 2011 HATAYAMA Daisuke - 1.0-0 +- Initial crash-gcore-command package +