lol

perlPackages.CryptDES: fix build with gcc14

See the discussion at https://rt.cpan.org/Public/Bug/Display.html?id=133363.

The patch has to be copied to nixpkgs manually, because automatic
download with fetchpatch results in empty file (perhaps some form of
DDoS protection).

+29
+24
pkgs/development/perl-modules/CryptDES-expose-perl_des_expand_key-and-perl_des_crypt.patch
··· 1 + From 51fda02d223f516c4948606c050bfc732b95f481 Mon Sep 17 00:00:00 2001 2 + From: Brian Fraser <brian.fraser@booking.com> 3 + Date: Thu, 24 Sep 2020 15:00:20 +0200 4 + Subject: [PATCH] _des.h: expose perl_des_expand_key() and perl_des_crypt() to 5 + prevent implicit delaration errors/warnings 6 + 7 + --- 8 + _des.h | 2 ++ 9 + 1 file changed, 2 insertions(+) 10 + 11 + diff --git a/_des.h b/_des.h 12 + index ec56b27..b636cda 100644 13 + --- a/_des.h 14 + +++ b/_des.h 15 + @@ -4,4 +4,6 @@ typedef unsigned long des_ks[32]; 16 + 17 + void _des_crypt( des_cblock in, des_cblock out, des_ks key, int encrypt ); 18 + void _des_expand_key( des_user_key userKey, des_ks key ); 19 + +void perl_des_expand_key(des_user_key userKey, des_ks ks); 20 + +void perl_des_crypt( des_cblock input, des_cblock output, des_ks ks, int encrypt ); 21 + 22 + -- 23 + 2.24.3 (Apple Git-128) 24 +
+5
pkgs/top-level/perl-packages.nix
··· 5018 5018 url = "mirror://cpan/authors/id/D/DP/DPARIS/Crypt-DES-2.07.tar.gz"; 5019 5019 hash = "sha256-LbHrtYN7TLIAUcDuW3M7RFPjE33wqSMGA0yGdiHt1+c="; 5020 5020 }; 5021 + patches = [ 5022 + # Fix build error with gcc14. See https://rt.cpan.org/Public/Bug/Display.html?id=133363. 5023 + # Source: https://rt.cpan.org/Public/Ticket/Attachment/1912753/1024508/0001-_des.h-expose-perl_des_expand_key-and-perl_des_crypt.patch 5024 + ../development/perl-modules/CryptDES-expose-perl_des_expand_key-and-perl_des_crypt.patch 5025 + ]; 5021 5026 meta = { 5022 5027 description = "Perl DES encryption module"; 5023 5028 license = with lib.licenses; [ bsdOriginalShortened ];