From d002e84bab94fbdca4a8d2f981225868a24f3a36 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Sun, 10 Oct 2021 15:26:41 +0100 Subject: [PATCH] perlPackages.LaTeXML: backport downgrade to medium security of File::Temp (#141182) --- pkgs/top-level/perl-packages.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 1a40d9b754ef..1c3bb9f43a50 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -11358,11 +11358,16 @@ let url = "mirror://cpan/authors/id/B/BR/BRMILLER/${pname}-${version}.tar.gz"; sha256 = "1ccvdq7asxq6iw8x8ihwf5xs2mp7fkwm467xy7g8spkznr8wcacm"; }; + patches = [ + (fetchpatch { + # https://github.com/brucemiller/LaTeXML/issues/1669 + name = "downgrade-security-FileTemp.patch"; + url = "https://github.com/brucemiller/LaTeXML/commit/c3d6b9b88f9eafce6eee52b1634ea33085ba9ec6.patch"; + sha256 = "12w6nfv0bkj2mr4xwcqzkdngrpbq4fn52n85r9njdg913cvfirm7"; + }) + ]; outputs = [ "out" "tex" ]; propagatedBuildInputs = [ ArchiveZip DBFile FileWhich IOString ImageMagick ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ]; - preCheck = '' - rm t/931_epub.t # https://github.com/brucemiller/LaTeXML/issues/1669 - ''; nativeBuildInputs = [ pkgs.makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang; makeMakerFlags = "TEXMF=\${tex} NOMKTEXLSR"; # shebangs need to be patched before executables are copied to $out