[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#276915: ddetect: usbutils no longer reguired for 2.6 kernels



Package: hw-detect
Version: 1.09
Severity: minor

I've had another look at the relation between hotplug and usbutils, especially 
for 2.6 kernels.

The log for ddetect/hw-detect.sh has:
------------------------------------------------------------------------
r16680 | joeyh | 2004-06-07 17:15:57 +0200 (Mon, 07 Jun 2004) | 2 lines

    - apt-install usbutils when installing hotplug to avoid the "can't
      synthesize root hub events" with 2.6 kernels.
------------------------------------------------------------------------

With the current version of hotplug (0.0.20040329-15), this problem has been 
fixed. This means that installing usbutils is no longer required for 2.6 
kernels (but it _is_ required for 2.4 kernels).
I have tested that hotplug works fine with 2.6.8 if usbutils is not installed.

This means the following patch could be considered:
<patch>
--- ddetect/hw-detect.sh        (revision 23163)
+++ ddetect/hw-detect.sh        (working copy)
@@ -674,7 +674,14 @@
 if [ -f /proc/sys/kernel/hotplug ]; then
        log "Detected hotplug support, installing hotplug."
        apt-install hotplug || true
-       apt-install usbutils || true
+       case "$(uname -r)" in
+       2.4*)
+           apt-install usbutils || true
+           ;;
+       2.6*)
+           :
+           ;;
+       esac
 fi
</patch>

However, hotplug currently 'recommends' usbutils and AFAICT having usbutils 
installed has no negative consequences for 2.6 kernels.

In that light I'm not sure if the above patch should be applied.
In which case, maybe this bug should be tagged 'wontfix' to keep it as a 
reminder.

Cheers,
FJP



Reply to: