libtiff: 4.6.0 -> 4.7.0, cleanup libtiff_t and its dependees (#340566)

This commit is contained in:
K900
2024-09-20 19:40:16 +03:00
committed by GitHub
13 changed files with 2 additions and 105 deletions
@@ -29,13 +29,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "libtiff";
version = "4.6.0";
version = "4.7.0";
src = fetchFromGitLab {
owner = "libtiff";
repo = "libtiff";
rev = "v${finalAttrs.version}";
hash = "sha256-qCg5qjsPPynCHIg0JsPJldwVdcYkI68zYmyNAKUCoyw=";
hash = "sha256-SuK9/a6OUAumEe1kz1itFJGKxJzbmHkBVLMnyXhIwmQ=";
};
patches = [
@@ -44,15 +44,6 @@ stdenv.mkDerivation (finalAttrs: {
# libc++abi 11 has an `#include <version>`, this picks up files name
# `version` in the project's include paths
./rename-version.patch
# Fix static linking of `libtiff` via `pkg-config` not working
# because `libtiff` does not declare `Lerc` dependency.
# nixpkgs has `lerc` >= 4 which provides a `.pc` file.
# TODO: Close when https://gitlab.com/libtiff/libtiff/-/merge_requests/633 is merged and available
(fetchpatch {
name = "libtiff-4.pc-Fix-Requires.private-missing-Lerc.patch";
url = "https://gitlab.com/libtiff/libtiff/-/commit/ea882c3c240c14a897b9be38d815cc1893aafa59.patch";
hash = "sha256-C0xA3k1sgKmGJjEnyG9UxhXqYBYShKUDQsyjhbEDJbQ=";
})
];
postPatch = ''
@@ -1,73 +0,0 @@
{ lib
, stdenv
, fetchzip
, autoreconfHook
, pkg-config
, sphinx
, libdeflate
, libjpeg
, xz
, zlib
}:
# This is a fork created by the hylafaxplus developer to
# restore tools dropped by original libtiff in version 4.6.0.
stdenv.mkDerivation (finalAttrs: {
pname = "libtiff_t";
version = "4.6.0t";
src = fetchzip {
url = "http://www.libtiff.org/downloads/tiff-${finalAttrs.version}.tar.xz";
hash = "sha256-9ov4w2jw4LtKr82/4jWMAGhc5GEdviJ7bT+y0+U/Ac4=";
};
patches = [
# FreeImage needs this patch
./headers.patch
# libc++abi 11 has an `#include <version>`, this picks up files name
# `version` in the project's include paths
./rename-version.patch
];
postPatch = ''
mv VERSION VERSION.txt
'';
outputs = [ "bin" "dev" "dev_private" "out" "man" "doc" ];
postFixup = ''
moveToOutput include/tif_config.h $dev_private
moveToOutput include/tif_dir.h $dev_private
moveToOutput include/tif_hash_set.h $dev_private
moveToOutput include/tiffiop.h $dev_private
'';
# If you want to change to a different build system, please make
# sure cross-compilation works first!
nativeBuildInputs = [ autoreconfHook pkg-config sphinx ];
# TODO: opengl support (bogus configure detection)
propagatedBuildInputs = [
libdeflate
libjpeg
xz
zlib
];
enableParallelBuilding = true;
doCheck = true;
meta = with lib; {
description = "Library and utilities for working with the TIFF image file format (fork containing tools dropped in original libtiff version)";
homepage = "http://www.libtiff.org";
changelog = "http://www.libtiff.org/releases/v${finalAttrs.version}.html";
maintainers = with maintainers; [ yarny ];
license = licenses.libtiff;
platforms = platforms.unix ++ platforms.windows;
pkgConfigModules = [ "libtiff-4" ];
};
})
-21
View File
@@ -5211,12 +5211,6 @@ with pkgs;
grobi = callPackage ../tools/X11/grobi { };
gscan2pdf = callPackage ../applications/graphics/gscan2pdf {
# needs this fork of libtiff, because original libtiff
# stopped packaging required tools with version 4.6
libtiff = libtiff_t;
};
gsctl = callPackage ../applications/misc/gsctl { };
gsocket = callPackage ../tools/networking/gsocket { };
@@ -8621,12 +8615,6 @@ with pkgs;
hybridreverb2 = callPackage ../applications/audio/hybridreverb2 { };
hylafaxplus = callPackage ../servers/hylafaxplus {
# needs this fork of libtiff, because original libtiff
# stopped packaging required tools with version 4.6
libtiff = libtiff_t;
};
hyphen = callPackage ../development/libraries/hyphen { };
hyphenDicts = recurseIntoAttrs (callPackages ../development/libraries/hyphen/dictionaries.nix {});
@@ -21842,15 +21830,6 @@ with pkgs;
libtifiles2 = callPackage ../development/libraries/libtifiles2 { };
inherit
({
libtiff = callPackage ../development/libraries/libtiff { };
libtiff_t = callPackage ../development/libraries/libtiff/libtiff_t.nix { };
})
libtiff
libtiff_t
;
libtiger = callPackage ../development/libraries/libtiger { };
libtommath = callPackage ../development/libraries/libtommath { };