[packages/perl-Digest-Nilsimsa] add missing prototypes to fix build with gcc 14

atler atler at pld-linux.org
Sun Jul 27 23:09:43 CEST 2025


commit 00598f48ccb75136f5aedc2ab808d3da8ee742ff
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Jul 27 23:08:50 2025 +0200

    add missing prototypes to fix build with gcc 14

 perl-Digest-Nilsimsa.spec |  2 ++
 prototypes.patch          | 10 ++++++++++
 2 files changed, 12 insertions(+)
---
diff --git a/perl-Digest-Nilsimsa.spec b/perl-Digest-Nilsimsa.spec
index 5d307e0..36b9801 100644
--- a/perl-Digest-Nilsimsa.spec
+++ b/perl-Digest-Nilsimsa.spec
@@ -13,6 +13,7 @@ License:	GPL v2+
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	08e940bd7f5d1167ef3fd1aa7ce234d7
+Patch0:		prototypes.patch
 URL:		http://search.cpan.org/dist/Digest-Nilsimsa/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -31,6 +32,7 @@ autorem jest cmeclax.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/prototypes.patch b/prototypes.patch
new file mode 100644
index 0000000..7eb8a68
--- /dev/null
+++ b/prototypes.patch
@@ -0,0 +1,10 @@
+--- Digest-Nilsimsa-0.06/nilsimsa.h.orig	2002-06-12 23:03:11.000000000 +0200
++++ Digest-Nilsimsa-0.06/nilsimsa.h	2025-07-27 23:04:03.177026493 +0200
+@@ -51,5 +51,7 @@
+ int accbuf(unsigned char *buf,int len,struct nsrecord *a);
+ void dprint(char *msg);
+ void filltran();
++void makecode(struct nsrecord *a);
++void clear(struct nsrecord *a);
+ 
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Digest-Nilsimsa.git/commitdiff/00598f48ccb75136f5aedc2ab808d3da8ee742ff



More information about the pld-cvs-commit mailing list