Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487308 - sys-apps/hwids-20130915.1 installs both plain and gzipped pci.ids and usb.ids
Summary: sys-apps/hwids-20130915.1 installs both plain and gzipped pci.ids and usb.ids
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-08 11:52 UTC by Ulrich Müller
Modified: 2014-10-15 20:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2013-10-08 11:52:00 UTC
$ qlist hwids | grep '\.ids'
/usr/share/misc/pci.ids
/usr/share/misc/pci.ids.gz
/usr/share/misc/usb.ids
/usr/share/misc/usb.ids.gz
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-10-08 11:56:50 UTC
(In reply to Ulrich Müller from comment #0)
> $ qlist hwids | grep '\.ids'
> /usr/share/misc/pci.ids
> /usr/share/misc/pci.ids.gz
> /usr/share/misc/usb.ids
> /usr/share/misc/usb.ids.gz

It might look redudant, but both forms are required. Some apps have codepaths that require libpci with zlib support and thus read .gz files, some don't have such support and even have upstreams actively refusing to add such support.
Suggestion: Close as worksforme
Comment 2 Ulrich Müller gentoo-dev 2013-10-08 14:40:58 UTC
(In reply to Samuli Suominen from comment #1)
> It might look redudant, but both forms are required. Some apps have
> codepaths that require libpci with zlib support and thus read .gz files,
> some don't have such support and even have upstreams actively refusing to
> add such support.

Lame excuse.

It should be our choice as a distro if we install such files compressed or not. I'd consider it a bug if a program can only access the gzipped version.

Installing both forms combines the disadvantages of both, because it wastes both disk space and computing time for uncompressing.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-03-28 04:14:56 UTC
believe me, we have tried to make some upstreams accept patches to no avail., a as in, huge amount of time has been wasted on this already without luck

so i get your point, but really, you should just let this one go...
Comment 4 Ulrich Müller gentoo-dev 2014-03-28 06:45:13 UTC
How do other distros handle this?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-03-28 07:02:29 UTC
(In reply to Ulrich Müller from comment #4)
> How do other distros handle this?

They ship pci.ids, usb.ids first once in pciutils, usbutils.
Then they ship them again in hwdata -type of package.
Then they ship them third time in packages that use the database files directly -- they are put in dozens of different directories, some are compressed and some are not, depending on the applications needs.
I've verified Fedora, Debian and ArchLinux all to ship some +-12 duplicate, compressed, or non compressed files.

Our handling of these files is best out there. Nothing to look from other distros.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2014-03-28 07:06:03 UTC
And any effort away from these files, should be provided in a form of 'udev hwdb.bin' support, and provide *.ids support only as a fallback
Since that process has only started like few months ago, we are not even close to discussing dropping the compat files (= both, compressed and uncompressed *.ids)