Disable some image comparison tests on architectures such as i686 where intermediate floating-point operations are done with 80-bit long doubles, and typically later rounded to 64-bit doubles. This double rounding causes small differences in the resulting pixel values compared with other architectures, causing the image comparisons to fail. Patch by Mark H Weaver . diff -ru libgd-2.2.3.orig/tests/gdimagecopyresampled/basic_alpha.c libgd-2.2.3/tests/gdimagecopyresampled/basic_alpha.c --- libgd-2.2.3.orig/tests/gdimagecopyresampled/basic_alpha.c 2016-07-21 04:06:42.000000000 -0400 +++ libgd-2.2.3/tests/gdimagecopyresampled/basic_alpha.c 2016-07-29 13:50:56.214877446 -0400 @@ -1,5 +1,6 @@ /* Testing basic gdImageCopyResampled() functionality with alpha channel */ +#include #include "gd.h" #include "gdtest.h" @@ -33,7 +34,8 @@ gdImageCopyResampled(copy, im, 0,0, 0,0, 200,200, 400,300); gdImageDestroy(im); - gdAssertImageEqualsToFile("gdimagecopyresampled/basic_alpha_exp.png", copy); + if (FLT_EVAL_METHOD != 2) + gdAssertImageEqualsToFile("gdimagecopyresampled/basic_alpha_exp.png", copy); gdImageDestroy(copy); return gdNumFailures(); diff -ru libgd-2.2.3.orig/tests/gdimagecopyresampled/bug00201.c libgd-2.2.3/tests/gdimagecopyresampled/bug00201.c --- libgd-2.2.3.orig/tests/gdimagecopyresampled/bug00201.c 2016-07-21 04:06:42.000000000 -0400 +++ libgd-2.2.3/tests/gdimagecopyresampled/bug00201.c 2016-07-29 13:50:30.638559003 -0400 @@ -1,3 +1,4 @@ +#include #include "gd.h" #include "gdtest.h" @@ -65,7 +66,8 @@ gdImageDestroy(background); gdImageDestroy(scaled_logo); - gdAssertImageEqualsToFile("gdimagecopyresampled/bug00201_exp.png", img); + if (FLT_EVAL_METHOD != 2) + gdAssertImageEqualsToFile("gdimagecopyresampled/bug00201_exp.png", img); gdImageDestroy(img); return gdNumFailures(); } diff -ru libgd-2.2.3.orig/tests/gdimagerotate/bug00067.c libgd-2.2.3/tests/gdimagerotate/bug00067.c --- libgd-2.2.3.orig/tests/gdimagerotate/bug00067.c 2016-06-18 05:42:16.000000000 -0400 +++ libgd-2.2.3/tests/gdimagerotate/bug00067.c 2016-07-29 13:50:07.566271765 -0400 @@ -1,5 +1,6 @@ #include #include +#include #include "gd.h" #include "gdtest.h" @@ -43,7 +44,7 @@ sprintf(filename, "bug00067_%03d_exp.png", angle); path = gdTestFilePath2("gdimagerotate", filename); - if (!gdAssertImageEqualsToFile(path, exp)) { + if (FLT_EVAL_METHOD != 2 && !gdAssertImageEqualsToFile(path, exp)) { gdTestErrorMsg("comparing rotated image to %s failed.\n", path); error += 1; } 4-05-13 16:31:34 +0200'>2024-05-13daemon: Loop over ‘copy_file_range’ upon short writes....Ludovic Courtès 2024-03-12daemon: Address shortcoming in previous security fix for CVE-2024-27297....Ludovic Courtès 2024-03-11daemon: Protect against FD escape when building fixed-output derivations (CVE......Ludovic Courtès 2024-01-05daemon: Change default ‘timeout’ and ‘max-silent-time’ values....Ludovic Courtès 2023-12-17daemon: Fix my own whitespace errors....Tobias Geerinckx-Rice 2023-12-10daemon: Sacrifice builders on OOM....Tobias Geerinckx-Rice 2023-12-11daemon: Implement ‘substitute-urls’ RPC....Ludovic Courtès 2023-12-04daemon: Simplify “empty status” substitute error message....Ludovic Courtès 2023-09-24Revert "build: Add missing guix-gc.timer file to binary tarball."...Tobias Geerinckx-Rice 2023-09-26daemon: Add “git-download” built-in builder....Ludovic Courtès 2023-09-09daemon: Fix build with GCC 13....Sören Tempel 2023-08-31build: Add missing guix-gc.timer file to binary tarball....Maxim Cournoyer 2023-01-09daemon: Improve error message for wrong hash sizes....Ludovic Courtès 2022-12-18daemon: Make "opening file" error messages distinguishable....Ludovic Courtès 2022-10-17Revert "nix: Guard against removing temporary roots of living processes."...Ludovic Courtès 2022-10-07nix: Guard against removing temporary roots of living processes....Ludovic Courtès