gtk4.git
3 years agoreftests: Allow minor differences to be tolerated
Simon McVittie [Sat, 13 Feb 2021 16:19:10 +0000 (16:19 +0000)]
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".

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Name reftests-Allow-minor-differences-to-be-tolerated.patch

3 years agoreftest_compare_surfaces: Report how much the images differ
Simon McVittie [Sat, 13 Feb 2021 18:26:24 +0000 (18:26 +0000)]
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.

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

3 years agobuild: Add an option to use more conservative GResource embedding
Simon McVittie [Mon, 15 Aug 2022 21:24:26 +0000 (22:24 +0100)]
build: Add an option to use more conservative GResource embedding

Doing clever things with objcopy is faster, but also doesn't work on
all toolchains and architectures: in particular, Debian has had trouble
with this on arm and mips.

Developers will want to leave this option switched on for faster
incremental builds (unless their toolchain doesn't support it), but in
a distro build environment where we are compiling all of GTK every time,
the cost of potentially unreliable builds is higher than the cost of
using slower but more conservative GResource embedding.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5107
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4956
Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name build-Add-an-option-to-use-more-conservative-GResource-em.patch

3 years agogtk4 (4.7.2+ds-3) unstable; urgency=medium
Jeremy Bicha [Sun, 21 Aug 2022 21:40:46 +0000 (22:40 +0100)]
gtk4 (4.7.2+ds-3) unstable; urgency=medium

  [ Samuel Thibault ]
  * debian/libgtk-4-1.symbols.in: Mark more Wayland symbols as Linux-specific
  * Build-depend on dh-exec
  * Avoid trying to install Wayland documentation on non-Linux
    (Closes: #1017866)

  [ Jeremy Bicha ]
  * Release to unstable

[dgit import unpatched gtk4 4.7.2+ds-3]

3 years agoImport gtk4_4.7.2+ds-3.debian.tar.xz
Jeremy Bicha [Sun, 21 Aug 2022 21:40:46 +0000 (22:40 +0100)]
Import gtk4_4.7.2+ds-3.debian.tar.xz

[dgit import tarball gtk4 4.7.2+ds-3 gtk4_4.7.2+ds-3.debian.tar.xz]

3 years agoImport gtk4_4.7.2+ds.orig.tar.xz
Simon McVittie [Tue, 16 Aug 2022 10:24:01 +0000 (11:24 +0100)]
Import gtk4_4.7.2+ds.orig.tar.xz

[dgit import orig gtk4_4.7.2+ds.orig.tar.xz]