[packages/perl-Locale-Hebrew] add missing include, prototype and type fixes

atler atler at pld-linux.org
Fri Aug 1 00:39:11 CEST 2025


commit c1130036297e8ad364137da2feddd7454eee57c8
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Aug 1 00:38:18 2025 +0200

    add missing include, prototype and type fixes

 includes.patch          | 10 ++++++++++
 perl-Locale-Hebrew.spec |  6 ++++++
 prototypes.patch        | 11 +++++++++++
 types.patch             | 11 +++++++++++
 4 files changed, 38 insertions(+)
---
diff --git a/perl-Locale-Hebrew.spec b/perl-Locale-Hebrew.spec
index 4594ed5..737b546 100644
--- a/perl-Locale-Hebrew.spec
+++ b/perl-Locale-Hebrew.spec
@@ -15,6 +15,9 @@ Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Locale/Locale-Hebrew-%{version}.tar.gz
 # Source0-md5:	424209b23bf423f1923f9b24b5ae2179
 Patch0:		format-security.patch
+Patch1:		includes.patch
+Patch2:		prototypes.patch
+Patch3:		types.patch
 URL:		https://metacpan.org/release/Locale-Hebrew
 %{?with_tests:BuildRequires:	perl-Encode}
 BuildRequires:	perl-Module-Install
@@ -41,6 +44,9 @@ Domyślnie eksportowana jest jedna funkcja - hebrewflip.
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..fa2ea6c
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,10 @@
+--- Locale-Hebrew-1.05/bidi.c.orig	2025-07-31 23:59:30.397624379 +0200
++++ Locale-Hebrew-1.05/bidi.c	2025-08-01 00:17:10.076983097 +0200
+@@ -7,6 +7,7 @@
+ */
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ 
+ #define ASSERT(x) if (!(x)) { fprintf(stderr, "assert failed: %s\n", #x); exit(-1);} else ;
+ #define TCHAR   unsigned char
diff --git a/prototypes.patch b/prototypes.patch
new file mode 100644
index 0000000..b8e9c6f
--- /dev/null
+++ b/prototypes.patch
@@ -0,0 +1,11 @@
+--- Locale-Hebrew-1.05/Hebrew.xs.orig	2004-09-17 21:16:41.000000000 +0200
++++ Locale-Hebrew-1.05/Hebrew.xs	2025-08-01 00:33:20.504223871 +0200
+@@ -7,6 +7,8 @@
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
++
++void bidimain(char *string, int cch);
+ #ifdef __cplusplus
+ }
+ #endif
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..42676e4
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- Locale-Hebrew-1.05/Hebrew.xs.orig	2004-09-17 21:16:41.000000000 +0200
++++ Locale-Hebrew-1.05/Hebrew.xs	2025-08-01 00:33:20.504223871 +0200
+@@ -19,7 +19,7 @@
+ _hebrewflip(s)
+ SV * s
+ CODE:
+-    int l;
++    STRLEN l;
+     char *src, *dst;
+     SV *r;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Locale-Hebrew.git/commitdiff/c1130036297e8ad364137da2feddd7454eee57c8



More information about the pld-cvs-commit mailing list