[Debconf-devel] Bug#782463: debconf: purging package that uses	debconf fails if postrm writes to stdout
    Tristan Schmelcher 
    tristan.schmelcher at gmail.com
       
    Sun Apr 12 17:26:04 UTC 2015
    
    
  
Doh. With word wrap:
Packages that use debconf automatically get a postrm fragment for
purge that sources confmodule. This breaks if the maintainer has a
custom postrm that can write to stdout before the #DEBHELPER# line,
because the redirection of stdout to stderr does not occur until the
#DEBHELPER# line is reached for the second time. This results in an
unpurgeable package. Here is a minimal package that repros the
problem:
...
The problem can be fixed by having the re-exec in confmodule go
through a helper script to do the redirection before running any
maintainer code, such as with this patch:
...
    
    
More information about the Debconf-devel
mailing list