[packages/perl-String-CRC] correct type usage

atler atler at pld-linux.org
Sat Aug 2 01:41:09 CEST 2025


commit 5f19a94f7588d25a241812c3da6da7d1b7932ed2
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Aug 2 01:40:51 2025 +0200

    correct type usage

 perl-String-CRC.spec |  2 ++
 types.patch          | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/perl-String-CRC.spec b/perl-String-CRC.spec
index 8dd4784..ec464fd 100644
--- a/perl-String-CRC.spec
+++ b/perl-String-CRC.spec
@@ -13,6 +13,7 @@ License:	Public Domain
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	ba07f022b5abf869a7b73f98f8abcf9f
+Patch0:		types.patch
 URL:		http://search.cpan.org/dist/String-CRC/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -26,6 +27,7 @@ Moduł String::CRC oblicza CRC różnej długości.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..da0abd8
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- String-CRC-1.0/CRC.xs.orig	1997-12-06 00:35:35.000000000 +0100
++++ String-CRC-1.0/CRC.xs	2025-08-02 01:39:24.016685458 +0200
+@@ -139,7 +139,7 @@
+ void
+ crc(data,bits=32)
+     PREINIT:
+-	int data_len;
++	STRLEN data_len;
+     INPUT:
+ 	char *data = (char *)SvPV(ST(0),data_len);
+ 	int bits;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-String-CRC.git/commitdiff/5f19a94f7588d25a241812c3da6da7d1b7932ed2



More information about the pld-cvs-commit mailing list