diff options
author | kilianar <mail@kilianar.de> | 2022-07-10 22:25:47 +0200 |
---|---|---|
committer | kilianar <mail@kilianar.de> | 2022-07-10 22:25:47 +0200 |
commit | 7a1fcc94a77c7df416507cb536261d6df41a3992 (patch) | |
tree | 51ee73f2c8fef9b08c4eb0c515f09d1e0abb6b50 /pkgs/applications/graphics/feh | |
parent | 62f2aebc4deaea045d26b1765839fba3ae97e336 (diff) |
feh: fix failing testPhase
The update of imlib2 from 1.8.1 to 1.9.1 changed the warning messages when trying to open empty image files. This caused some tests of feh to fail. Therefore we change the expected warning in test/feh.t during the postPatch phase.
Diffstat (limited to 'pkgs/applications/graphics/feh')
-rw-r--r-- | pkgs/applications/graphics/feh/default.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/applications/graphics/feh/default.nix b/pkgs/applications/graphics/feh/default.nix index 3865848ff209d..70f83e9a2f2cf 100644 --- a/pkgs/applications/graphics/feh/default.nix +++ b/pkgs/applications/graphics/feh/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchFromGitHub, makeWrapper -, xorg, imlib2, libjpeg, libpng, fetchpatch +, xorg, imlib2, libjpeg, libpng , curl, libexif, jpegexiforient, perl , enableAutoreload ? !stdenv.hostPlatform.isDarwin }: @@ -14,13 +14,11 @@ stdenv.mkDerivation rec { sha256 = "sha256-rgNC4M1TJ5EPeWmVHVzgaxTGLY7CYQf7uOsOn5bkwKE="; }; - patches = [ - # fix test failure when magic=0 is set - (fetchpatch { - url = "https://github.com/derf/feh/commit/3c1076b31e2e4e3429a5c3d334d555e549fb72d2.patch"; - sha256 = "sha256-F9N+N/BAeclyPHQYlO9ZV1U8S1VWfHl/8dMKUqA7DF8="; - }) - ]; + postPatch = '' + substituteInPlace test/feh.t \ + --replace "WARNING:" "WARNING: While loading" \ + --replace "Does not look like an image \(magic bytes missing\)" "Unknown error \(15\)" + ''; outputs = [ "out" "man" "doc" ]; |