Subject: pkg/25570: x11/vte fails to build with native fontconfig
To: None <gnats-bugs@gnats.NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: pkgsrc-bugs
Date: 05/14/2004 17:55:08
>Number:         25570
>Category:       pkg
>Synopsis:       x11/vte fails to build with native fontconfig
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 14 15:56:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 2.0E
>Organization:
>Environment:
System: NetBSD night-porter.duskware.de 2.0E NetBSD 2.0E (PORTER) #1: Fri May 7 00:03:09 CEST 2004 martin@night-porter.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

My /etc/mk.conf includes:

# use as much of base xsrc install as possible
PREFER_NATIVE=	MesaLib Xft2 Xrandr Xrender expat fontconfig	\
		freetype2 glu randrext render xcursor yes
PREFER_PKGSRC=	no

This is because I realy hate to have two pieces of the same software installed,
that disagree on their configuration thus giving unpredictable results. 

So my build of x11/vte is trying to build against the native fontconfig.h.

It fails, since FC_WIDTH is apparently only available in newer versions.

>How-To-Repeat:
s/a

>Fix:
Add below patch?

--- src/vtefc.c.orig	2004-04-20 07:16:56.000000000 +0200
+++ src/vtefc.c	2004-05-14 17:42:43.000000000 +0200
@@ -158,11 +158,14 @@
 				    _vte_fc_weight_from_pango_weight(weight));
 	}
 
+#ifdef FC_WIDTH
+	/* older fontconfig's don't have FC_WIDTH */
 	if (pango_mask & PANGO_FONT_MASK_STRETCH) {
 		stretch = pango_font_description_get_stretch(font_desc);
 		FcPatternAddInteger(pattern, FC_WIDTH,
 				    _vte_fc_width_from_pango_stretch(stretch));
 	}
+#endif
 
 	if (pango_mask & PANGO_FONT_MASK_STYLE) {
 		style = pango_font_description_get_style(font_desc);

>Release-Note:
>Audit-Trail:
>Unformatted: