Debian Bug report logs - #707008
dkms: should depend on python-apport

version graph

Package: dkms; Maintainer for dkms is Dynamic Kernel Module System Team <dkms@packages.debian.org>; Source for dkms is src:dkms (PTS, buildd, popcon).

Reported by: Matthias Liertzer <matthias@liertzer.at>

Date: Mon, 6 May 2013 20:12:01 UTC

Severity: normal

Found in version dkms/2.2.0.3-1.2

Fixed in version dkms/2.2.0.3-5

Done: Aron Xu <aron@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>:
Bug#707008; Package dkms. (Mon, 06 May 2013 20:12:05 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Liertzer <matthias@liertzer.at>:
New Bug report received and forwarded. Copy sent to Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>. (Mon, 06 May 2013 20:12:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Matthias Liertzer <matthias@liertzer.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dkms: should depend on python-apport
Date: Mon, 06 May 2013 22:03:53 +0200
Package: dkms
Version: 2.2.0.3-1.2
Severity: normal

Dear Maintainer,

while updating the system to the newest version of linux-headers in unstable
(linux-headers-3.8-1-amd64), dkms failed to run the package hooks for dkms. The
script in /usr/share/apport/package-hooks/dkms_packages.py failed because it
imports the python module apport, which is, however, not installed on the
machine. Installing python-apport and applying the following patch

--- dkms_packages.py    2013-05-06 20:02:05.102478775 +0000
+++ /usr/share/apport/package-hooks/dkms_packages.py    2013-05-06
20:00:26.940936271 +0000
@@ -92,4 +92,4 @@

 if options.kernel:
     report['DKMSKernelVersion'] = options.kernel
-report.write(open(apport.fileutils.make_report_path(report), 'w'))
+report.write(open(apport.fileutils.make_report_path(report), 'wb'))

fixes the problem.

Best,
Matthias

*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?linux-headers-3.8-1-amd64
   * What outcome did you expect instead?

*** End of the template - remove these lines ***



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dkms depends on:
ii  build-essential    11.6
ii  coreutils          8.20-3
ii  dpkg-dev           1.16.10
ii  gcc                4:4.7.2-1
ii  make               3.81-8.2
ii  module-init-tools  9-3
ii  patch              2.6.1-3

Versions of packages dkms recommends:
ii  fakeroot                                     1.18.4-2
ii  linux-headers-3.2.0-4-amd64 [linux-headers]  3.2.41-2
ii  linux-headers-3.8-1-amd64 [linux-headers]    3.8.11-1
ii  linux-headers-amd64 [linux-headers]          3.8+47
ii  linux-image-3.2.0-4-amd64 [linux-image]      3.2.41-2
ii  linux-image-3.8-1-amd64 [linux-image]        3.8.11-1
ii  menu                                         2.1.46
ii  sudo                                         1.8.5p2-1+nmu1

dkms suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>:
Bug#707008; Package dkms. (Thu, 31 Jul 2014 08:42:06 GMT) (full text, mbox, link).


Acknowledgement sent to Dirk Griesbach <spamthis@freenet.de>:
Extra info received and forwarded to list. Copy sent to Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>. (Thu, 31 Jul 2014 08:42:06 GMT) (full text, mbox, link).


Message #10 received at 707008@bugs.debian.org (full text, mbox, reply):

From: Dirk Griesbach <spamthis@freenet.de>
To: Debian Bug Tracking System <707008@bugs.debian.org>
Cc: Matthias Liertzer <matthias@liertzer.at>
Subject: Re: dkms: should depend on python-apport
Date: Thu, 31 Jul 2014 10:35:24 +0200
[Message part 1 (text/plain, inline)]
Package: dkms
Version: 2.2.0.3-1.2
Followup-For: Bug #707008
Tags: patch

Am Mo, 06. Mai 2013 um 22:03:53 +0200 schrieb Matthias Liertzer:
> while updating the system to the newest version of linux-headers in unstable
> (linux-headers-3.8-1-amd64), dkms failed to run the package hooks for dkms. The
> script in /usr/share/apport/package-hooks/dkms_packages.py failed because it
> imports the python module apport, which is, however, not installed on the
> machine. Installing python-apport and applying the following patch

I don't think it is wise to depend on a package which only exists in
experimental. Besides this, there is no need for dkms to depend on
python-apport as it only executes the package hook if apport is
installed. As apport pulls in the apport python module, everything
should be working as expected: Without installing apport everything is
working and people using apport should cope with the experimental nature
of… um… experimental. :)

However, /usr/sbin/dkms calls the hook if a build problem occurs (and
apport is installed) by executing it with python, which by default is a
symlink to python2. But apport pulls in the apport module for Python3.
And here we go. dkms will fail if it calls its apport-hook as Python2
doesn't know about Python3 modules.

There are several options:
 * Use the attached patches to fix dkms to call python3 explicitly and
   port the hook to Python3 (thanks to 2to3). The latter maybe need a
   bit more grooming as I didn't test it.
 * apport could at least suggest or recommend python-apport
 * Let dkms only suggest python-apport. This should be OK as suggestions
   won't be installed by default. So nobody is forced to install
   a) software from experimental or 
   b) apport, even if it wouldn't be experimental.

Dirk
[dkms_python3_apport.py (text/x-python, attachment)]
[dkms_packages_hook_2to3.patch (text/x-diff, attachment)]

Reply sent to Aron Xu <aron@debian.org>:
You have taken responsibility. (Tue, 05 Jul 2016 22:27:18 GMT) (full text, mbox, link).


Notification sent to Matthias Liertzer <matthias@liertzer.at>:
Bug acknowledged by developer. (Tue, 05 Jul 2016 22:27:18 GMT) (full text, mbox, link).


Message #15 received at 707008-close@bugs.debian.org (full text, mbox, reply):

From: Aron Xu <aron@debian.org>
To: 707008-close@bugs.debian.org
Subject: Bug#707008: fixed in dkms 2.2.0.3-5
Date: Tue, 05 Jul 2016 22:26:59 +0000
Source: dkms
Source-Version: 2.2.0.3-5

We believe that the bug you reported is fixed in the latest version of
dkms, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 707008@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aron Xu <aron@debian.org> (supplier of updated dkms package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 06 Jul 2016 05:51:37 +0800
Source: dkms
Binary: dkms
Architecture: source
Version: 2.2.0.3-5
Distribution: unstable
Urgency: medium
Maintainer: Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>
Changed-By: Aron Xu <aron@debian.org>
Description:
 dkms       - Dynamic Kernel Module Support Framework
Closes: 554843 653176 707008 724566 829123
Changes:
 dkms (2.2.0.3-5) unstable; urgency=medium
 .
   [ Aron Xu ]
   * Remove obsolete virtual package 'linux-image' from Recommends (Closes: #724566)
   * Do not ignore --kernelsourcedir (Closes: #653176)
   * Update upstream link to github
   * Use gbp-pq to manage patches
 .
   [ Daniel Kahn Gillmor ]
   * Make dh_dkms name and version parsing more proper (Closes: #829123)
 .
   [ Dirk Griesbach ]
   * Port apport hook to python3 and add python3-apport to Suggests (Closes: #707008)
 .
   [ Thijs Kinkhorst ]
   * mkbmdeb: support for lean binary package with only the built modules (Closes: #554843)
Checksums-Sha1:
 ed439bed3ca7f4cdc5653f570b759ad261cd8629 1676 dkms_2.2.0.3-5.dsc
 53c8fd66fbd8ed40d44fbcdca222b3bb0a6d6869 23848 dkms_2.2.0.3-5.debian.tar.xz
Checksums-Sha256:
 eccc5d46ed251ba9686dd42f2810134c5ff5343b614439d6836e979d36476d68 1676 dkms_2.2.0.3-5.dsc
 fb76dd4d2bf0b4e7d4e75891ef2b07e2ae0723d90f8956a433ce69777b3b947f 23848 dkms_2.2.0.3-5.debian.tar.xz
Files:
 6caaffd34bf026deee7120be0854aa43 1676 kernel optional dkms_2.2.0.3-5.dsc
 5ec647de561c069540acc83bc384aaa8 23848 kernel optional dkms_2.2.0.3-5.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJXfCxMAAoJEPbsVcVkKA0egdgH/06hahFV/RhM/yk4VxiM7XVm
Cs+SRbOJr7jCJRf4Z9VeKiOVHsRbLZu1G77KaxesN/wpREDnbHhUPIVhzSK3/6Yc
rIQHZvf4UcJFif6lO8Yvr+JoWwiwdCLzfTobKd4g7vU8uP+BNYoc/wqKWF4u0WNf
/vzN+ctC5jVLyi018wf77zAoxv2PKJHinJFLLeW54jj1E8VWQ3bGP1A9M2RyNFZJ
QTucN40Y+WpvNH8YcxenrPpzwT+WKJyBu4xPxqyn2VV3PukkI5Q4A9PqhlPZBTZj
nPm1S4dO0YvfqZ6EcolRABvFqJMp1up2wfaaMeSB35vC4iDmbmJwU3J66qhsh78=
=UWnA
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 09 Aug 2016 07:26:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 06:31:53 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.