What about including the extensions (especially sial) in the crash rpm?
Or maybe even better, create a second crash-extensions sub package.
Michael
Here a proposal for the SPEC file change:
---
--- crash.spec.orig 2009-02-12 13:05:11.000000000 +0100
+++ crash.spec 2009-02-12 14:38:11.000000000 +0100
@@ -36,12 +36,25 @@
netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch
offered by Mission Critical Linux, or the LKCD kernel patch.
+%package extensions
+Summary: Additional commands for the crash dump analysis tool
+Group: Development/Debuggers
+
+%description extensions
+The extensions package contains plugins that provide additional crash
+commands. The extensions can be loaded in crash via the "extend" command.
+
+The following extensions are provided:
+* sial: Provides C-like language for writing dump analysis scripts
+* dminfo: Device-mapper target analyzer
+
%prep
%setup -n %{name}-%{version}-%{release}
# %patch0 -p1 -b .install (patch example)
%build
make RPMPKG="%{version}-%{release}"
+make RPMPKG="%{version}-%{release}" extensions
> Hi Dave,
>
> What about including the extensions (especially sial) in the crash rpm?
> Or maybe even better, create a second crash-extensions sub package.
>
> Michael
>
> Here a proposal for the SPEC file change:
Looks reasonable to me.
Although this change will only be reflected in the upstream src.rpm file
on my people site, there is sort of a precedent in RHEL5. There is a RHEL5
ppc64 Cell/B.E. SPU "crash-spu-commands" package, which is a standalone crash
extension package, and which puts its .so file in /usr/lib64/crash/extensions:
> ----- "Michael Holzheu" <holzheu@linux.vnet.ibm.com> wrote:
>
> > Hi Dave,
> >
> > What about including the extensions (especially sial) in the crash rpm?
> > Or maybe even better, create a second crash-extensions sub package.
> >
> > Michael
> >
> > Here a proposal for the SPEC file change:
>
> Looks reasonable to me.
>
> Although this change will only be reflected in the upstream src.rpm file
> on my people site, there is sort of a precedent in RHEL5. There is a RHEL5
> ppc64 Cell/B.E. SPU "crash-spu-commands" package, which is a standalone crash
> extension package, and which puts its .so file in
> /usr/lib64/crash/extensions:
>
> $ rpm -qpl crash-spu-commands-1.1-1.ppc64.rpm
> /usr/lib64/crash/extensions/spu.so
> /usr/share/doc/crash-spu-commands-1.1
> /usr/share/doc/crash-spu-commands-1.1/COPYING
> $
>
> So its .spec file has this:
>
> %install
> mkdir -p %{buildroot}%{_libdir}/crash/extensions/
> cp %{_builddir}/%{name}-%{version}/spu.so
> %{buildroot}%{_libdir}/crash/extensions/
>
> and this:
>
> %files
> %defattr(-,root,root)
> %{_libdir}/crash/extensions/spu.so
> %doc COPYING
>
> That should work for you right, i.e., changing your "/usr/lib"
> references to %{_libdir}?
...plus adding the "extensions" directory to the end.
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
02-13-2009, 09:27 AM
Michael Holzheu
crash-extensions rpm
Hi Dave,
Am Donnerstag, den 12.02.2009, 10:30 -0500 schrieb Dave Anderson:
> Although this change will only be reflected in the upstream src.rpm file
> on my people site, there is sort of a precedent in RHEL5. There is a RHEL5
> ppc64 Cell/B.E. SPU "crash-spu-commands" package, which is a standalone crash
> extension package, and which puts its .so file in /usr/lib64/crash/extensions:
>
> $ rpm -qpl crash-spu-commands-1.1-1.ppc64.rpm
> /usr/lib64/crash/extensions/spu.so
> /usr/share/doc/crash-spu-commands-1.1
> /usr/share/doc/crash-spu-commands-1.1/COPYING
> $
>
> So its .spec file has this:
>
> %install
> mkdir -p %{buildroot}%{_libdir}/crash/extensions/
> cp %{_builddir}/%{name}-%{version}/spu.so %{buildroot}%{_libdir}/crash/extensions/
>
> and this:
>
> %files
> %defattr(-,root,root)
> %{_libdir}/crash/extensions/spu.so
> %doc COPYING
>
> That should work for you right, i.e., changing your "/usr/lib" references
> to %{_libdir}?
"%{_libdir}/crash/extensions/" is ok for me!
Michael
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility