#996811 intel-gpu-tools: missing-pkgconfig-dependency i915-perf => libdrm

Package:
intel-gpu-tools
Source:
intel-gpu-tools
Description:
tools for debugging the Intel graphics driver
Submitter:
Paul Wise
Date:
2021-10-19 06:57:03 UTC
Severity:
minor
#996811#5
Date:
2021-10-19 06:55:34 UTC
From:
To:
The i915-perf.pc file in the package requires libdrm.pc but libdrm-dev
is not in the dependencies of the package.

This is a minor issue since the package doesn't contain the i915-perf C
headers that would be required to build other packages against the
i915-perf library. If the headers were present it would be of a higher
severity, probably important or serious.

I suggest the solution to this would be one of these two options:

 * Remove the i915-perf.pc file from intel-gpu-tools, as the header
   files are already excluded this may be the preferred option.
 * Split the i915-perf into separate libi915-perf1 and libi915-perf-dev
   packages, the latter would have the headers and pkg-config file.

I found and confirmed this issue using this set of commands:

   $ adequate intel-gpu-tools
   intel-gpu-tools: missing-pkgconfig-dependency i915-perf => libdrm
  
   $ man adequate | grep -A3 missing-pkgconfig-dependency
    missing-pkgconfig-dependency
    Dependency of a pkg-config (.pc) file shipped by this package couldn't be satisfied.
  
    References: Debian Policy §8.4.
  
   $ dpkg -L intel-gpu-tools | grep i915-perf.pc | xargs head -vn-0 | grep -E 'Requires|==>'
   ==> /usr/lib/x86_64-linux-gnu/pkgconfig/i915-perf.pc <==
   Requires: libdrm >= 2.4.92
  
   $ apt-file search libdrm.pc
   libdrm-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/libdrm.pc
  
   $ apt-cache show intel-gpu-tools | grep libdrm-dev
  
   $ dpkg -L intel-gpu-tools | grep i915.perf
   /usr/bin/i915-perf-configs
   /usr/bin/i915-perf-control
   /usr/bin/i915-perf-reader
   /usr/bin/i915-perf-recorder
   /usr/lib/x86_64-linux-gnu/libi915_perf.so.1
   /usr/lib/x86_64-linux-gnu/pkgconfig/i915-perf.pc
   /usr/lib/x86_64-linux-gnu/libi915_perf.so