[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#296026: detailed log of installed->remove->purge states



On Sun, Mar 06, 2005 at 02:28:45PM +0000, Scott James Remnant wrote:
> On Thu, 2005-02-24 at 12:49 -0500, Branden Robinson wrote:
> 
> > This demonstrates dpkg working correctly when dpkg --remove and dpkg
> > --purge are manually invoked on an installed (and then removed) package.
> > 
> So, just to be clear, if you --remove then --purge this package it
> works; but if you only --purge it, a script fails?

That's correct.

> Do you have any ideas what about your script is causing it to fail?

xfree86 4.3.0.dfsg.1-12 is fixed, but here's what *was* causing it:

update-rc.d unconditionally spews chatter to standard output.  There are no
command-line options or environment variables that influence this.  One has
to redirect its stdout elsewhere to shut it up.

debconf equally unconditionally treats standard output as its incoming
command stream.

The purge logic in xfree86-common (and xdm) uses update-rc.d to deregister
init scripts and debconf to purge templates.

debconf ends up seeing update-rc.d's chatter on its command stream, panics,
and dies.

Because of the way the shell script confmodule for debconf works, debconf
can't die without taking the maintainer script with it.

-- 
G. Branden Robinson                |    Men use thought only to justify
Debian GNU/Linux                   |    their wrong doings, and speech only
branden@debian.org                 |    to conceal their thoughts.
http://people.debian.org/~branden/ |    -- Voltaire

Attachment: signature.asc
Description: Digital signature


Reply to: