[Cbe-oss-dev] [PATCH] libspe2: fixing already registered message for elfpe2
Gerhard Stenzel
stenzel at de.ibm.com
Tue Jul 15 19:32:48 EST 2008
When uninstalling elfspe2 package, the package doesn't seem to be running the
"/usr/bin/elfspe-unregister" script, so when the package gets reinstalled, it
gives the "already registered" message. This patch fixes that.
Signed-off-by: Gerhard Stenzel <stenzel at de.ibm.com>
===================================================================
Index: libspe2/libspe2.spec
===================================================================
--- libspe2/libspe2.spec (revision 127)
+++ libspe2/libspe2.spec (working copy)
@@ -197,6 +197,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{build_common}
%preun -n elfspe2
[ -f %{_initdir}/elfspe ] && /sbin/chkconfig --del elfspe
+[ -f %{_bindir}/elfspe-unregister ] && %{_bindir}/elfspe-unregister
%post -n elfspe2
[ -f %{_initdir}/elfspe ] && /sbin/chkconfig --add elfspe
===================================================================
Best regards,
Gerhard Stenzel, Linux on Cell Development, LTC
-------------------------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter | Geschaeftsfuehrung: Herbert Kircher
Sitz der Gesellschaft: Boeblingen | Registergericht: Amtsgericht Stuttgart, HRB 243294
More information about the cbe-oss-dev
mailing list