Subject: Re: mkfontscale and fc-cache hang on OpenBSD
To: Geert Hendrickx <ghen@telenet.be>
From: HIRAMATSU Yoshifumi <hiramatu@boreas.dti.ne.jp>
List: tech-pkg
Date: 10/08/2005 20:24:09
--Multipart_Sat_Oct__8_20:24:08_2005-1
Content-Type: text/plain; charset=US-ASCII

Hi,

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 <ghen@telenet.be> 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 x.org one we use in pkgsrc).  
> 
> 	Geert

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

-- 
// HIRAMATSU Yoshifumi
// hiramatu@boreas.dti.ne.jp


--Multipart_Sat_Oct__8_20:24:08_2005-1
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
 .endif
 
+.if ${OPSYS} == "OpenBSD"
+# Force to use src/base/ftsystem.c
+CONFIGURE_ENV+=		ac_cv_func_mmap_fixed_mapped=no
+.endif
+
 post-configure:
 	cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
 .if ${OPSYS} == "IRIX"

--Multipart_Sat_Oct__8_20:24:08_2005-1--