[packages/perl-Crypt-Passwd] use "crypt" instead of long dropped "fcrypt"

atler atler at pld-linux.org
Thu Jul 31 15:27:32 CEST 2025


commit abd3f3f92e578d72455971bca87acfd00c64524c
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jul 31 15:26:46 2025 +0200

    use "crypt" instead of long dropped "fcrypt"

 crypt.patch            | 22 ++++++++++++++++++++++
 perl-Crypt-Passwd.spec |  2 ++
 2 files changed, 24 insertions(+)
---
diff --git a/perl-Crypt-Passwd.spec b/perl-Crypt-Passwd.spec
index bd6687e..081e01d 100644
--- a/perl-Crypt-Passwd.spec
+++ b/perl-Crypt-Passwd.spec
@@ -14,6 +14,7 @@ License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	66d9794442e27f33ad05685035082aa9
+Patch0:		crypt.patch
 URL:		http://search.cpan.org/dist/Crypt-Passwd/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	perl-Digest-MD5
@@ -30,6 +31,7 @@ Perlem 5 a biblioteką UFC Crypt Michaela Glada.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/crypt.patch b/crypt.patch
new file mode 100644
index 0000000..f194a77
--- /dev/null
+++ b/crypt.patch
@@ -0,0 +1,22 @@
+--- Crypt-Passwd-0.03/config.h.orig	1998-08-17 17:50:41.000000000 +0200
++++ Crypt-Passwd-0.03/config.h	2025-07-31 15:25:50.866198782 +0200
+@@ -8,7 +8,7 @@
+   */
+ 
+ /* crypt() function to use. Comment to skip this function. */
+-#define STD_CRYPT fcrypt
++#define STD_CRYPT crypt
+ 
+ /* crypt16() function to use. Comment to skip this function. */
+ /* #define EXT_CRYPT crypt16 */
+--- Crypt-Passwd-0.03/passwd.h.orig	1998-08-17 17:50:41.000000000 +0200
++++ Crypt-Passwd-0.03/passwd.h	2025-07-31 15:24:18.305498606 +0200
+@@ -11,7 +11,7 @@
+ #ifdef STD_CRYPT
+ /* This is the traditional UNIX crypt() function */
+ char*
+-STD_CRYPT(char* password, char* salt);
++STD_CRYPT(const char* password, const char* salt);
+ #endif
+ 
+ #ifdef EXT_CRYPT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Crypt-Passwd.git/commitdiff/abd3f3f92e578d72455971bca87acfd00c64524c



More information about the pld-cvs-commit mailing list