Backport a patch from upstream trunk. Signed-off-by: Khem Raj <[email protected]> --- ...5fc57b07c06b5e0b3a3694d06898ebc80163.patch | 36 +++++++++++++++++++ .../virglrenderer/virglrenderer_1.2.0.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-graphics/virglrenderer/virglrenderer/986b5fc57b07c06b5e0b3a3694d06898ebc80163.patch
diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer/986b5fc57b07c06b5e0b3a3694d06898ebc80163.patch b/meta/recipes-graphics/virglrenderer/virglrenderer/986b5fc57b07c06b5e0b3a3694d06898ebc80163.patch new file mode 100644 index 0000000000..91e01f0616 --- /dev/null +++ b/meta/recipes-graphics/virglrenderer/virglrenderer/986b5fc57b07c06b5e0b3a3694d06898ebc80163.patch @@ -0,0 +1,36 @@ +From 986b5fc57b07c06b5e0b3a3694d06898ebc80163 Mon Sep 17 00:00:00 2001 +From: Maximilian Hofmann <[email protected]> +Date: Thu, 26 Feb 2026 23:28:58 +0100 +Subject: [PATCH] fix: build with glibc 2.43 + +Several glibc functions now return a const pointer if the input is a +const pointer and a non-const pointer if the input is non-const, causing +a build failure. + +Fix this by declaring the output pointers as const if they are never +modified, and for the lone failure where the output is modified, instead +make the input non-const. + +Upstream-Status: Backport [https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1599] +Signed-off-by: Maximilian Hofmann <[email protected]> +Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1599> +--- + src/gallium/auxiliary/tgsi/tgsi_text.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c +index db7d7b952..7e37bf794 100644 +--- a/src/gallium/auxiliary/tgsi/tgsi_text.c ++++ b/src/gallium/auxiliary/tgsi/tgsi_text.c +@@ -84,7 +84,7 @@ streq_nocase_uprcase(const char *str1, + static inline bool skip_n_chars(const char **pcur, + int n) + { +- char* str = memchr(*pcur, '\0', n); ++ const char* str = memchr(*pcur, '\0', n); + if (unlikely(str)) { + *pcur = str; + return false; +-- +GitLab + diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer_1.2.0.bb b/meta/recipes-graphics/virglrenderer/virglrenderer_1.2.0.bb index df8473dad2..c7aef527b0 100644 --- a/meta/recipes-graphics/virglrenderer/virglrenderer_1.2.0.bb +++ b/meta/recipes-graphics/virglrenderer/virglrenderer_1.2.0.bb @@ -13,6 +13,7 @@ SRCREV = "500b41d5c8638f9b80dd558f4044f3301c7457a4" SRC_URI = "git://gitlab.freedesktop.org/virgl/virglrenderer.git;branch=main;protocol=https;tag=${PV} \ file://0001-meson.build-use-python3-directly-for-python.patch \ file://0001-c11-use-glibc-s-once_flag-ONCE_FLAG_INIT-when-presen.patch \ + file://986b5fc57b07c06b5e0b3a3694d06898ebc80163.patch \ " inherit meson pkgconfig features_check
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#234323): https://lists.openembedded.org/g/openembedded-core/message/234323 Mute This Topic: https://lists.openembedded.org/mt/118608250/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
