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.
This commit is contained in:
parent
62f2aebc4d
commit
7a1fcc94a7
1 changed files with 6 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
||||||
, xorg, imlib2, libjpeg, libpng, fetchpatch
|
, xorg, imlib2, libjpeg, libpng
|
||||||
, curl, libexif, jpegexiforient, perl
|
, curl, libexif, jpegexiforient, perl
|
||||||
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
|
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
|
||||||
|
|
||||||
|
@ -14,13 +14,11 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-rgNC4M1TJ5EPeWmVHVzgaxTGLY7CYQf7uOsOn5bkwKE=";
|
sha256 = "sha256-rgNC4M1TJ5EPeWmVHVzgaxTGLY7CYQf7uOsOn5bkwKE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
postPatch = ''
|
||||||
# fix test failure when magic=0 is set
|
substituteInPlace test/feh.t \
|
||||||
(fetchpatch {
|
--replace "WARNING:" "WARNING: While loading" \
|
||||||
url = "https://github.com/derf/feh/commit/3c1076b31e2e4e3429a5c3d334d555e549fb72d2.patch";
|
--replace "Does not look like an image \(magic bytes missing\)" "Unknown error \(15\)"
|
||||||
sha256 = "sha256-F9N+N/BAeclyPHQYlO9ZV1U8S1VWfHl/8dMKUqA7DF8=";
|
'';
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
outputs = [ "out" "man" "doc" ];
|
outputs = [ "out" "man" "doc" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue