From c3ca2684da7b74cb31afc21c1780115b50ff2deb Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Thu, 21 Nov 2002 10:29:47 +0000 Subject: [PATCH] Make lang/p5-ePerl compiling again. Seen on: bento --- .../files/{patch-aa => patch-configure} | 13 +++++++++++-- lang/p5-ePerl/files/patch-eperl_parse.c | 18 ++++++++++++++++++ lang/p5-ePerl/files/patch-eperl_proto.h | 11 +++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) rename lang/p5-ePerl/files/{patch-aa => patch-configure} (76%) create mode 100644 lang/p5-ePerl/files/patch-eperl_parse.c create mode 100644 lang/p5-ePerl/files/patch-eperl_proto.h diff --git a/lang/p5-ePerl/files/patch-aa b/lang/p5-ePerl/files/patch-configure similarity index 76% rename from lang/p5-ePerl/files/patch-aa rename to lang/p5-ePerl/files/patch-configure index 1fb2377c53d9..53f118cd45b9 100644 --- a/lang/p5-ePerl/files/patch-aa +++ b/lang/p5-ePerl/files/patch-configure @@ -1,5 +1,14 @@ ---- configure Sun Aug 2 09:48:40 1998 -+++ configure.new Fri Jun 16 19:59:15 2000 +--- configure.orig Sun Aug 2 23:48:40 1998 ++++ configure Thu Nov 21 21:20:23 2002 +@@ -571,7 +571,7 @@ + if test "${with_perl+set}" = set; then + withval="$with_perl" + perlprog=$with_perl +-perlvers=`$perlprog -v | grep version | sed -e 's/.* version //' -e 's/ built.*//' -e 's/ with.*//'` ++perlvers=`$perlprog -e 'print $]'` + + else + TMPFILE=/tmp/x.$$ @@ -901,7 +901,6 @@ GCC=yes ac_test_CFLAGS="${CFLAGS+set}" diff --git a/lang/p5-ePerl/files/patch-eperl_parse.c b/lang/p5-ePerl/files/patch-eperl_parse.c new file mode 100644 index 000000000000..d9b506801d79 --- /dev/null +++ b/lang/p5-ePerl/files/patch-eperl_parse.c @@ -0,0 +1,18 @@ +--- eperl_parse.c.orig Thu Nov 21 21:27:34 2002 ++++ eperl_parse.c Thu Nov 21 21:27:42 2002 +@@ -298,6 +298,7 @@ + return NULL; + } + ++#ifdef NOTDEF + char *strnstr(char *buf, char *str, int n) + { + char *cp; +@@ -311,6 +312,7 @@ + } + return NULL; + } ++#endif + + char *strncasestr(char *buf, char *str, int n) + { diff --git a/lang/p5-ePerl/files/patch-eperl_proto.h b/lang/p5-ePerl/files/patch-eperl_proto.h new file mode 100644 index 000000000000..e2cc75386f2f --- /dev/null +++ b/lang/p5-ePerl/files/patch-eperl_proto.h @@ -0,0 +1,11 @@ +--- eperl_proto.h.orig Thu Nov 21 21:26:44 2002 ++++ eperl_proto.h Thu Nov 21 21:26:50 2002 +@@ -79,7 +79,7 @@ + extern char *ePerl_Efwrite(char *cpBuf, int nBuf, int cNum, char *cpOut); + extern char *ePerl_Cfwrite(char *cpBuf, int nBuf, int cNum, char *cpOut); + extern char *strnchr(char *buf, char chr, int n); +-extern char *strnstr(char *buf, char *str, int n); ++/*extern char *strnstr(char *buf, char *str, int n);*/ + extern char *strncasestr(char *buf, char *str, int n); + extern char *strndup(char *buf, int n); + extern char *ePerl_Bristled2Plain(char *cpBuf);