FreeBSD Bugzilla – Attachment 64619 Details for
Bug 96013
[maintainer update] textproc/gsed: fix build on 4.X
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.43 KB, created by
Gabor Kovesdan
on 2006-04-18 17:20:16 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Gabor Kovesdan
Created:
2006-04-18 17:20:16 UTC
Size:
2.43 KB
patch
obsolete
>diff -ruN textproc/gsed.orig/Makefile textproc/gsed/Makefile >--- textproc/gsed.orig/Makefile Sat Apr 15 20:41:25 2006 >+++ textproc/gsed/Makefile Sat Apr 15 21:25:47 2006 >@@ -32,6 +32,14 @@ > PORTDOCS= AUTHORS BUGS COPYING COPYING.DOC NEWS README THANKS > DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} > >+.include <bsd.port.pre.mk> >+ >+# Required for gcc 2.95 since it is pre-C99 >+# and doesn't handle the 'bool' datatype properly. >+.if ${OSVERSION} < 500000 >+EXTRA_PATCHES= ${FILESDIR}/extrapatch-lib-regexec.c >+.endif >+ > post-patch: > @${REINPLACE_CMD} -e 's,^\* sed:,* CNU sed:,' \ > ${WRKSRC}/doc/config.texi >@@ -59,4 +67,4 @@ > test: > @cd ${WRKSRC}/testsuite; ${MAKE} check > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff -ruN textproc/gsed.orig/files/extrapatch-lib-regexec.c textproc/gsed/files/extrapatch-lib-regexec.c >--- textproc/gsed.orig/files/extrapatch-lib-regexec.c Wed Dec 31 21:00:00 1969 >+++ textproc/gsed/files/extrapatch-lib-regexec.c Sat Apr 15 21:19:56 2006 >@@ -0,0 +1,43 @@ >+# >+# Required for gcc 2.95 since it is pre-C99 >+# and doesn't handle the 'bool' datatype properly. >+# >+--- lib/regexec.c.orig Sat Apr 15 20:53:36 2006 >++++ lib/regexec.c Sat Apr 15 21:17:03 2006 >+@@ -3296,8 +3296,7 @@ >+ reg_errcode_t err; >+ int i, j, ch, need_word_trtable = 0; >+ bitset_word_t elem, mask; >+- bool dests_node_malloced = false; >+- bool dest_states_malloced = false; >++ int dests_node_malloced = 0, dest_states_malloced = 0; >+ int ndests; /* Number of the destination states from `state'. */ >+ re_dfastate_t **trtable; >+ re_dfastate_t **dest_states = NULL, **dest_states_word, **dest_states_nl; >+@@ -3322,7 +3321,7 @@ >+ dests_alloc = re_malloc (struct dests_alloc, 1); >+ if (BE (dests_alloc == NULL, 0)) >+ return 0; >+- dests_node_malloced = true; >++ dests_node_malloced = 1; >+ } >+ dests_node = dests_alloc->dests_node; >+ dests_ch = dests_alloc->dests_ch; >+@@ -3371,7 +3370,7 @@ >+ free (dests_alloc); >+ return 0; >+ } >+- dest_states_malloced = true; >++ dest_states_malloced = 1; >+ } >+ dest_states_word = dest_states + ndests; >+ dest_states_nl = dest_states_word + ndests; >+@@ -3576,7 +3575,7 @@ >+ { >+ if (constraint & NEXT_NEWLINE_CONSTRAINT) >+ { >+- bool accepts_newline = bitset_contain (accepts, NEWLINE_CHAR); >++ int accepts_newline = bitset_contain (accepts, NEWLINE_CHAR); >+ bitset_empty (accepts); >+ if (accepts_newline) >+ bitset_set (accepts, NEWLINE_CHAR);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 96013
: 64619