summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-05-22 20:13:29 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-27 09:01:17 +0100
commit780670519eaa9ef70838611066f9f6aa16f17577 (patch)
tree5fa254b2df8effa00aab69aeb2ade30f386e2032 /meta
parentc919849c12b869a1ada6882e383caad919abc8eb (diff)
downloadpoky-780670519eaa9ef70838611066f9f6aa16f17577.tar.gz
mesa: don't add extra tags to the libopencl-mesa package
The libopencl-mesa package provides OpenCL ICDs (Installable Client Drivers). As such, there is no conflict between several packages providing ICDs for different vendors. Split the loop that modifies package metadata and stop adding extra RPROVIDES / RCONFLICTS / RREPLACES tags to the libopencl-mesa package. (From OE-Core rev: 6849af6df74f4a30ab7820a698598932832498dc) 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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc15
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index f7058107cd..a0ab5b21d5 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -263,28 +263,31 @@ do_install:append () {
263# RPROVIDEs/RCONFLICTs on the generic libgl name. 263# RPROVIDEs/RCONFLICTs on the generic libgl name.
264python __anonymous() { 264python __anonymous() {
265 pkgconfig = (d.getVar('PACKAGECONFIG') or "").split() 265 pkgconfig = (d.getVar('PACKAGECONFIG') or "").split()
266 mlprefix = d.getVar("MLPREFIX")
266 suffix = "" 267 suffix = ""
267 if "-native" in d.getVar("PN"): 268 if "-native" in d.getVar("PN"):
268 suffix = "-native" 269 suffix = "-native"
270
271 for p in ("libegl", "libgl", "libglx", "libgles1", "libgles2", "libgles3", "libopencl"):
272 fullp = mlprefix + p + "-mesa" + suffix
273 d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix)
274
275 d.setVar("DEBIAN_NOAUTONAME:%slibopencl-mesa%s" % (mlprefix, suffix), "1")
276
269 for p in (("egl", "libegl", "libegl1"), 277 for p in (("egl", "libegl", "libegl1"),
270 ("opengl", "libgl", "libgl1"), 278 ("opengl", "libgl", "libgl1"),
271 ("glvnd", "libglx",), 279 ("glvnd", "libglx",),
272 ("gles", "libgles1", "libglesv1-cm1"), 280 ("gles", "libgles1", "libglesv1-cm1"),
273 ("gles", "libgles2", "libglesv2-2", "libgles3"), 281 ("gles", "libgles2", "libglesv2-2", "libgles3")):
274 ("opencl", "libopencl",)):
275 if not p[0] in pkgconfig: 282 if not p[0] in pkgconfig:
276 continue 283 continue
277 mlprefix = d.getVar("MLPREFIX")
278 fullp = mlprefix + p[1] + "-mesa" + suffix 284 fullp = mlprefix + p[1] + "-mesa" + suffix
279 mlprefix = d.getVar("MLPREFIX")
280 pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) 285 pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:])
281 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") 286 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
282 d.appendVar("RREPLACES:" + fullp, pkgs) 287 d.appendVar("RREPLACES:" + fullp, pkgs)
283 d.appendVar("RPROVIDES:" + fullp, pkgs) 288 d.appendVar("RPROVIDES:" + fullp, pkgs)
284 d.appendVar("RCONFLICTS:" + fullp, pkgs) 289 d.appendVar("RCONFLICTS:" + fullp, pkgs)
285 290
286 d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix)
287
288 # 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
289 fullp = mlprefix + p[1] + "-mesa-dev" + suffix 292 fullp = mlprefix + p[1] + "-mesa-dev" + suffix
290 pkgs = " " + mlprefix + p[1] + "-dev" + suffix 293 pkgs = " " + mlprefix + p[1] + "-dev" + suffix