meson: Specify the maximum required libdrm in dri.pc
authorMatt Turner <mattst88@gmail.com>
Mon, 13 Apr 2020 16:20:18 +0000 (09:20 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 22:07:41 +0000 (22:07 +0000)
commite4268ffb99279f46d9785bdccb6617022924a6c2
tree2a4a078b6457698145d66eba5fd4d4c139ca60b9
parent4b24b9647d24e8651449971508347129bef9f42b
meson: Specify the maximum required libdrm in dri.pc

When dealing with a regression in libdrm-2.4.101, I masked the package
in Gentoo. In doing so, we discovered that Mesa's dri.pc specifies a
version requirement in dri.pc for >= the version of libdrm Mesa was
built against, thus preventing packages from being rebuilt with the
older version of libdrm installed.

Let's reduce this version requirement to the latest libdrm required by
Mesa instead, since libdrm is backward compatible.

Fixes: a3a16d4aa7e ("meson: use dep_libdrm version for pkg-config")
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4534>
src/mesa/drivers/dri/meson.build