make_report_path missing (called from dkms_packages.py)

Bug #1500878 reported by Mike C. Fletcher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Undecided
Unassigned

Bug Description

When upgrading Kernel on Kubuntu 15.04 with a package that fails to build against the current kernel, the apport dkms hook fails to report the bug.

Setting up linux-headers-3.19.0-30-generic (3.19.0-30.33) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.19.0-30-generic /boot/vmlinuz-3.19.0-30-generic
Traceback (most recent call last):
  File "/usr/share/apport/package-hooks/dkms_packages.py", line 97, in <module>
    with open(apport.fileutils.make_report_path(report), 'wb') as f:
AttributeError: 'module' object has no attribute 'make_report_path'
Traceback (most recent call last):
  File "/usr/share/apport/package-hooks/dkms_packages.py", line 97, in <module>
    with open(apport.fileutils.make_report_path(report), 'wb') as f:
AttributeError: 'module' object has no attribute 'make_report_path'
Error! Bad return status for module build on kernel: 3.19.0-30-generic (x86_64)
Consult /var/lib/dkms/blackmagic-io/10.3.4a1/build/make.log for more information.
Error! Bad return status for module build on kernel: 3.19.0-30-generic (x86_64)
Consult /var/lib/dkms/blackmagic/10.3.4a1/build/make.log for more information.

The file:

    /usr/share/apport/package-hooks/dkms_packages.py

is provided by the package dkms. Either the hook should be using a public API, or if this is/was a public API it should be kept stable for external hooks, if it's not a public API then likely should re-assign to dkms with note on what API should be used, otherwise should provide the missing API in apport.

/var/log/apport.log is empty, .crash file is included below.

Revision history for this message
Mike C. Fletcher (mcfletch) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.