about summary refs log tree commit diff
path: root/pkgs/servers/hylafaxplus
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2023-01-15 12:33:14 +0100
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2023-01-15 12:42:48 +0100
commit28b29084866beafce153c07e81b8da998f980877 (patch)
tree8231afe76ce7d76812a696da54847c2c9ab93637 /pkgs/servers/hylafaxplus
parentbefc83905c965adfd33e5cae49acb0351f6e0404 (diff)
hylafaxplus: patch source to fix build with libtiff 4.5
After libtiff's update to 4.5 in

https://github.com/NixOS/nixpkgs/commit/4d4af86db63955be68118f1507ce51e576b88016

hylafaxplus fails to build.
This is caused by libtiff 4.5 removing many exported symbols.
See this discussion for more details:

https://gitlab.com/libtiff/libtiff/-/issues/504

The next hylafaxplus relese will contain updated code such that
the missing code is simply added to the hylafaxplus codebase:

https://sourceforge.net/p/hylafax/HylaFAX+/2695/

To get hylafaxplus up and working again,
the commit at hand applies the corresponding patch.
Since Sourceforge doesn't permit to download patches
directly, we instead fetch the patch from Gentoo.
Diffstat (limited to 'pkgs/servers/hylafaxplus')
-rw-r--r--pkgs/servers/hylafaxplus/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/servers/hylafaxplus/default.nix b/pkgs/servers/hylafaxplus/default.nix
index c1a8cdc26d8e3..681c7ca7a8170 100644
--- a/pkgs/servers/hylafaxplus/default.nix
+++ b/pkgs/servers/hylafaxplus/default.nix
@@ -72,6 +72,16 @@ stdenv.mkDerivation {
   patches = [
     # adjust configure check to work with libtiff > 4.1
     ./libtiff-4.patch
+    # fix missing exports in libtiff 4.5+
+    # https://gitlab.com/libtiff/libtiff/-/issues/504
+    # can probably be dropped with next hylafaxplus release
+    (fetchurl {
+      name = "hylafaxplus-7.0.6-tiff-4.5.0.patch";
+      url = "https://dev.gentoo.org/~sam/distfiles/net-misc/hylafaxplus/hylafaxplus-7.0.6-tiff-4.5.0.patch.xz";
+      downloadToTemp = true;
+      postFetch = ''xz -d < $downloadedFile > $out'';
+      hash = "sha256-koZvvzlgZHcANVaYdewnuLARz2TTeyDZRjm0EYWzsmk=";
+    })
   ];
   # Note that `configure` (and maybe `faxsetup`) are looking
   # for a couple of standard binaries in the `PATH` and