Gentoo Archives: gentoo-dev

From: James Cloos <cloos@×××××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: why? pciutils with zlib use-flag went stable on x86
Date: Thu, 02 Aug 2007 12:29:17
Message-Id: m3ir7yqg4c.fsf_-_@lugabout.jhcloos.org
In Reply to: [gentoo-dev] Re: why? pciutils with zlib use-flag went stable on x86 by "Sven Köhler"
1 >>>>> "Sven" == Sven Köhler <skoehler@×××.de> writes:
2
3 Sven> Oh! So USE="hal" forces pciutils not to use zlib?
4
5 There are many more ebuilds than just hal which fail with a compressed
6 pci.ids file. And many of them are non-obvious. It took me more than
7 I little bit of effort after the zlib USE flag was first added to the
8 pciutils ebuild to figure out why so many packages where failing...
9
10 (On an old enough install, with enough disparate packages installed, a
11 naïve emerge world will always fail. *Something* is guaranteed to be
12 unhappy.)
13
14 The lunacy is that compressing pci.ids and usb.ids helps no-one. On a
15 system running from a spinning disk the size difference is lost in the
16 noise. On embedded systems one knows in advance what devices exist on
17 the motherboard and can edit the ids file down to just those. Most
18 embedded systems don't even need the ids files on the production load.
19 No developer worth his salt would waste space on names where the numbers
20 work just as well. They'd use the names on the development platform, of
21 course, but those would be complied to just the ints on the final load.
22
23 So, simply put, compressing pci.ids benefits no-one, and harms many.
24
25 A cool hack perhaps, but misguided and useless.
26
27 The pciutils ebuild should be re-engineered to use separate USE flags
28 for linking to libz and compressing the database. Or the database
29 should be an ebuild of its own, using a custom flag (compressed?) to
30 request compression of the ids file, and not the zlib flag.
31
32 -JimC
33 --
34 James Cloos <cloos@×××××××.com> OpenPGP: 1024D/ED7DAEA6
35 --
36 gentoo-dev@g.o mailing list

Replies

Subject Author
[gentoo-dev] Re: why? pciutils with zlib use-flag went stable on x86 Steve Long <slong@××××××××××××××××××.uk>
[gentoo-dev] Re: why? pciutils with zlib use-flag went stable on x86 "Sven Köhler" <skoehler@×××.de>
Re: [gentoo-dev] Re: why? pciutils with zlib use-flag went stable on x86 Chris Gianelloni <wolf31o2@g.o>