Subject: pkg/25570: x11/vte fails to build with native fontconfig
To: None <>
From: Martin Husemann <>
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
>Originator:     Martin Husemann
>Release:        NetBSD 2.0E
System: NetBSD 2.0E NetBSD 2.0E (PORTER) #1: Fri May 7 00:03:09 CEST 2004 i386
Architecture: i386
Machine: i386

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

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.


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 @@
+#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,
 	if (pango_mask & PANGO_FONT_MASK_STYLE) {
 		style = pango_font_description_get_style(font_desc);