Your message dated Fri, 18 Aug 2006 02:17:23 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#335665: fixed in pciutils 1:2.2.4~pre4-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: pciutils
Version: 1:2.1.11-15.1
Severity: important
Tags: patch

Hi
I just tried to build the new kudzu package and found that it won't
build. The problem is that there is a patch for pciutils is missing.
I attached the patch, so please include them, we (Debian-Edu) want to
release soon and use the newest kudzu, but for that we need a new
pciutils.

Greetings
Steffen 

code: 

diff -ru pciutils-2.1.99-test8/lib/example.c pciutils/lib/example.c
--- pciutils-2.1.99-test8/lib/example.c 2000-03-09 03:38:33.000000000 -0500
+++ pciutils/lib/example.c      2004-09-02 18:06:58.000000000 -0400
@@ -21,7 +21,7 @@
   pci_scan_bus(pacc);          /* We want to get the list of devices */
   for(dev=pacc->devices; dev; dev=dev->next)   /* Iterate over all devices */
     {
-      pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES);     /* Fill in 
header info we need */
+      pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_CLASS);    
/* Fill in header info we need */
       c = pci_read_word(dev, PCI_CLASS_DEVICE);        /* Read config register 
directly */
       printf("%02x:%02x.%d vendor=%04x device=%04x class=%04x irq=%d 
base0=%lx\n",
             dev->bus, dev->dev, dev->func, dev->vendor_id, dev->device_id,
diff -ru pciutils-2.1.99-test8/lib/generic.c pciutils/lib/generic.c
--- pciutils-2.1.99-test8/lib/generic.c 2004-08-13 16:15:23.000000000 -0400
+++ pciutils/lib/generic.c      2004-09-02 18:06:41.000000000 -0400
@@ -46,7 +46,8 @@
          d->func = t->func;
          d->vendor_id = vd & 0xffff;
          d->device_id = vd >> 16U;
-         d->known_fields = PCI_FILL_IDENT;
+         d->device_class = pci_read_byte(t,PCI_CLASS_DEVICE+1) << 8 | 
pci_read_byte(t, PCI_CLASS_DEVICE);
+         d->known_fields = PCI_FILL_IDENT | PCI_FILL_CLASS;
          d->hdrtype = ht;
          pci_link_dev(a, d);
          switch (ht)
@@ -86,6 +87,8 @@
       d->vendor_id = pci_read_word(d, PCI_VENDOR_ID);
       d->device_id = pci_read_word(d, PCI_DEVICE_ID);
     }
+  if (flags & PCI_FILL_CLASS)
+      d->device_class = pci_read_byte(d, PCI_CLASS_DEVICE+1) << 8 | 
pci_read_byte(d, PCI_CLASS_DEVICE);
   if (flags & PCI_FILL_IRQ)
     d->irq = pci_read_byte(d, PCI_INTERRUPT_LINE);
   if (flags & PCI_FILL_BASES)
diff -ru pciutils-2.1.99-test8/lib/pci.h pciutils/lib/pci.h
--- pciutils-2.1.99-test8/lib/pci.h     2004-08-13 16:56:24.000000000 -0400
+++ pciutils/lib/pci.h  2004-09-02 18:06:26.000000000 -0400
@@ -83,6 +83,7 @@
   /* These fields are set by pci_fill_info() */
   int known_fields;                    /* Set of info fields already known */
   u16 vendor_id, device_id;            /* Identity of the device */
+  u16 device_class;                    /* PCI device class */
   int irq;                             /* IRQ number */
   pciaddr_t base_addr[6];              /* Base addresses */
   pciaddr_t size[6];                   /* Region sizes */
@@ -117,6 +118,7 @@
 #define PCI_FILL_BASES         4
 #define PCI_FILL_ROM_BASE      8
 #define PCI_FILL_SIZES         16
+#define PCI_FILL_CLASS         32
 #define PCI_FILL_RESCAN                0x10000

 void pci_setup_cache(struct pci_dev *, u8 *cache, int len);
diff -ru pciutils-2.1.99-test8/lib/sysfs.c pciutils/lib/sysfs.c
--- pciutils-2.1.99-test8/lib/sysfs.c   2004-08-13 16:14:24.000000000 -0400
+++ pciutils/lib/sysfs.c        2004-09-02 18:07:48.000000000 -0400
@@ -170,7 +170,6 @@
          sysfs_get_resources(d);
          d->irq = sysfs_get_value(d, "irq");
          d->known_fields = PCI_FILL_IRQ | PCI_FILL_BASES | PCI_FILL_ROM_BASE | 
PCI_FILL_SIZES;
-#if 0
          /*
           *  We prefer reading these from the config registers, it's faster.
           *  However, it would be possible and maybe even useful to hack the 
kernel
@@ -179,8 +178,8 @@
           */
          d->vendor_id = sysfs_get_value(d, "vendor");
          d->device_id = sysfs_get_value(d, "device");
-         d->known_fields |= PCI_FILL_IDENT;
-#endif
+         d->device_class = sysfs_get_value(d, "class") >> 8;
+         d->known_fields |= PCI_FILL_IDENT | PCI_FILL_CLASS;
        }
       pci_link_dev(a, d);
     }
diff -ru pciutils-2.1.99-test8/lspci.c pciutils/lspci.c
--- pciutils-2.1.99-test8/lspci.c       2004-08-13 15:49:02.000000000 -0400
+++ pciutils/lspci.c    2004-09-02 18:08:13.000000000 -0400
@@ -110,7 +110,7 @@
        die("Unable to read cardbus bridge extension data.");
     }
   pci_setup_cache(p, d->config, d->config_cnt);
-  pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_IRQ | PCI_FILL_BASES | 
PCI_FILL_ROM_BASE | PCI_FILL_SIZES);
+  pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_CLASS | PCI_FILL_IRQ | 
PCI_FILL_BASES | PCI_FILL_ROM_BASE | PCI_FILL_SIZES);
   return d;
 }

@@ -229,7 +229,7 @@
   printf(" %s: %s",
         pci_lookup_name(pacc, classbuf, sizeof(classbuf),
                         PCI_LOOKUP_CLASS,
-                        get_conf_word(d, PCI_CLASS_DEVICE), 0, 0, 0),
+                        p->device_class, 0, 0, 0),
         pci_lookup_name(pacc, devbuf, sizeof(devbuf),
                         PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE,
                         p->vendor_id, p->device_id, 0, 0));
@@ -241,7 +241,7 @@
       c = get_conf_byte(d, PCI_CLASS_PROG);
       x = pci_lookup_name(pacc, devbuf, sizeof(devbuf),
                          PCI_LOOKUP_PROGIF,
-                         get_conf_word(d, PCI_CLASS_DEVICE), c, 0, 0);
+                         p->device_class, c, 0, 0);
       if (c || x)
        {
          printf(" (prog-if %02x", c);
@@ -1542,7 +1542,7 @@
   struct pci_dev *p = d->dev;
   word status = get_conf_word(d, PCI_STATUS);
   word cmd = get_conf_word(d, PCI_COMMAND);
-  word class = get_conf_word(d, PCI_CLASS_DEVICE);
+  word class = p->device_class;
   byte bist = get_conf_byte(d, PCI_BIST);
   byte htype = get_conf_byte(d, PCI_HEADER_TYPE) & 0x7f;
   byte latency = get_conf_byte(d, PCI_LATENCY_TIMER);
@@ -1735,7 +1735,7 @@
       show_slot_name(d);
       putchar('\n');
       printf("Class:\t%s\n",
-            pci_lookup_name(pacc, classbuf, sizeof(classbuf), 
PCI_LOOKUP_CLASS, get_conf_word(d, PCI_CLASS_DEVICE), 0, 0, 0));
+            pci_lookup_name(pacc, classbuf, sizeof(classbuf), 
PCI_LOOKUP_CLASS, p->device_class, 0, 0, 0));
       printf("Vendor:\t%s\n",
             pci_lookup_name(pacc, vendbuf, sizeof(vendbuf), PCI_LOOKUP_VENDOR, 
p->vendor_id, p->device_id, 0, 0));
       printf("Device:\t%s\n",
@@ -1757,7 +1757,7 @@
       show_slot_name(d);
       printf(" \"%s\" \"%s\" \"%s\"",
             pci_lookup_name(pacc, classbuf, sizeof(classbuf), PCI_LOOKUP_CLASS,
-                            get_conf_word(d, PCI_CLASS_DEVICE), 0, 0, 0),
+                            p->device_class, 0, 0, 0),
             pci_lookup_name(pacc, vendbuf, sizeof(vendbuf), PCI_LOOKUP_VENDOR,
                             p->vendor_id, p->device_id, 0, 0),
             pci_lookup_name(pacc, devbuf, sizeof(devbuf), PCI_LOOKUP_DEVICE,
@@ -1883,7 +1883,7 @@
   last_br = &host_bridge.chain;
   for(d=first_dev; d; d=d->next)
     {
-      word class = get_conf_word(d, PCI_CLASS_DEVICE);
+      word class = d->dev->device_class;
       byte ht = get_conf_byte(d, PCI_HEADER_TYPE) & 0x7f;
       if (class == PCI_CLASS_BRIDGE_PCI &&
          (ht == PCI_HEADER_TYPE_BRIDGE || ht == PCI_HEADER_TYPE_CARDBUS))
                                                                                
     


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages pciutils depends on:
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an

pciutils recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: pciutils
Source-Version: 1:2.2.4~pre4-1

We believe that the bug you reported is fixed in the latest version of
pciutils, which is due to be installed in the Debian FTP archive:

pciutils-dev_2.2.4~pre4-1_i386.deb
  to pool/main/p/pciutils/pciutils-dev_2.2.4~pre4-1_i386.deb
pciutils-udeb_2.2.4~pre4-1_i386.udeb
  to pool/main/p/pciutils/pciutils-udeb_2.2.4~pre4-1_i386.udeb
pciutils_2.2.4~pre4-1.diff.gz
  to pool/main/p/pciutils/pciutils_2.2.4~pre4-1.diff.gz
pciutils_2.2.4~pre4-1.dsc
  to pool/main/p/pciutils/pciutils_2.2.4~pre4-1.dsc
pciutils_2.2.4~pre4-1_i386.deb
  to pool/main/p/pciutils/pciutils_2.2.4~pre4-1_i386.deb
pciutils_2.2.4~pre4.orig.tar.gz
  to pool/main/p/pciutils/pciutils_2.2.4~pre4.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthew Wilcox <[EMAIL PROTECTED]> (supplier of updated pciutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 11 Aug 2006 07:34:06 -0400
Source: pciutils
Binary: pciutils-dev pciutils pciutils-udeb
Architecture: source i386
Version: 1:2.2.4~pre4-1
Distribution: unstable
Urgency: low
Maintainer: Debian pciutils Maintainers <[EMAIL PROTECTED]>
Changed-By: Matthew Wilcox <[EMAIL PROTECTED]>
Description: 
 pciutils   - Linux PCI Utilities
 pciutils-dev - Linux PCI Utilities (development files)
 pciutils-udeb - Linux PCI Utilities (udeb) (udeb)
Closes: 268031 335665 379407
Changes: 
 pciutils (1:2.2.4~pre4-1) unstable; urgency=low
 .
   [ Matthew Wilcox ]
   * New upstream version
     - Adds -nn option.  Closes: #268031
     - Adds deviceclass field.  Closes: #335665
     - Fixes I/O port access on Hurd.  Closes: #379407
Files: 
 5994e4d05190601677d4a5a0347ddab5 781 admin optional pciutils_2.2.4~pre4-1.dsc
 52d9d556c90a9e559128d062742a6fdd 234325 admin optional 
pciutils_2.2.4~pre4.orig.tar.gz
 97207f668bbd49032b811d1820b4a506 32231 admin optional 
pciutils_2.2.4~pre4-1.diff.gz
 b0337b0c6a19237fe4634646ced40411 206074 admin optional 
pciutils_2.2.4~pre4-1_i386.deb
 4b3589420a6accdb59ee0bace432c092 31718 devel optional 
pciutils-dev_2.2.4~pre4-1_i386.deb
 5b524297fea8c2bd4a08c14013b68d4f 107660 debian-installer optional 
pciutils-udeb_2.2.4~pre4-1_i386.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE5YEFHk9mSeopF4URAgW3AKCKcFbpbf53m6cL3OxafLTLUyJiSQCgtsuV
2nxmxGnVWuBJc6K4pwQPWls=
=oWV+
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to