1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

hylafaxplus: fix build

This commit is contained in:
ajs124 2021-07-21 02:33:50 +02:00
parent 4218023470
commit 3027914a57
2 changed files with 13 additions and 6 deletions

View file

@ -2,7 +2,6 @@
, lib
, fakeroot
, fetchurl
, fetchpatch
, libfaketime
, substituteAll
## runtime dependencies
@ -70,11 +69,7 @@ stdenv.mkDerivation {
};
patches = [
# adjust configure check to work with libtiff > 4.1
(fetchpatch {
name = "libtiff-4.2.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/hylafaxplus/files/hylafaxplus-7.0.2-tiff-4.2.patch?id=82e3eefd5447f36e5bb00068a54b91d8c891ccf6";
sha256 = "0hhf4wpgj842gz4nxq8s55vnzmciqkyjjaaxdpqawns2746vx0sw";
})
./libtiff-4.patch
];
# Note that `configure` (and maybe `faxsetup`) are looking
# for a couple of standard binaries in the `PATH` and

View file

@ -0,0 +1,12 @@
https://bugs.gentoo.org/706154
--- a/configure
+++ b/configure
@@ -2583,7 +2583,7 @@ EOF
echo '#define TIFFSTRIPBYTECOUNTS uint32'
echo '#define TIFFVERSION TIFF_VERSION'
echo '#define TIFFHEADER TIFFHeader';;
- 4.[01]) tiff_runlen_t="uint32"
+ 4.[0-9]) tiff_runlen_t="uint32"
tiff_offset_t="uint64"
echo '#define TIFFSTRIPBYTECOUNTS uint64'
echo '#define TIFFVERSION TIFF_VERSION_CLASSIC'