From a9733393244300f603aa2d2f270ac1ec03424abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 22 Mar 2023 13:48:40 +0100 Subject: [PATCH] perlPackages.AuthenSimple: don't test the "crypt" algo --- pkgs/top-level/perl-packages.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index a6e747abbecae..e0ca3b733b44c 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -1350,6 +1350,20 @@ let url = "mirror://cpan/authors/id/C/CH/CHANSEN/Authen-Simple-0.5.tar.gz"; hash = "sha256-As3atH+L8aHL1Mm/jSWPbQURFJnDP4MV5yRIEvcmE6o="; }; + # Our C crypt() doesn't support this weak "crypt" algorithm anymore. + postPatch = '' + patch -p1 <<-EOF + --- a/t/09password.t + +++ b/t/09password.t + @@ -10 +10 @@ + -use Test::More tests => 16; + +use Test::More tests => 14; + @@ -14 +13,0 @@ + - [ 'crypt', 'lk9Mh5KHGjAaM', 'crypt' ], + @@ -18 +16,0 @@ + - [ 'crypt', '{CRYPT}lk9Mh5KHGjAaM', '{CRYPT}' ], + EOF + ''; propagatedBuildInputs = [ ClassAccessor ClassDataInheritable CryptPasswdMD5 ParamsValidate ]; meta = { description = "Simple Authentication";