[packages/perl-Text-Tokenizer] add missing include and prototype fixes

atler atler at pld-linux.org
Sat Aug 2 01:53:54 CEST 2025


commit 324c777f4585a614499e96560329ed9e613a0d7a
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Aug 2 01:53:27 2025 +0200

    add missing include and prototype fixes

 includes.patch           | 10 ++++++++++
 perl-Text-Tokenizer.spec |  4 ++++
 prototypes.patch         | 10 ++++++++++
 3 files changed, 24 insertions(+)
---
diff --git a/perl-Text-Tokenizer.spec b/perl-Text-Tokenizer.spec
index 1d9f925..582edb3 100644
--- a/perl-Text-Tokenizer.spec
+++ b/perl-Text-Tokenizer.spec
@@ -14,6 +14,8 @@ License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	51ca83879abbcf223ec0940f037eb51f
+Patch0:		includes.patch
+Patch1:		prototypes.patch
 URL:		http://search.cpan.org/dist/Text-Tokenizer/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -29,6 +31,8 @@ może być użyty do przetwarzania tokenów z pliku lub bufora.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..83d6d5f
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,10 @@
+--- Text-Tokenizer-0.4.6/lex.tokenizer_yy.c.orig	2011-11-21 10:22:02.000000000 +0100
++++ Text-Tokenizer-0.4.6/lex.tokenizer_yy.c	2025-08-02 01:47:40.922482137 +0200
+@@ -39,6 +39,7 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <stdlib.h>
++#include <unistd.h>
+ 
+ /* end standard C headers. */
+ 
diff --git a/prototypes.patch b/prototypes.patch
new file mode 100644
index 0000000..d755675
--- /dev/null
+++ b/prototypes.patch
@@ -0,0 +1,10 @@
+--- Text-Tokenizer-0.4.6/tokenizer.h.orig	2012-01-25 16:45:55.000000000 +0100
++++ Text-Tokenizer-0.4.6/tokenizer.h	2025-08-02 01:49:08.350224799 +0200
+@@ -137,6 +137,7 @@
+ /* destroy whole tokenizer*/
+ tok_bool tokenizer_destroy();
+ 
++tok_id tokenizer_new_strbuf(const char *buf, unsigned int len);
+ 
+ #ifdef __cplusplus
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Text-Tokenizer.git/commitdiff/324c777f4585a614499e96560329ed9e613a0d7a



More information about the pld-cvs-commit mailing list