I just stumbled across this bug on my system, here is what
happened on my system:

# ls -l /usr/share/misc pci.ids*
-rw-r--r-- 1 root root 511686 2008-02-20 10:20 pci.ids
# update-pciids
# ls -l /usr/share/misc pci.ids*
-rw-r--r-- 1 root root 514201 2008-03-09 17:58 pci.ids.gz
-rw-r--r-- 1 root root      0 2008-03-09 17:58 pci.ids.gz.old

The old pci.ids is lost and replaced with an empty pci.ids.gz.old.
The new pci.ids.gz is uncompressed but it's name ends in .gz.
If lspci prefers an pci.ids.gz (even if actually uncompressed),
then new versions of pci.ids installed by package management
would be ignored forever.

An quick and easy fix to these issues would be to remove ".gz"
from the definition of the DEST variable in line 7 of update-pciids.
Line 7 should therefore read:

DEST=/usr/share/misc/pci.ids

In my opinion, update-pciids should not attempt to change the
name or format of pci.ids*. It should update it but keep
whichever compressed / uncompressed format it finds.
This would require some rework on the update-pciids script.
At the moment, the pciutils package supplies an uncompressed
/usr/share/misc/pci.ids. Until this changes, the suggested
change to line 7 of update-pciids would solve the current issues.

Thanks

Andreas



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to