Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/popt/Makefile,v retrieving revision 1.37 diff -u -r1.37 Makefile --- Makefile 1 Feb 2007 02:41:32 -0000 1.37 +++ Makefile 4 Apr 2007 07:13:48 -0000 @@ -7,7 +7,7 @@ PORTNAME= popt PORTVERSION= 1.7 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \ http://rpmfind.net/linux/rpm.org/rpm/dist/%SUBDIR%/ \ @@ -47,4 +47,10 @@ 's:if test ! -f ../rpm.c:if test "1" != "1":' \ ${WRKSRC}/configure +post-patch: +# Placate gcc 4.x. When updating, grep sources to make sure no +# illegal substitutions happen. + @${REINPLACE_CMD} -e 's|const char \*const|const char *|' \ + ${WRKSRC}/popt.[ch3] ${WRKSRC}/popthelp.c + .include