usb.ids installed in several copies to the system

Bug #77929 reported by psl
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bitpim (Ubuntu)
Fix Released
Low
Unassigned
hwdata (Debian)
Fix Released
Unknown
hwdata (Ubuntu)
Fix Released
Medium
Martin Pitt
kdebase-kde4 (Ubuntu)
Invalid
Low
Unassigned
lshw (Ubuntu)
Fix Released
Undecided
Pascal De Vuyst

Bug Description

Ubuntu 6.06.1, i386

usb.ids file is instaled in several DIFFERENT copies to the system. In means, different tools can report different results. I think to fix this, several packages should be modified. Why not to have just one usb.ids copy and crate symblolic links to it when needed. Maybe when can have only one usb.ids copy and no symbolic links are needed.

sudo find /usr /var /etc /lib -name usb.ids | xargs ls -l
-rw-r--r-- 1 root root 152844 2006-01-27 18:03 /usr/share/hwdata/usb.ids
-rw-r--r-- 1 root root 149025 2005-12-29 16:51 /usr/share/lshw/usb.ids
lrwxrwxrwx 1 root root 21 2006-12-27 12:23 /usr/share/misc/usb.ids -> /var/lib/misc/usb.ids
-rw-r--r-- 1 root root 152895 2006-01-30 11:10 /var/lib/misc/usb.ids

Revision history for this message
Stéphane Loeuillet (leroutier) wrote :

On my system, it only gives :

lrwxrwxrwx 1 root root 21 2007-05-23 19:06 /usr/share/misc/usb.ids -> /var/lib/misc/usb.ids
-rw-r--r-- 1 root root 64089 2007-09-23 12:50 /var/lib/misc/usb.ids

Could you do that please :
sudo find /usr /var /etc /lib -name usb.ids | xargs dpkg -S

So we could know which packages are the culprits

Revision history for this message
psl (slansky) wrote :

6.06.1 i386:

# sudo find /usr /var /etc /lib -name usb.ids | xargs dpkg -S
usbutils: /usr/share/misc/usb.ids
hwdata: /usr/share/hwdata/usb.ids
lshw-common: /usr/share/lshw/usb.ids
usbutils: /var/lib/misc/usb.ids

Revision history for this message
Kapis (capiscuas) wrote :

In my gutsy I onlu have like Stephane 1 physical file and 1 symbolic link.

psl, I think that your file:
hwdata: /usr/share/hwdata/usb.ids

corresponds to the FREEBSD way to use usb.ids

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

lshw-common has been removed since gutsy and lshw now depends on usbutils for usb.ids.
A search in hardy returns that the following binary packages still contain usb.ids: kinfocenter-kde4, bitpim and hwdata.
These should be changed to depend on usbutils for usb.ids, adding the necessary tasks.

lshw (02.10-1) unstable; urgency=low

  * Remove lshw-common package. manuf.txt and oui.txt aren't used at all,
      and we now depend on pciutils and usbutils for pci.ids and usb.ids
      respectively (ubuntu patch)

 -- Ghe Rivero <email address hidden> Thu, 03 May 2007 20:02:07 +0200

Changed in kdebase-kde4:
importance: Undecided → Low
status: New → Confirmed
Changed in bitpim:
importance: Undecided → Low
status: New → Confirmed
Changed in hwdata:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Harald Sitter (apachelogger) wrote :

KInfoCenter prefers hwdata's file over the shipped one (see http://websvn.kde.org/trunk/KDE/kdebase/apps/kinfocenter/usbview/usbdb.cpp?r1=558082&r2=703022) and since hwdata needs to be fixed as well, I mark this bug invalid for kdebase-kde4.

Changed in kdebase-kde4:
status: Confirmed → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bitpim - 1.0.5.dfsg.1-5

---------------
bitpim (1.0.5.dfsg.1-5) unstable; urgency=low

  * Clean up /usr/share/bitpim/resources; in particular, use usbutils's
    usb.ids rather than a stale copy. (LP: #77929.)
  * Update path to evolution's contacts. (LP: #221006.)
  * src/database.py (Database._getindirect): strip spurious trailing L
    characters that have started showing up in row numbers.
  * src/bp.py: explicitly use wxPython 2.6, as other versions aren't 100%
    compatible. (LP: #177569.)

 -- Ubuntu Archive Auto-Sync <email address hidden> Tue, 04 Nov 2008 21:13:55 +0000

Changed in bitpim:
status: Confirmed → Fix Released
Martin Pitt (pitti)
summary: - usb.ids instaled in several copies to the system
+ usb.ids installed in several copies to the system
Revision history for this message
Martin Pitt (pitti) wrote :

This will save us some 330 kB of CD space, which we urgently need for the overflown precise images.

Changed in hwdata (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Martin Pitt (pitti)
importance: Low → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hwdata - 0.233-1ubuntu1

---------------
hwdata (0.233-1ubuntu1) precise; urgency=low

  * debian/rules: Don't install usb.ids and pci.ids, instead symlink to the
    corresponding files in usbutils and pciutils (which are newer anyway).
    (LP: #77929, Debian #635302)
  * debian/control: Add pciutils and usbutils dependencies.
 -- Martin Pitt <email address hidden> Thu, 12 Apr 2012 15:46:21 +0200

Changed in hwdata (Ubuntu):
status: In Progress → Fix Released
Changed in hwdata (Debian):
status: Unknown → New
Changed in hwdata (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.