From owner-svn-ports-head@FreeBSD.ORG Wed Jun 12 07:41:35 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9D786DCD; Wed, 12 Jun 2013 07:41:35 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7EA27176C; Wed, 12 Jun 2013 07:41:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5C7fZoP095523; Wed, 12 Jun 2013 07:41:35 GMT (envelope-from mandree@svn.freebsd.org) Received: (from mandree@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5C7fYZn095520; Wed, 12 Jun 2013 07:41:34 GMT (envelope-from mandree@svn.freebsd.org) Message-Id: <201306120741.r5C7fYZn095520@svn.freebsd.org> From: Matthias Andree Date: Wed, 12 Jun 2013 07:41:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320668 - in head/mail: bogofilter-sqlite bogofilter-tc bogofilter/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2013 07:41:35 -0000 Author: mandree Date: Wed Jun 12 07:41:34 2013 New Revision: 320668 URL: http://svnweb.freebsd.org/changeset/ports/320668 Log: Pull in patch from SVN in an attempt to fix flex-related -CURRENT build issues. While here, fix bogofilter slave port's Makefile banners. Added: head/mail/bogofilter/files/patch-SVNr6988-lexer (contents, props changed) Modified: head/mail/bogofilter-sqlite/Makefile head/mail/bogofilter-tc/Makefile Modified: head/mail/bogofilter-sqlite/Makefile ============================================================================== --- head/mail/bogofilter-sqlite/Makefile Wed Jun 12 07:18:21 2013 (r320667) +++ head/mail/bogofilter-sqlite/Makefile Wed Jun 12 07:41:34 2013 (r320668) @@ -1,9 +1,5 @@ -# New ports collection makefile for: bogofilter-sqlite -# Date created: 2005-05-24 -# Whom: Matthias Andree -# +# Created by: Matthias Andree # $FreeBSD$ -# PORTNAME= bogofilter PORTREVISION= 0 Modified: head/mail/bogofilter-tc/Makefile ============================================================================== --- head/mail/bogofilter-tc/Makefile Wed Jun 12 07:18:21 2013 (r320667) +++ head/mail/bogofilter-tc/Makefile Wed Jun 12 07:41:34 2013 (r320668) @@ -1,9 +1,5 @@ -# New ports collection makefile for: bogofilter-tc -# Date created: 2008-08-29 -# Whom: Zach Thompson -# +# Created by: Zach Thompson # $FreeBSD$ -# PORTNAME= bogofilter PORTREVISION= 0 Added: head/mail/bogofilter/files/patch-SVNr6988-lexer ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/bogofilter/files/patch-SVNr6988-lexer Wed Jun 12 07:41:34 2013 (r320668) @@ -0,0 +1,113 @@ +| Upstream SVN revision 6988, without "NEWS": +| +Index: src/msgcounts.c +=================================================================== +--- src/msgcounts.c (Revision 6987) ++++ src/msgcounts.c (Revision 6988) +@@ -85,3 +85,9 @@ + + msg_count_header_len= strlen(msg_count_header); + } ++ ++long msg_count_get_token(byte **output) ++{ ++ *output = (byte *)msg_count_text; ++ return msg_count_leng; ++} +Index: src/msgcounts.h +=================================================================== +--- src/msgcounts.h (Revision 6987) ++++ src/msgcounts.h (Revision 6988) +@@ -30,4 +30,6 @@ + void set_msg_counts(u_int32_t good, u_int32_t spam); + void set_msg_counts_from_str(char *str); + ++long msg_count_get_token(byte **output); ++ + #endif /* MSGCOUNTS_H */ +Index: src/lexer_v3.l +=================================================================== +--- src/lexer_v3.l (Revision 6987) ++++ src/lexer_v3.l (Revision 6988) +@@ -241,7 +241,7 @@ + ^Content-(Transfer-Encoding|Type|Disposition):{MTYPE} { mime_content(yy_text()); skip_to(':'); header(); return TOKEN; } + + ^Message-ID:.* { /* save token for logging */ +- int off = 11; ++ unsigned long off = 11; + while(isspace((unsigned char)yytext[off]) && off < yyleng) + off++; + set_msg_id((unsigned char *)(yytext+off), yyleng-off); +@@ -470,6 +470,12 @@ + #endif + } + ++long lexer_v3_get_token(byte **output) ++{ ++ *output = (byte *)yytext; ++ return yyleng; ++} ++ + /* + * The following sets edit modes for GNU EMACS + * Local Variables: +Index: src/token.c +=================================================================== +--- src/token.c (Revision 6987) ++++ src/token.c (Revision 6988) +@@ -205,8 +205,7 @@ + + cls = (*lexer->yylex)(); + +- token->leng = (uint) *lexer->yyleng; +- token->u.text = (byte *) *lexer->yytext; ++ token->leng = lexer->get_parser_token(&token->u.text); + Z(token->u.text[token->leng]); /* for easier debugging - removable */ + + leng = token->leng; +Index: src/lexer.c +=================================================================== +--- src/lexer.c (Revision 6987) ++++ src/lexer.c (Revision 6988) +@@ -43,14 +43,12 @@ + + static lexer_t v3_lexer = { + yylex, +- &yytext, +- &yyleng ++ lexer_v3_get_token + }; + + lexer_t msg_count_lexer = { + read_msg_count_line, +- &msg_count_text, +- &msg_count_leng ++ msg_count_get_token + }; + + /* Function Prototypes */ +Index: src/lexer.h +=================================================================== +--- src/lexer.h (Revision 6987) ++++ src/lexer.h (Revision 6988) +@@ -47,8 +47,7 @@ + + typedef struct lexer_s { + yylex_t *yylex; +- char **yytext; +- int *yyleng; /* DO NOT EVEN CONSIDER MAKING THIS SIZE_T! */ ++ long (*get_parser_token)(byte **data); + } lexer_t; + + extern lexer_t *lexer; +@@ -56,9 +55,8 @@ + + /* in lexer_v3.l */ + extern token_t yylex(void); +-extern int yyleng; +-extern char * yytext; + extern void lexer_v3_init(FILE *fp); ++extern long lexer_v3_get_token(byte **output); + + /* in lexer_v?.c */ + extern char yy_get_state(void);