[Debian-lego-team] Bug#877297: libnxt: usb:v03EBp* too inclusive, leads to false positive matches

Michael Crusoe michael.crusoe at gmail.com
Sat Sep 30 10:43:47 UTC 2017


Package: libnxt
Version: 0.3-8
Severity: normal

Dear Maintainers,

I have no NXT devices installed on my system, but I get an alert that I
should
install libnxt due to the following modalias match in
/usr/share/appdata/libnxt.metainfo.xml:

<modalias>usb:v03EBp*</modalias>

(While I am running Debian Stable, I confirmed that the latest libnxt still
has this overly broad match)

This very broad alias matches my laptop's touchscreen digitizer. Alas the
appstream spec does not seem to allow for exclusions.

Here's an alternative:

<!-- all USB products from vendor 03EB, except product 8801 -->
<modalias>usb:v03EBp[0-79]*</modalias>
<modalias>usb:v03EBp8[0-79]*</modalias>
<modalias>usb:v03EBp88[1-9]*</modalias>
<modalias>usb:v03EBp880[02-9]*</modalias>

For completeness, here is the lsusb -v output for my laptop's touchscreen
digitizer:

Bus 001 Device 009: ID 03eb:8801 Atmel Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x03eb Atmel Corp.
  idProduct          0x8801
  bcdDevice           10.32
  iManufacturer           1 Atmel
  iProduct                2 Atmel maXTouch Digitizer
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           66
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              250mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              2 Atmel maXTouch Digitizer
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     639
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              3 Atmel maXTouch Control
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      39
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=ro_RO.utf8, LC_CTYPE=ro_RO.utf8 (charmap=UTF-8),
LANGUAGE=ro_RO.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libnxt depends on:
ii  libc6         2.24-11+deb9u1
ii  libusb-0.1-4  2:0.1.12-30

Versions of packages libnxt recommends:
ii  nxt-firmware  1.29-20120908+dfsg-7

libnxt suggests no packages.

-- no debconf information

-- 
Michael R. Crusoe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-lego-team/attachments/20170930/b3586a17/attachment-0001.html>


More information about the Debian-lego-team mailing list