From 02a0c74e97194edc557e1945a188b2e8cad73dd3 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Fri, 21 Apr 2023 10:37:05 -0700 Subject: [PATCH] texinfo: apply gnulib patch only to version 6.7 Apparently the version of gnulib which is problematic for IEEE-standard long doubles on PowerPC only shipped with texinfo version 6.7. I have verified that versions 6.5 and 6.8 build without the patch. --- pkgs/development/tools/misc/texinfo/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/texinfo/common.nix b/pkgs/development/tools/misc/texinfo/common.nix index 51df8c555e632..364f9b148d8c3 100644 --- a/pkgs/development/tools/misc/texinfo/common.nix +++ b/pkgs/development/tools/misc/texinfo/common.nix @@ -35,7 +35,7 @@ stdenv.mkDerivation { # This patch is needed for IEEE-standard long doubles on # powerpc64; it does not apply cleanly to texinfo 5.x or # earlier. It is merged upstream in texinfo 6.8. - + lib.optionalString (with lib.strings; versionAtLeast version "6.0" && versionOlder version "6.8") '' + + lib.optionalString (version == "6.7") '' patch -p1 -d gnulib < ${gnulib.passthru.longdouble-redirect-patch} '';