Bug#964377: bumblebee: please runtime depend on pciutils

Adrian Bunk bunk at debian.org
Mon Jul 6 19:43:36 BST 2020


Control: severity -1 important

On Mon, Jul 06, 2020 at 02:40:37PM +0200, Andreas Beckmann wrote:
> On 7/6/20 1:14 PM, Gianfranco Costamagna wrote:
> > Hello, bumblebee and bumblebee-nvidia (in Ubuntu) use lspci in their postinst files, without
> > a dependency on it
> 
> Good catch!
> Should there be a lintian test for it? I remember fixing the same thing in
> firmware-b43-installer recently.

In bumblebee this seems to be an Ubuntu-only problem:

debian/bumblebee-nvidia.postinst.Ubuntu:
      busid=$(lspci -d10de: -nn | grep '\[030[02]\]' | cut -d' ' -f1 | tr . : | head -1)

debian/bumblebee.postinst:
    # Raring specific issue
    # Also, do not rely solely on dpkg-vendor (see LP: #1061769)
    if (which dpkg-vendor >/dev/null && dpkg-vendor --derives-from Ubuntu) || \
      [ -e /etc/dpkg/origins/ubuntu ]; then
        # assume first device to be discrete in nvidia/nvidia
        busid=$(lspci -d10de: -nn | grep '\[030[02]\]' | cut -d' ' -f1 | tr . : | head -1)


> Andreas

cu
Adrian



More information about the pkg-nvidia-devel mailing list