diff options
author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-05-22 20:13:31 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-27 09:01:17 +0100 |
commit | 3ad50d41db82ef8e1988539e231a8cbc76c5381f (patch) | |
tree | cb3a0323a94b0be32dec61cbfa917cb45a7b0897 | |
parent | 1fba1283848d1150afc196c20b2cec2e1073f2c3 (diff) | |
download | poky-3ad50d41db82ef8e1988539e231a8cbc76c5381f.tar.gz |
mesa: don't set RCONFLICTS / PROVIDES if glvnd is enabled
If glvnd is enabled, mesa packages do not provide full library
implementations (instead it provides two ICDs, one for EGL, one for
GLX). This means that there is no more conflict between mesa packages
and other vendor packages. Stop setting those extra tags for mesa
packages.
(From OE-Core rev: b1b8a0f69dafe23c992754cffb7aaf575753e564)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index d8b36bd536..012104cef9 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -274,27 +274,27 @@ python __anonymous() { | |||
274 | 274 | ||
275 | d.setVar("DEBIAN_NOAUTONAME:%slibopencl-mesa%s" % (mlprefix, suffix), "1") | 275 | d.setVar("DEBIAN_NOAUTONAME:%slibopencl-mesa%s" % (mlprefix, suffix), "1") |
276 | 276 | ||
277 | for p in (("egl", "libegl", "libegl1"), | 277 | if 'glvnd' not in pkgconfig: |
278 | ("opengl", "libgl", "libgl1"), | 278 | for p in (("egl", "libegl", "libegl1"), |
279 | ("glvnd", "libglx",), | 279 | ("opengl", "libgl", "libgl1"), |
280 | ("gles", "libgles1", "libglesv1-cm1"), | 280 | ("gles", "libgles1", "libglesv1-cm1"), |
281 | ("gles", "libgles2", "libglesv2-2", "libgles3")): | 281 | ("gles", "libgles2", "libglesv2-2", "libgles3")): |
282 | if not p[0] in pkgconfig: | 282 | if not p[0] in pkgconfig: |
283 | continue | 283 | continue |
284 | fullp = mlprefix + p[1] + "-mesa" + suffix | 284 | fullp = mlprefix + p[1] + "-mesa" + suffix |
285 | pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) | 285 | pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) |
286 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | 286 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") |
287 | d.appendVar("RREPLACES:" + fullp, pkgs) | 287 | d.appendVar("RREPLACES:" + fullp, pkgs) |
288 | d.appendVar("RPROVIDES:" + fullp, pkgs) | 288 | d.appendVar("RPROVIDES:" + fullp, pkgs) |
289 | d.appendVar("RCONFLICTS:" + fullp, pkgs) | 289 | d.appendVar("RCONFLICTS:" + fullp, pkgs) |
290 | 290 | ||
291 | # For -dev, the first element is both the Debian and original name | 291 | # For -dev, the first element is both the Debian and original name |
292 | fullp = mlprefix + p[1] + "-mesa-dev" + suffix | 292 | fullp = mlprefix + p[1] + "-mesa-dev" + suffix |
293 | pkgs = " " + mlprefix + p[1] + "-dev" + suffix | 293 | pkgs = " " + mlprefix + p[1] + "-dev" + suffix |
294 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | 294 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") |
295 | d.appendVar("RREPLACES:" + fullp, pkgs) | 295 | d.appendVar("RREPLACES:" + fullp, pkgs) |
296 | d.appendVar("RPROVIDES:" + fullp, pkgs) | 296 | d.appendVar("RPROVIDES:" + fullp, pkgs) |
297 | d.appendVar("RCONFLICTS:" + fullp, pkgs) | 297 | d.appendVar("RCONFLICTS:" + fullp, pkgs) |
298 | } | 298 | } |
299 | 299 | ||
300 | python mesa_populate_packages() { | 300 | python mesa_populate_packages() { |