[Pkg-fglrx-devel] Bug#742452: libfglrx: Preinst check for old GPUs compares uppercase & lowercase hex values, does not work in 60/134 cases

Jo Shields directhex at apebox.org
Sun Mar 23 21:14:54 UTC 2014


Package: libfglrx
Version: 14.1~beta1.3-1+steamos2
Severity: important
Tags: patch

libfglrx.preinst contains a list of old, unsupported GPUs. The aim is to
warn users if they try to install on old hardware which the driver will
not support. This check is done by string comparison between the values
in lspci and the list in libfglrx.preinst. However, the list in
libfglrx.preinst stores hex digits A-F in upper case, and lspci returns
hex digits a-f in lower case. As a result, any GPU whose PCI ID contains
a hex value will not trigger the installation warning as intended. `tr`
can do simple conversion of case, so adding it to the lspci pipeline is
a simple fix for the issue.

-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500,
'saucy'), (100, 'saucy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11.0-18-generic (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hexishard.diff
Type: text/x-patch
Size: 432 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fglrx-devel/attachments/20140323/88e74828/attachment.bin>


More information about the Pkg-fglrx-devel mailing list