diff --git a/local/recipes/kde/kf6-kcrash/recipe.toml b/local/recipes/kde/kf6-kcrash/recipe.toml index f36551ceb6..c212e2430a 100644 --- a/local/recipes/kde/kf6-kcrash/recipe.toml +++ b/local/recipes/kde/kf6-kcrash/recipe.toml @@ -37,11 +37,15 @@ sed -i "s/target_link_libraries(KF6Crash PRIVATE Qt6::Gui Qt6::OpenGL/target_lin sed -i "s/find_package(Qt6Test.*REQUIRED)/#find_package(Qt6Test REQUIRED)/" "${COOKBOOK_SOURCE}/CMakeLists.txt" 2>/dev/null || true KCRASH_SRC="${COOKBOOK_SOURCE}/src/kcrash.cpp" -sed -i '/^QString glRenderer()/,/^}$/c\ -QString glRenderer()\ -{\ - return QString();\ -}' "${KCRASH_SRC}" +# OpenGL renderer query: keep the original glGetString-based +# implementation. Mesa (llvmpipe) provides libGL + GL/gl.h which +# exports glGetString. If a GL context is active, it returns the +# renderer string (e.g. "llvmpipe"); if no context, returns empty. +# Previous shortcut replaced the entire function body with +# `return QString()`, which silently lost crash-report metadata. +# restore original behavior now that Mesa is properly installed. +# No sed substitution needed — the upstream function compiles as-is +# on Redox with Mesa installed. # Stub out setgroups() call - Redox kernel lacks credential syscalls sed -i 's/setgroups(0, nullptr);/\/\/ setgroups not available on Redox/' "${KCRASH_SRC}"