← Back to team overview

ubuntu-elisp team mailing list archive

Re: apport integration into postinst scripts

 

On Tue, Nov 17, 2009 at 12:47:11PM +0100, Reinhard Tartler wrote:
> 
> Full context: bug #413110.
> 
> Short summary: the postinst script tries to byte compile add-on
> packages. This might fail because of a number of reasons. These cases
> are currently already detected and a logfile is left in /tmp. The user
> is asked (via echo) to attach this file to a bug report against the
> corresponding emacs package.
> 
> When using update-manager to install/upgrade the packages, the terminal
> output is normally hidden which makes it easy for the user to miss these
> instructions. Still, apport is triggered via apt and the user is
> prompted to file a bug.
> 
> It would be great if these bugs would have this compilation logs
> attached automatically to the bugs. The apport documentation at [1]
> explains how to call apport explicitly, but if this was done in the
> postinst, I fear that apport would actually create 2 bug reports: the
> new one from the postinst and one via apt.
> 
> Does anyone know a package that properly integrates apport in its
> postinst script? Or other hints how to do this properly?
> 
> [1] https://wiki.ubuntu.com/Apport/DeveloperHowTo

I suggest looking at the existing scripts in /usr/share/apport which create
problem reports in response to various error events.

-- 
 - mdz



Follow ups

References