Subject: Re: mkfontscale and fc-cache hang on OpenBSD
To: Geert Hendrickx <>
From: HIRAMATSU Yoshifumi <>
List: tech-pkg
Date: 10/08/2005 20:24:09
Content-Type: text/plain; charset=US-ASCII


Thanks for the hint. I made new patch for graphics/freetype2.

pkgsrc's freetype2 use freetype2/builds/unix/ftsystem.c instead of
src/base/ftsystem.c, but FT_Stream_Open function defined in
builds/unix/ftsystem.c doesn't work properly on OepnBSD.

So this patch tries to tell configure script to use src/base/ftsystem.c

At Fri, 7 Oct 2005 11:52:36 +0200,
Geert Hendrickx <> wrote:
> Could you first look up how OpenBSD solved this problem, if they have it,
> in their XF4/ tree?  They didn't modify mkfontscale.c (theirs is identical
> to the one we use in pkgsrc).  
> 	Geert

Actually, OpenBSD don't have this problem. OpenBSD use freetype2 which
comes with, and doesn't use builds/unix/ftsystem.c at
the beginning.

// HIRAMATSU Yoshifumi

Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="freetype2.diff"
Content-Transfer-Encoding: 7bit

diff -buNr freetype2.orig/Makefile freetype2/Makefile
--- freetype2.orig/Makefile	Sat Oct  8 21:04:27 2005
+++ freetype2/Makefile	Sun Oct  9 04:42:10 2005
@@ -57,6 +57,11 @@
 CFLAGS+=	-fno-strict-aliasing
+.if ${OPSYS} == "OpenBSD"
+# Force to use src/base/ftsystem.c
+CONFIGURE_ENV+=		ac_cv_func_mmap_fixed_mapped=no
 	cd ${WRKSRC} && ${LN} -s builds/unix/
 .if ${OPSYS} == "IRIX"