FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 02-12-2009, 01:40 PM
Michael Holzheu
 
Default crash-extensions rpm

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:
---
--- 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

%install
rm -rf %{buildroot}
@@ -51,6 +64,8 @@
cp crash.8 %{buildroot}%{_mandir}/man8/crash.8
mkdir -p %{buildroot}%{_includedir}/crash
cp defs.h %{buildroot}%{_includedir}/crash
+mkdir -p %{buildroot}/usr/lib/crash
+cp extensions/*.so %{buildroot}/usr/lib/crash

%clean
rm -rf %{buildroot}
@@ -63,3 +78,7 @@
%files devel
%defattr(-,root,root)
%{_includedir}/*
+
+%files extensions
+%defattr(-,root,root)
+/usr/lib/crash/*


--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 02-12-2009, 02:30 PM
Dave Anderson
 
Default crash-extensions rpm

----- "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}?

Dave

> ---
> --- 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
>
> %install
> rm -rf %{buildroot}
> @@ -51,6 +64,8 @@
> cp crash.8 %{buildroot}%{_mandir}/man8/crash.8
> mkdir -p %{buildroot}%{_includedir}/crash
> cp defs.h %{buildroot}%{_includedir}/crash
> +mkdir -p %{buildroot}/usr/lib/crash
> +cp extensions/*.so %{buildroot}/usr/lib/crash
>
> %clean
> rm -rf %{buildroot}
> @@ -63,3 +78,7 @@
> %files devel
> %defattr(-,root,root)
> %{_includedir}/*
> +
> +%files extensions
> +%defattr(-,root,root)
> +/usr/lib/crash/*
>
>
> --
> Crash-utility mailing list
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 02-12-2009, 02:34 PM
Dave Anderson
 
Default crash-extensions rpm

----- "Dave Anderson" <anderson@redhat.com> wrote:

> ----- "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.

Dave


> > ---
> > --- 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
> >
> > %install
> > rm -rf %{buildroot}
> > @@ -51,6 +64,8 @@
> > cp crash.8 %{buildroot}%{_mandir}/man8/crash.8
> > mkdir -p %{buildroot}%{_includedir}/crash
> > cp defs.h %{buildroot}%{_includedir}/crash
> > +mkdir -p %{buildroot}/usr/lib/crash
> > +cp extensions/*.so %{buildroot}/usr/lib/crash
> >
> > %clean
> > rm -rf %{buildroot}
> > @@ -63,3 +78,7 @@
> > %files devel
> > %defattr(-,root,root)
> > %{_includedir}/*
> > +
> > +%files extensions
> > +%defattr(-,root,root)
> > +/usr/lib/crash/*
> >
> >
> > --
> > Crash-utility mailing list
> > Crash-utility@redhat.com
> > https://www.redhat.com/mailman/listinfo/crash-utility
>
> --
> Crash-utility mailing list
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 02-13-2009, 09:27 AM
Michael Holzheu
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org