----- "Michael Holzheu" <holzheu@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/crash-utility -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility