[Debian GNUstep maintainers] Bug#605565: Reopen Bug#605565: gnustep-base-runtime still fails to remove/upgrade if gdomap is not running

Axel Beckert abe at debian.org
Thu Dec 9 22:52:03 UTC 2010


Hi Yavor,

thanks for having a closer look at this.

Yavor Doganov wrote:
> > > I'm sorry to report this, but gnustep-base-runtime 1.20.1-5 fails to
> > > upgrade on one of my machines due to a not running gdomap.
> > 
> > Two machines actually.
> 
> Yes, the prerm script is being run before the fixed initscript is 
> replaced, so without --oknodo it fails if the daemon is not running...

Oh, ok! I already looked into the issue, too, and noticed that
--oknodo indeed does the right thing. Didn't find out what's the real
problem.

> Any idea what's the right approach to fix this problem?

Two ideas come to my mind:

1. Ignoring the exit code of the init.d script in the prerem.

2. AFAIK the maintainer scripts know if the package is just removed or
   upgraded, so maybe calling it in postinst instead of prerm only if
   the package is upgraded.

BTW: Do you know if that problem is present in Lenny, too? If not,
this bug can possibly ignored as it then won't happen when
dist-upgrading from Lenny to Squeeze. (Nevertheless I'd be happy to
see a working fix for this. :-)

> The only thing that comes to my mind right now is to replace (temporarily)
> dh_installinit's standard snippet in the prerm, ignoring errors -- which 
> looks utterly wrong to me for obvious reasons.

Ah, right, that part is written by debhelper scripts...

Well, maybe you can put some code handling this issue specificly
before the debhelper snippets and care that they are not run in case
this special case occurs.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5





More information about the pkg-GNUstep-maintainers mailing list