Debian Patches

Status for gtk4/4.20.1+ds-2

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.
=?utf-8?q?Jeremy_B=C3=ADcha?= <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.
=?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <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 =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <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 =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <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
=?utf-8?q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com> no 2024-12-06
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
wayland-Invert-flipped-transforms.patch wayland: Invert flipped transforms
So the visual results match when running with and without
GDK_DISABLE=offload. The comment above already hinted in this direction,
without being matched by the code - it looks like GdkDihedral applies
flips and rotations in the inverse manner.

This came up when testing the upcoming versions of Snapshot, GTK and the
gtk4paintablesink on mobile phones using the libcamera software ISP. In
this scenario there are usually two cameras, both 90 or 270 degree
rotated - and the front one will get an additional flip in order to
create a "mirror" effect. The recent improvements to the mentioned
components resulted in offloading now being used by default (the
software ISP generates RGB buffers - thus unlike for YUV formats
GDK_DEBUG=color-mgmt is not required for offloading).

(cherry picked from commit a7f2d9b2b05ae5e702a7664b180d20f1be163b1b)
Robert Mader <robert.mader@collabora.com> no upstream, after 4.20.1 2025-09-11
Fix-upright-text-carets.patch Fix upright text carets
This fixes an issue introduced in 2c7073b86b3c4a2d5.

By using inclusive rounding for the caret position rectangle,
wevinadvertendly turn upright carets (with a width of zero)
into slanted carets. Don't do that.

Issue found by Adam Williamson.

(cherry picked from commit 7060039ec59d31a8b5279f648e5bf91731544627)
Matthias Clasen <mclasen@redhat.com> no upstream, after 4.20.1 2025-09-11
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
=?utf-8?q?Jeremy_B=C3=ADcha?= <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
=?utf-8?q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com> no 2024-08-06
workarounds/gtkcssnumbervalue-Don-t-use-fesetround-on-ARM-softfloat.patch gtkcssnumbervalue: Don't use fesetround() on ARM softfloat
Older ARM CPUs have to emulate floating-point in software, and do not
implement rounding modes other than the default, FE_TONEAREST.
Implement nearbyint() the hard way when targeting an affected platform.
Simon McVittie <smcv@debian.org> no debian 2024-08-31
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

All known versions for source package 'gtk4'

Links