From stolz@i2.informatik.rwth-aachen.de  Fri Dec  5 06:07:33 2003
Return-Path: <stolz@i2.informatik.rwth-aachen.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 35FD316A4CE; Fri,  5 Dec 2003 06:07:33 -0800 (PST)
Received: from atlas.informatik.rwth-aachen.de (atlas.Informatik.RWTH-Aachen.DE [137.226.194.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 9FA0C43F75; Fri,  5 Dec 2003 06:07:30 -0800 (PST)
	(envelope-from stolz@i2.informatik.rwth-aachen.de)
Received: from menelaos.informatik.rwth-aachen.de (menelaos.Informatik.RWTH-Aachen.DE [137.226.194.73])
	by atlas.informatik.rwth-aachen.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5-michaelw-20030918) with ESMTP id hB5E7Te06049;
	Fri, 5 Dec 2003 15:07:29 +0100
Received: (from stolz@localhost)
	by menelaos.informatik.rwth-aachen.de (8.12.9p2/8.12.9/Submit) id hB5E7TY7076964;
	Fri, 5 Dec 2003 15:07:29 +0100 (CET)
	(envelope-from stolz)
Message-Id: <200312051407.hB5E7TY7076964@menelaos.informatik.rwth-aachen.de>
Date: Fri, 5 Dec 2003 15:07:29 +0100 (CET)
From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Reply-To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: trevor@freebsd.org
Subject: [patch] mail/milter-regex: Unreak w/ gcc33
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59975
>Category:       ports
>Synopsis:       [patch] mail/milter-regex: Unreak w/ gcc33
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trevor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 05 06:10:18 PST 2003
>Closed-Date:    Tue Dec 09 10:42:59 PST 2003
>Last-Modified:  Tue Dec 09 10:42:59 PST 2003
>Originator:     Volker Stolz
>Release:        FreeBSD 4.9-RC i386
>Organization:
Lehrstuhl fr Informatik II
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-RC FreeBSD 4.9-RC #10: Tue Oct 7 12:32:25 CEST 2003 root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386


>Description:
Somehow math.h:log() is visible, causing a clash. use REINPLACE to rename
offending function.
>How-To-Repeat:
http://bento.freebsd.org/errorlogs/i386-5-latest/milter_regex-0.6.log
>Fix:
--- Makefile.orig	Fri Dec  5 14:22:23 2003
+++ Makefile	Fri Dec  5 15:03:14 2003
@@ -18,6 +18,8 @@
 MAN8=		milter-regex.8
 PLIST=		${WRKDIR}/pkg-plist
 
+USE_REINPLACE=	YES
+
 pre-everything::
 .if !exists(/usr/lib/libmilter.a)
 	${ECHO_CMD} "Fatal: milter required, see instructions in DESCR"
@@ -27,6 +29,7 @@
 post-patch:
 	${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
 	${SED} -E "s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}:g;s:-lpthread:${PTHREAD_LIBS}:g" < ${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e "s/[[:<:]]log(/mylog(/g" ${WRKSRC}/milter-regex.c ${WRKSRC}/rules.c
 
 pre-install:
 	${ECHO_CMD} libexec/milter-regex > ${PLIST}
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->trevor 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Dec 5 06:11:56 PST 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59975 
State-Changed-From-To: open->closed 
State-Changed-By: trevor 
State-Changed-When: Tue Dec 9 10:42:47 PST 2003 
State-Changed-Why:  
committed--thanks, Volker 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59975 
>Unformatted:
