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: a3a16d4aa7 ("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>
This commit is contained in:
Matt Turner 2020-04-13 09:20:18 -07:00 committed by Marge Bot
parent 4b24b9647d
commit e4268ffb99
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ endif
if with_dri
dri_req_private = []
if dep_libdrm.found()
dri_req_private = ['libdrm >= ' + dep_libdrm.version()]
dri_req_private = ['libdrm >= ' + _drm_ver]
endif
pkg.generate(