[Bug 113569] Re: update-pciids weird behavior
Tim Gardner
tim.gardner at canonical.com
Sun Jan 26 12:39:59 UTC 2014
Just updated Trusty pciutils which worked fine for me. I didn't find any
extraneous files after running update-pciids.sh.
** Also affects: pciutils (Ubuntu Trusty)
Importance: Undecided
Status: Confirmed
** Changed in: pciutils (Ubuntu Trusty)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pciutils in Ubuntu.
https://bugs.launchpad.net/bugs/113569
Title:
update-pciids weird behavior
Status in “pciutils” package in Ubuntu:
Fix Released
Status in “pciutils” source package in Trusty:
Fix Released
Bug description:
Binary package hint: pciutils
update-pciids.sh downloads a newer version of the pci.ids file. If
available, it first downloads an bzip2 version of the file, then a
gzipped one, then the plain text version. Then, it decompresses it and
stores it in a plain, uncompressed text file.
However, there is a debian patch that tries to modify it so it keeps
the gzipped version. However, the patch doesn't work, and ends
creating a /usr/share/misc/pci.ids.gz file, that's not gzipped. lspci
however, reads first the .gz, and it works though it's not gzipped.
That's why it has gone unnoticed.
Steps to reproduce:
With a clear installation:
$ls -l /usr/share/misc/pci.ids*
-rw-r--r-- 1 root root 428084 2007-03-05 11:51 /usr/share/misc/pci.ids
$ sudo update-pciids
--12:54:47-- http://pciids.sourceforge.net/v2.2/pci.ids.bz2
=> `/usr/share/misc/pci.ids.gz.new'
Resolviendo pciids.sourceforge.net... 66.35.250.209
Conectando a pciids.sourceforge.net|66.35.250.209|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 120,972 (118K) [text/plain]
100%[=================================================================================================================>]
120,972 21.89K/s ETA 00:00
12:54:53 (21.21 KB/s) - `/usr/share/misc/pci.ids.gz.new' guardado
[120972/120972]
Done.
(notice how it downloads the .bz2 version and saves it as .gz.new)
$ ls -l /usr/share/misc/pci.ids*
-rw-r--r-- 1 root root 428084 2007-03-05 11:51 /usr/share/misc/pci.ids
-rw-r--r-- 1 root root 462320 2007-05-09 12:57 /usr/share/misc/pci.ids.gz
$file /usr/share/misc/pci.ids.gz
/usr/share/misc/pci.ids.gz: ASCII English text, with CR, LF line terminators
(notice how /usr/share/misc/pci.ids is untouched, and
/usr/share/misc/pci.ids.gz is NOT a gzipped file).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pciutils/+bug/113569/+subscriptions
More information about the foundations-bugs
mailing list