apport integration into postinst scripts
siretart at ubuntu.com
Tue Nov 17 11:47:11 GMT 2009
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 
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?
Reinhard Tartler, KeyID 945348A4
More information about the ubuntu-devel