ports/59975: [patch] mail/milter-regex: Unreak w/ gcc33
Volker Stolz
stolz at i2.informatik.rwth-aachen.de
Fri Dec 5 14:10:21 UTC 2003
>Number: 59975
>Category: ports
>Synopsis: [patch] mail/milter-regex: Unreak w/ gcc33
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 05 06:10:18 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Volker Stolz
>Release: FreeBSD 4.9-RC i386
>Organization:
Lehrstuhl für 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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list