Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9216 closed defect (fixed)

lsusb fails to use gzipped usb.ids database

Reported by: Gustav Schaffter <gustav.schaffter@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

ATTITUDE ADJUSTMENT (bleeding edge, r26573)

# lsusb
lsusb: cannot open "/usr/share/usb.ids", No such file or directory

Makes sense, since the file doesn't exist. But then:

# cd /usr/share/
root@wndr3700:/usr/share# ll
drwxr-xr-x 2 root root 31 Apr 10 09:41 collectd
drwxr-xr-x 2 root root 31 Apr 10 09:41 mac-to-devinfo
drwxr-xr-x 2 root root 3 Apr 8 21:03 miniupnpd
drwxr-xr-x 2 root root 178 Apr 10 09:41 shorewall-lite
drwxr-xr-x 2 root root 37 Apr 10 09:41 smap
drwxr-xr-x 9 root root 78 Apr 10 09:41 terminfo
drwxr-xr-x 2 root root 37 Apr 10 09:41 udhcpc
-rw-r--r-- 1 root root 152740 Apr 10 09:41 usb.ids.gz
-rw-r--r-- 1 root root 149260 Apr 10 09:41 usb.ids.gz.old
root@wndr3700:/usr/share#

Now, to the problem (as I see it).

I believe that either:

  • lsusb should be able to use the .gz file if there is no usb.ids file
  • or -
  • A default installation (flash) should provide the usb.ids file unzipped.

I'm more inclined to make sure lsusb use the gzipped version of the file, because future updates of this file by using

# /usr/sbin/update-usbids.sh

will create a new /usr/share/usb.ids.gz file.

GuS

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by Gustav Schaffter <gustav.schaffter@…>

More reasons to use the gzipped version of the /usr/share/usb.ids file include:

  • No need to manually gunzip the file after successful execution of update-usbids.sh.
  • No need to further enhance update-usbids.sh so that it would gunzip the usb.ids file.
  • The usb.ids files is about three times bigger than the usb.ids.gz file. (Space counts in this context.)

GuS

comment:2 Changed 7 years ago by Layne Edwards <ledwards@…>

There's a patch for this in usbutils git:
https://github.com/gregkh/usbutils

This patch appears to fix the "cannot open "/usr/share/usb.ids", No such file or directory" error, but lsusb still does not work properly... it hangs when called.

See #9050.

comment:3 Changed 7 years ago by acinonyx

  • Resolution set to fixed
  • Status changed from new to closed

Applied in r26660. Thanks!

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.