Debian Patches

Status for gtk4/4.21.5+ds-5

Patch Description Author Forwarded Bugs Origin Last update
debian/reftest_compare_surfaces-Report-how-much-the-images-diffe.patch reftest_compare_surfaces: Report how much the images differ
In unattended/non-interactive/autobuilder environments where the images
are not trivially accessible, this provides a way to distinguish between
totally different rendering and more subtle issues.
Simon McVittie <smcv@debian.org> yes 2024-08-31
insttests/Revert-build-Drop-the-install-tests-option.patch Revert "build: Drop the install-tests option"
Debian and Ubuntu uses these installed tests as part of their
autopkgtest system

This reverts commit 3121f88265ac61733e257f5335473d6f139f158c.
Jeremy Bicha <jeremy.bicha@canonical.com> no 2023-01-12
insttests/Revert-testsuite-Remove-leftover-test.in-files.patch Revert "testsuite: Remove leftover test.in files"
This reverts commit b598f21506c31d3913c9705a00eb1e8270e9a810.
Jeremy Bícha <jeremy.bicha@canonical.com> no 2024-12-06
gstplay/subprojects-Add-gst-play-1.0-as-subproject.patch subprojects: Add gst-play-1.0 as subproject
Make sure GST symbols are hidden to avoid leaking into libgtk and conflicting
with the real gstreamer if both libraries are loaded.
"Marco Trevisan (Treviño)" <mail@3v1n0.net> not-needed https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject 2023-03-17
gstplay/gst-play-1.0-Do-not-install-it-if-it-s-a-subproject.patch gst-play-1.0: Do not install it if it's a subproject "Marco Trevisan (Treviño)" <mail@3v1n0.net> not-needed https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject 2023-03-17
gstplay/media-Use-gst-play-1.0-from-meson-subproject.patch media: Use gst-play-1.0 from meson subproject "Marco Trevisan (Treviño)" <mail@3v1n0.net> not-needed https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject 2023-03-17
gstplayer/Revert-build-Add-wrap-file-for-GStreamer.patch Revert "build: Add wrap file for GStreamer"
This reverts commit 60d46ccc6c25af13787cb55a72702f9dc27d6093.

It duplicates our gstreamer-player subproject
Jeremy Bícha <jeremy.bicha@canonical.com> no 2024-12-06
workarounds/reftests-Allow-minor-differences-to-be-tolerated.patch reftests: Allow minor differences to be tolerated
Based on an earlier patch by Michael Biebl, as used in Debian's GTK 3
packaging, with additional inspiration from librsvg's reftests.

Each .ui or .node reftest can have an accompanying .keyfile file
like this:

[reftest]
tolerated-diff-level=20
tolerated-diff-pixels=1000

If the image differs, but the number of pixels that differ is no more
than tolerated-diff-pixels and the differences are no more than
tolerated-diff-level, then we treat it as a success with warnings, save
the .diff.png for analysis, and use g_test_incomplete() to record the
test-case as "TODO".
Simon McVittie <smcv@debian.org> yes 2021-02-13
workarounds/Disable-inscription-markup.ui-reftest.patch Disable inscription-markup.ui reftest
It's rendered 1px to the left of where it should be, which is not a
serious problem for practical use of GTK, but is a test failure.
Simon McVittie <smcv@debian.org> not-needed upstream 2022-08-12
workarounds/tests-Mark-gltexture-as-expected-to-fail-on-big-endian-ma.patch tests: Mark gltexture as expected to fail on big-endian machines Simon McVittie <smcv@debian.org> not-needed 2023-08-22
workarounds/tests-Allow-longer-for-a-dialog-to-open.patch tests: Allow longer for a dialog to open
This hopefully makes the test pass more reliably, especially on riscv64.
Simon McVittie <smcv@debian.org> invalid debian upstream 2023-08-22
workarounds/nodeparser-Adjust-test-for-pango-1.52.0.patch nodeparser: Adjust test for pango 1.52.0
Adjust test result for changed output resulting from
https://gitlab.gnome.org/GNOME/pango/-/commit/d489fc8c4
Jeremy Bícha <jeremy.bicha@canonical.com> yes 2024-03-09
workarounds/testsuite-skip-color-mix.patch testsuite: skip color-mix
https://gitlab.gnome.org/GNOME/gtk/-/issues/6907
Jeremy Bícha <jeremy.bicha@canonical.com> no 2024-08-06
workarounds/scaling-test-Skip-floating-point-pixel-formats-with-Cairo.patch scaling test: Skip floating-point pixel formats with Cairo renderer
If the four chosen pixel values happen to have alpha values that average
to 16/17, GTK will quantize that into 8bpp integer space as
16/17*255 = 240, but Cairo/Pixman does its quantization differently and
gets 16/17*256 = 241.
Simon McVittie <smcv@debian.org> yes upstream 2024-09-03
workarounds/nodeparser-Mark-failing-tests-on-s390x.patch nodeparser: Mark failing tests on s390x Alessandro Astone <alessandro.astone@canonical.com> not-needed upstream 2025-08-18
workarounds/testsuite-Skip-vulkan-tests-that-break-lavapipe.patch testsuite: Skip vulkan tests that break lavapipe Alessandro Astone <alessandro.astone@canonical.com> not-needed 2026-02-10
vulkan-Fix-type-mismatch-on-32-bit.patch vulkan: Fix type mismatch on 32-bit
timestamp_pool_nodes is declared as gsize* but allocated as uint64_t*, which
expand to different types on 32-bit architectures and emit a compiler warning.
Alessandro Astone <alessandro.astone@canonical.com> yes 2026-02-12
path-Fix-alignment-issue-on-32-bit.patch path: Fix alignment issue on 32-bit
There is no guarantee that the GskPoints array data is 8-byte aligned.
Since 3cf72f4e09 ("path: Use inlined arrays in the path builder") we're seeing
it get 4-byte aligned on 32-bit platforms in Debian/Ubuntu.

If the start of the array is 4-byte aligned, computing the offset with
(graphene_point_t *)p - (graphene_point_t *)NULL
will round down, which is not what gsk_standard_contour_new expects.

Switch the inlined GskPoints array to use GskAlignedPoint too.
Alessandro Astone <alessandro.astone@canonical.com> yes 2026-02-12
testsuite-Add-missing-test-files-to-meson.build.patch testsuite: Add missing test files to meson.build Alessandro Astone <alessandro.astone@canonical.com> yes 2026-02-16

All known versions for source package 'gtk4'

Links