Debian Bug report logs - #241144
usb.usermap.local not handled when upgrading hotplug

version graph

Package: hotplug; Maintainer for hotplug is (unknown);

Reported by: Stephen Gildea <gildea@stop.mail-abuse.org>

Date: Tue, 30 Mar 2004 23:33:01 UTC

Severity: normal

Tags: sarge

Found in version 0.0.20040105-3

Fixed in version hotplug/0.0.20040329-3

Done: Fumitoshi UKAI <ukai@debian.or.jp>

Bug is archived. No further changes may be made.

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


Report forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#241144; Package hotplug. (full text, mbox, link).


Acknowledgement sent to Stephen Gildea <gildea@stop.mail-abuse.org>:
New Bug report received and forwarded. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


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

From: Stephen Gildea <gildea@stop.mail-abuse.org>
To: submit@bugs.debian.org
Subject: usb.usermap.local not handled when upgrading hotplug
Date: Tue, 30 Mar 2004 18:21:13 -0500
Package: hotplug
Version: 0.0.20040105-3
Tags: sarge

I recently upgraded hotplug from Woody to Sarge, and some devices
stopped working.  After poking around, I discovered that it was because
the new hotplug doesn't read my /etc/hotplug/usb.usermap.local file.
(Looks like this was changed 7 Apr 2003 by hotplug version 0.0.20030117-6.)

It would have been nice if apt-get had at least told me about this
incompatible change.  But we can do better:

I suggest that during the postinst configuration step, if a (now old)
/etc/hotplug/usb.usermap.local file is found, the postinst script move
it to /etc/hotplug/usb/local.usermap where the new hotplug will find it.

Probably the user should be asked to confirm this, with a low-priority
question.

Probably a comment line should be prepended to the new usermap file
explaining where the file came from.

I'm no wizard with debconf, so I can't help with the confirmation
question, but here is a simple patch with no question to the user:

--- hotplug.postinst~	2004-03-28 21:34:56 -0500
+++ debian/hotplug.postinst	2004-03-29 07:30:55 -0500
@@ -62,6 +62,15 @@     configure)
 	# old configuration files
 	test -f /etc/hotplug/usb.usermap && rm -f /etc/hotplug/usb.usermap
 
+	if [ -f /etc/hotplug/usb.usermap.local ]; then
+	    touch /etc/hotplug/usb/local.usermap
+	    echo "#" >> /etc/hotplug/usb/local.usermap
+	    echo "# The section below was moved by debconf from /etc/hotplug/usb.usermap.local to" >> /etc/hotplug/usb/local.usermap
+	    echo "# /etc/hotplug/usb/local.usermap during an upgrade of the hotplug package." >> /etc/hotplug/usb/local.usermap
+	    cat /etc/hotplug/usb.usermap.local >> /etc/hotplug/usb/local.usermap
+	    echo "# Section moved by debconf from /etc/hotplug/usb.usermap.local ends here." >> /etc/hotplug/usb/local.usermap
+	    rm -f /etc/hotplug/usb.usermap.local
+	fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)



Reply sent to Fumitoshi UKAI <ukai@debian.or.jp>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Stephen Gildea <gildea@stop.mail-abuse.org>:
Bug acknowledged by developer. (full text, mbox, link).


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

From: Fumitoshi UKAI <ukai@debian.or.jp>
To: 241144-close@bugs.debian.org
Subject: Bug#241144: fixed in hotplug 0.0.20040329-3
Date: Thu, 01 Apr 2004 13:17:05 -0500
Source: hotplug
Source-Version: 0.0.20040329-3

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

hotplug_0.0.20040329-3.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-3.diff.gz
hotplug_0.0.20040329-3.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-3.dsc
hotplug_0.0.20040329-3_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-3_all.deb



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

Debian distribution maintenance software
pp.
Fumitoshi UKAI <ukai@debian.or.jp> (supplier of updated hotplug 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.7
Date: Fri,  2 Apr 2004 02:49:20 +0900
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-3
Distribution: unstable
Urgency: low
Maintainer: Fumitoshi UKAI <ukai@debian.or.jp>
Changed-By: Fumitoshi UKAI <ukai@debian.or.jp>
Description: 
 hotplug    - Linux Hotplug Scripts
Closes: 232909 237952 240582 241144 241225 241326
Changes: 
 hotplug (0.0.20040329-3) unstable; urgency=low
 .
   * debian/hotplug.postinst
     preserve /etc/default/hotplug
     closes: Bug#240582
     anyway, current debconf configurations are deprecated, and
     I plan to delete these configuration variables in future.
     If you need something to load at start time, use /etc/modules instead.
   * debian/hotplug.postinst
     move deprecated /etc/hotplug/usb.usermap.local
     to /etc/hotplug/usb/local.usermap
     closes: Bug#241144
   * debian/hotplug.dirs: add /etc/hotplug/blacklist.d
     patches/014_load_drivers_blacklist_dir
      blacklist can be added by other packages, such as ALSA
     closes: Bug#241225
   * patches/013_load_drivers_check_module_dup
     patches/012_usb.agent_check_driver
     don't load drivers several times.
     closes: Bug#232909, Bug#237952, Bug#241326
   * patches/012_usb.rc_try_all_interfaces
      for TYPE=0/* USB devices, it will have several interfaces, so
      try them at startup time. problem reported by mat@nask.pl
   * patches/012_pci.rc_return_value
     backported
   * patches/011_hotplug.functions_quote_loaded
     backported
Files: 
 7ee8d5e912af7bd707a5372afcb74bd9 671 admin standard hotplug_0.0.20040329-3.dsc
 baf77251a8bd30b39deeff7d256d21ec 30065 admin standard hotplug_0.0.20040329-3.diff.gz
 71331ba0423bf18648bd61139c955ae2 52554 admin standard hotplug_0.0.20040329-3_all.deb

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

iD8DBQFAbFa39D5yZjzIjAkRAg5jAJ9NLWP7qr+sSZslhxbDx5c0/tCLnwCgrfV9
KIVL1vdLlTktBDl+3Gmkr2U=
=8MEg
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:49:41 2026; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.