Debian Bug report logs - #633802
dkms leaves empty temp file in /tmp

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: Scott Moser <smoser@ubuntu.com>

Date: Wed, 13 Jul 2011 20:48:02 UTC

Severity: normal

Tags: patch

Found in version 2.1.1.2-5ubuntu1

Fixed in version dkms/2.2.0.2-1

Done: Mario Limonciello <Mario_Limonciello@Dell.com>

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#633802; Package dkms. (Wed, 13 Jul 2011 20:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Scott Moser <smoser@ubuntu.com>:
New Bug report received and forwarded. Copy sent to Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>. (Wed, 13 Jul 2011 20:48:05 GMT) (full text, mbox, link).


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

From: Scott Moser <smoser@ubuntu.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dkms leaves empty temp file in /tmp
Date: Wed, 13 Jul 2011 16:44:49 -0400
Package: dkms
Version: 2.1.1.2-5ubuntu1
Severity: normal
Tags: patch

dkms leaves a tmp file in /tmp each time it is run.

$ ls -l /tmp/dkms*
ls: cannot access /tmp/dkms*: No such file or directory
$ /usr/sbin/dkms
$ echo $?
0
$ ls -l /tmp/dkms*
-rw------- 1 smoser smoser 0 2011-07-13 16:32 /tmp/dkms.gooAoqPK
$ dpkg-query --show dkms
dkms 2.1.1.2-5ubuntu1


This was introduced in the debian patch use-system-tmpdir.patch
The following patch will fix the issue:

--- debian/patches/use-system-tmpdir.patch	2010-06-04 13:53:23 +0000
+++ debian/patches/use-system-tmpdir.patch	2011-07-13 20:40:21 +0000
@@ -1,14 +1,16 @@
 Description: Use system setting for tmpdir
 Author: Michael Gilbert <michael.s.gilbert@gmail.com>
+Last-update: 2011-07-13
 --- dkms-2.1.1.2.orig/dkms
 +++ dkms-2.1.1.2/dkms
-@@ -3592,7 +3592,8 @@ current_kernel=`uname -r`
+@@ -3592,7 +3592,9 @@ current_kernel=`uname -r`
  dkms_tree="/var/lib/dkms"
  source_tree="/usr/src"
  install_tree="/lib/modules"
 -tmp_location="/tmp"
 +tmp_file=`mktemp --tmpdir dkms.XXXXXXXX`
 +tmp_location=`dirname $tmp_file`
++rm -f "$tmp_file"
  verbose=""
  dkms_frameworkconf="/etc/dkms/framework.conf"
  

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0-2-generic (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.5ubuntu1      Informational list of build-essent
ii  coreutils               8.5-1ubuntu6     GNU core utilities
ii  dpkg-dev                1.16.0.3ubuntu3  Debian package development tools
ii  gcc                     4:4.6.0-5ubuntu1 The GNU C compiler
ii  make                    3.81-8.1ubuntu1  An utility for Directing compilati
ii  module-init-tools       3.16-1ubuntu1    tools for managing Linux kernel mo
ii  patch                   2.6.1-2          Apply a diff file to an original

Versions of packages dkms recommends:
ii  fakeroot                1.16-1           tool for simulating superuser priv
ii  linux-headers-2.6.39-3  2.6.39-3.10      Header files related to Linux kern
ii  linux-headers-2.6.39-3- 2.6.39-3.10      Linux kernel headers for version 2
ii  linux-headers-3.0.0-5 [ 3.0.0-5.6        Header files related to Linux kern
ii  linux-headers-3.0.0-5-g 3.0.0-5.6        Linux kernel headers for version 3
ii  linux-headers-generic   3.0.0.5.6        Generic Linux kernel headers
ii  linux-image-3.0.0-5-gen 3.0.0-5.6        Linux kernel image for version 3.0
ii  menu                    2.1.45ubuntu1    generates programs menu for all me
ii  sudo                    1.7.4p6-1ubuntu1 Provide limited super user privile

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#633802; Package dkms. (Wed, 13 Jul 2011 21:00:06 GMT) (full text, mbox, link).


Acknowledgement sent to Scott Moser <smoser@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>. (Wed, 13 Jul 2011 21:00:06 GMT) (full text, mbox, link).


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

From: Scott Moser <smoser@ubuntu.com>
To: 633802@bugs.debian.org
Subject: patch
Date: Wed, 13 Jul 2011 16:56:12 -0400 (EDT)
I included the patch to debian/patches/use-system-tmpdir.patch above, but
to be more obvious, heres the change to 'dkms' directly.

--- dkms 2011-03-12 11:07:47 +0000
+++ dkms 2011-07-13 20:38:55 +0000
@@ -3601,6 +3601,7 @@
 install_tree="/lib/modules"
 tmp_file=`mktemp --tmpdir dkms.XXXXXXXX`
 tmp_location=`dirname $tmp_file`
+rm -f "$tmp_file"
 verbose=""
 dkms_frameworkconf="/etc/dkms/framework.conf"





Reply sent to Mario Limonciello <Mario_Limonciello@Dell.com>:
You have taken responsibility. (Fri, 22 Jul 2011 19:21:12 GMT) (full text, mbox, link).


Notification sent to Scott Moser <smoser@ubuntu.com>:
Bug acknowledged by developer. (Fri, 22 Jul 2011 19:21:12 GMT) (full text, mbox, link).


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

From: Mario Limonciello <Mario_Limonciello@Dell.com>
To: 633802-close@bugs.debian.org
Subject: Bug#633802: fixed in dkms 2.2.0.2-1
Date: Fri, 22 Jul 2011 19:17:40 +0000
Source: dkms
Source-Version: 2.2.0.2-1

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:

dkms_2.2.0.2-1.debian.tar.gz
  to main/d/dkms/dkms_2.2.0.2-1.debian.tar.gz
dkms_2.2.0.2-1.dsc
  to main/d/dkms/dkms_2.2.0.2-1.dsc
dkms_2.2.0.2-1_all.deb
  to main/d/dkms/dkms_2.2.0.2-1_all.deb
dkms_2.2.0.2.orig.tar.gz
  to main/d/dkms/dkms_2.2.0.2.orig.tar.gz



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 633802@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mario Limonciello <Mario_Limonciello@Dell.com> (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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 22 Jul 2011 13:36:32 -0500
Source: dkms
Binary: dkms
Architecture: source all
Version: 2.2.0.2-1
Distribution: unstable
Urgency: low
Maintainer: Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>
Changed-By: Mario Limonciello <Mario_Limonciello@Dell.com>
Description: 
 dkms       - Dynamic Kernel Module Support Framework
Closes: 633802 634979
Changes: 
 dkms (2.2.0.2-1) unstable; urgency=low
 .
   [ Mario Limonciello ]
   * [c5846b6] Imported Upstream version 2.2.0.2
     - Doesn't leave files in /tmp (Closes: #633802)
     - Autoinstall works on multiple kernels (Closes: #634979) (LP: #812979)
     - PRE_BUILD command working directory fix. (LP: #812088)
   * [83b5f6e] Drop kfreebsd.patch.  Merged upstream
 .
   [ Giuseppe Iuculano ]
   * [a80ecc5] Updated VCS control field
Checksums-Sha1: 
 bfa4c8c25a8115d61a26cc50aad1b06d33846669 1282 dkms_2.2.0.2-1.dsc
 e6ea2aadfd3ddd7731aec25b297ee2ff8238df71 85990 dkms_2.2.0.2.orig.tar.gz
 4df09731c3365ed51142f6202d97e3e0ae570558 14071 dkms_2.2.0.2-1.debian.tar.gz
 6c506f12e668c5cd01a3470279d24674f637d0a3 77288 dkms_2.2.0.2-1_all.deb
Checksums-Sha256: 
 ceeddb8e3aa444a60f8c3702b50bc38dacb42c0b4b0208561fe4b7dec99cc0f0 1282 dkms_2.2.0.2-1.dsc
 bf6b74c9c81bb9a9e9cee83ee3b5e1494768705d9ae6b2251ef633dc3a994950 85990 dkms_2.2.0.2.orig.tar.gz
 77391a74cfd791cf2f3b01d5b6ad23a6715d541a2ac33ea7cd4159894203242f 14071 dkms_2.2.0.2-1.debian.tar.gz
 e6cb70078010cbb17139640346bde46e3307043942d4f26c689c560d2c423f79 77288 dkms_2.2.0.2-1_all.deb
Files: 
 4040c58d7b187ecb260c09d731199fe1 1282 kernel optional dkms_2.2.0.2-1.dsc
 4651508139708392622ff52a46c8649c 85990 kernel optional dkms_2.2.0.2.orig.tar.gz
 160b6247efe5fa857cf48861909fb3cb 14071 kernel optional dkms_2.2.0.2-1.debian.tar.gz
 96374b33adb86874a225356bb6b2bc7f 77288 kernel optional dkms_2.2.0.2-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4pyzQACgkQNxpp46476apEIgCeP4lGgGGjgXLURO4yG1yDuSS8
N5oAn2oi1KLriRxUX/nHm3fE/2ksnpUl
=hxXe
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 20 Aug 2011 07:32:39 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:24:16 2023; Machine Name: bembo

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.