In file included from ./builds/unix/ftconfig.h:42,
from /usr/ports/print/freetype2/work/freetype-2.3.7/src/base/ftinit.c:41:
/usr/ports/print/freetype2/work/freetype-2.3.7/include/freetype/config/ftoption.h:462:1: warning: "TT_CONFIG_OPTION_BYTECODE_INTERPRETER" redefined
<command line>:4:1: warning: this is the location of the previous definition
The port Makefile is causing this situation due to a bug.
The pre-patch section comments out #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER in
include/freetype/config/ftoption.h (when WITHOUT_TTF_BYTECODE_ENABLED is not
defined by the user), but then earlier in the Makefile, it re-enables it:
.if !defined(WITHOUT_TTF_BYTECODE_ENABLED)
CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
.endif
The solution is to remove the CFLAGS+=-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
piece of the Makefile.
>How-To-Repeat:
Build print/freetype2 normally -- make sure you DO NOT have
WITHOUT_TTF_BYTECODE_ENABLED=yes anywhere
>Fix:
Below is the attached patch. I'd commit this myself, but we're in a
code freeze, and I also don't want to offend any of the gnome@ folks.
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/print/freetype2/Makefile,v
retrieving revision 1.82
diff -u -r1.82 Makefile
--- Makefile 2 Jul 2008 19:58:12 -0000 1.82
+++ Makefile 11 Sep 2008 09:47:00 -0000
@@ -32,10 +32,6 @@
CONFIGURE_ARGS= --disable-nls
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
-.if !defined(WITHOUT_TTF_BYTECODE_ENABLED)
-CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
-.endif
-
.if defined(WITH_LCD_FILTERING)
CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
.endif
Assuming gnome@ gives the thumbs up, I can commit this. I've tested
it when using WITHOUT_TTF_BYTECODE_ENABLED=yes and without; the
REINPLACE_CMD part of pre-patch does the right thing altogether.
>Release-Note:
>Audit-Trail:
>Unformatted:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome
Responsible-Changed-By: edwin
Responsible-Changed-When: Thu Sep 11 10:20:13 UTC 2008
Responsible-Changed-Why:
Over to maintainer (via the GNATS Auto Assign Tool)