]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
mesa: Fix header search paths
authorKhem Raj <raj.khem@gmail.com>
Fri, 2 May 2025 16:55:18 +0000 (09:55 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 May 2025 17:02:45 +0000 (18:02 +0100)
commitafcde8eb575684fb514e1012b31bc0da04f4cb28
tree05bde8b74fe3d2d3544723c0e67a45d35a45a222
parent50d5ac2199af7b35e18c0015fcc14078e4d1fd2a
mesa: Fix header search paths

mesa build currently emits CLANG_RESOURCE_DIR into compiled objects and
meson calculates it from llvm cmake files from sysroot and it points to
absolute paths in target sysroot. To fix this backport a patch that does
not rely on CLANG_RESOURCE_DIR, however, this patch still leaves it in
code as fallback via FALLBACK_CLANG_RESOURCE_DIR, we are on LLVM 20.x
which will not use this variable, lets just remove detection so it does
not encode hardcoded paths.

Fixes

ERROR: mesa-2_25.0.2-r0 do_package_qa: QA Issue: File /usr/lib/libMesaOpenCL.so.1.0.0 in package libopencl-mesa contains reference to TMPDIR [buildpaths]
ERROR: mesa-2_25.0.2-r0 do_package_qa: Fatal QA errors were found, failing task.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/files/0001-clover-Don-t-include-libclc-headers.patch [new file with mode: 0644]
meta/recipes-graphics/mesa/files/0001-gallium-clover-Do-not-use-LLVM_LIBRARY_DIR-for-FALLB.patch [new file with mode: 0644]
meta/recipes-graphics/mesa/mesa.inc