media-gfx/gimp: re-enable and fix headless tests

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44899
Closes: https://github.com/gentoo/gentoo/pull/44899
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate 2025-12-09 02:40:01 +02:00 committed by Sam James
parent e24bdedcf8
commit 0eb7718641
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
4 changed files with 39 additions and 9 deletions

View File

@ -0,0 +1,28 @@
https://gitlab.gnome.org/GNOME/gimp/-/issues/14822
https://gitlab.gnome.org/GNOME/gimp/-/issues/15257
https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2566
https://gitlab.gnome.org/GNOME/gimp/-/commit/2fd12847496a9a242ca8edc448d400d3660b8009
https://gitlab.gnome.org/GNOME/gimp/-/commit/93869f43cf3f489ed5aa35ce018f6f4edbbdcb67
From 2fd12847496a9a242ca8edc448d400d3660b8009 Mon Sep 17 00:00:00 2001
From: Jehan <jehan@girinstud.io>
Date: Thu, 4 Dec 2025 23:47:00 +0100
Subject: [PATCH] Issue #15257: test failing because gegl:bevel doesn't see GPL
ops.
--- a/app/tests/tests.c
+++ b/app/tests/tests.c
@@ -162,6 +162,10 @@ gimp_init_for_gui_testing_internal (gboolean show_gui,
/* from main() */
gimp_log_init ();
+ g_object_set (gegl_config (),
+ "use-opencl", FALSE,
+ "application-license", "GPL3",
+ NULL);
gegl_init (NULL, NULL);
/* Introduce an error margin for positions written to sessionrc */
--
GitLab

View File

@ -120,6 +120,10 @@ BDEPEND="
DOCS=( "AUTHORS" "NEWS" "README" "README.i18n" )
PATCHES=(
"${FILESDIR}"/gimp-3.0.6-fix-tests.patch
)
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
@ -179,9 +183,7 @@ src_configure() {
$(meson_feature openexr)
$(meson_feature openmp)
$(meson_feature postscript ghostscript)
# https://gitlab.gnome.org/GNOME/gimp/-/issues/14822
-Dheadless-tests=disabled
#$(meson_feature test headless-tests)
$(meson_feature test headless-tests)
$(meson_feature udev gudev)
$(meson_feature vala)
$(meson_feature webp)

View File

@ -150,6 +150,10 @@ BDEPEND="
DOCS=( "AUTHORS" "NEWS" "README" "README.i18n" )
PATCHES=(
"${FILESDIR}"/gimp-3.0.6-fix-tests.patch
)
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
@ -214,9 +218,7 @@ src_configure() {
$(meson_feature openexr)
$(meson_feature openmp)
$(meson_feature postscript ghostscript)
# https://gitlab.gnome.org/GNOME/gimp/-/issues/14822
-Dheadless-tests=disabled
#$(meson_feature test headless-tests)
$(meson_feature test headless-tests)
$(meson_feature udev gudev)
$(meson_feature vala)
$(meson_feature webp)

View File

@ -214,9 +214,7 @@ src_configure() {
$(meson_feature openexr)
$(meson_feature openmp)
$(meson_feature postscript ghostscript)
# https://gitlab.gnome.org/GNOME/gimp/-/issues/14822
-Dheadless-tests=disabled
#$(meson_feature test headless-tests)
$(meson_feature test headless-tests)
$(meson_feature udev gudev)
$(meson_feature vala)
$(meson_feature webp)