From: Lennart Poettering <lennart@poettering.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Add compressed ID database support to (usb|pci)-db
Date: Tue, 29 Sep 2009 22:48:07 +0000 [thread overview]
Message-ID: <20090929224806.GC5446@tango.0pointer.de> (raw)
In-Reply-To: <4AB83999.1060004@unitednerds.org>
On Mon, 21.09.09 23:42, Piter PUNK (piterpunk@unitednerds.org) wrote:
> Hi
Heya,
> usbutils and pciutils have support to gzip'ed ID databases. But, if
> I use usb.ids.gz or pci.ids.gz, usb-db and pci-db can't show
> anything, giving only an error of file not found. Looking in the
> code, they didn't have any support to compressed ID files.
>
> This patch add support to gzip'ed database files to usb-db.c and add
> the option --disable-zlib to configure.ac. Most of code here come
> from usbutils names.c file with little modifications to work with
> udev.
Patch looks mstly good. However after discussing this a little with
Kay we'd prefer if we could do without the macro orgy and just depend
unconditionally on zlib. Given that this is in extras this should not
be a problem.
That said, generally speaking it's bad enough that we do a linar
search for the vid/pid. Compressing things won't make things faster.
Is there actually a distribution that uses a compressed pci.ids file?
> diff --git a/configure.ac b/configure.ac
> index 3afb94a..5a273e6 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -6,7 +6,7 @@ AC_DISABLE_STATIC
> AC_USE_SYSTEM_EXTENSIONS
> AC_SYS_LARGEFILE
> AC_CONFIG_MACRO_DIR([m4])
> -LT_INIT
> +m4_ifdef([LT_INIT],[LT_INIT],[AC_PROG_LIBTOOL])
Uh, this shouldn't be sneaked in here.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
next prev parent reply other threads:[~2009-09-29 22:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-22 2:42 [PATCH] Add compressed ID database support to (usb|pci)-db Piter PUNK
2009-09-22 22:28 ` Ozan Çağlayan
2009-09-23 4:33 ` Piter PUNK
2009-09-29 22:48 ` Lennart Poettering [this message]
2009-09-29 23:04 ` David Zeuthen
2009-09-29 23:31 ` Lennart Poettering
2009-09-29 23:41 ` Piter PUNK
2009-09-29 23:43 ` Piter PUNK
2009-09-30 0:03 ` Lennart Poettering
2009-09-30 0:08 ` Lennart Poettering
2009-09-30 1:16 ` Piter PUNK
2009-09-30 1:56 ` Greg KH
2009-09-30 2:50 ` Piter PUNK
2009-09-30 9:10 ` Frederic Crozat
2009-09-30 14:39 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090929224806.GC5446@tango.0pointer.de \
--to=lennart@poettering.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.