commit:     6c56e160904824849c8d1d152cefa45fe847c9cd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 16 22:13:36 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 16 22:13:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c56e160

dev-libs/gjs: backport test fix

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../gjs/files/gjs-1.84.2-tests-gtk4warnings.patch  | 28 ++++++++++++++++++++++
 dev-libs/gjs/gjs-1.84.2.ebuild                     |  4 ++++
 2 files changed, 32 insertions(+)

diff --git a/dev-libs/gjs/files/gjs-1.84.2-tests-gtk4warnings.patch 
b/dev-libs/gjs/files/gjs-1.84.2-tests-gtk4warnings.patch
new file mode 100644
index 000000000000..00075d7a8e37
--- /dev/null
+++ b/dev-libs/gjs/files/gjs-1.84.2-tests-gtk4warnings.patch
@@ -0,0 +1,28 @@
+https://gitlab.gnome.org/GNOME/gjs/-/commit/cc092fccd101ffcb1a08605451b1b4902d968b2e
+
+From 866dda360212bd7899a5e6e55f0968aa466fb330 Mon Sep 17 00:00:00 2001
+From: Gary Li <[email protected]>
+Date: Sun, 10 Aug 2025 17:41:06 -0400
+Subject: [PATCH] testGtk4Warnings: use opengl renderer The CI servers seem to
+ have issues with the vulkan renderer. Set the test environment to use opengl
+ instead. Fixes https://gitlab.gnome.org/GNOME/gjs/-/issues/698
+
+---
+ meson.build                 | 2 ++
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 8ff0400e3..6a3f2f041 100644
+--- a/meson.build
++++ b/meson.build
+@@ -636,6 +636,8 @@ tests_environment.set('GTK_A11Y', 'none')
+ tests_environment.set('GSETTINGS_SCHEMA_DIR', js_tests_builddir)
+ tests_environment.set('GSETTINGS_BACKEND', 'memory')
+ tests_environment.set('G_DEBUG', 'fatal-warnings,fatal-criticals')
++# Vulkan renderer may not be compatible in all environments e.g CI, use 
opengl instead
++tests_environment.set('GSK_RENDERER', 'ngl')
+ 
+ tests_locale = 'N/A'
+ if cxx.get_argument_syntax() != 'msvc'
+-- 
+GitLab

diff --git a/dev-libs/gjs/gjs-1.84.2.ebuild b/dev-libs/gjs/gjs-1.84.2.ebuild
index d81a9cbc8469..14b8702cd2d2 100644
--- a/dev-libs/gjs/gjs-1.84.2.ebuild
+++ b/dev-libs/gjs/gjs-1.84.2.ebuild
@@ -33,6 +33,10 @@ BDEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.84.2-tests-gtk4warnings.patch
+)
+
 src_configure() {
        append-cppflags -DG_DISABLE_CAST_CHECKS
 

Reply via email to