Subject: pkg/32316: The .pc filename needs to be fixed in builtin.mk of fonts/Xft2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rxg@myrealbox.com>
List: pkgsrc-bugs
Date: 12/16/2005 13:10:01
>Number:         32316
>Category:       pkg
>Synopsis:       The .pc filename needs to be fixed in builtin.mk of fonts/Xft2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 16 13:10:00 +0000 2005
>Originator:     Rui-Xiang Guo
>Release:        NetBSD 3.99.14
>Organization:
	
>Environment:
	
	
System: NetBSD hive 3.99.14 NetBSD 3.99.14 (HIVE) #0: Wed Dec 14 01:14:07 CST 2005 rxg@hive:/usr/obj/sys/arch/i386/compile/HIVE i386
Architecture: i386
Machine: i386
>Description:
	I used native X window(xsrc) and set USE_BUILTIN.Xft2=yes in
	/etc/mk.conf.
	But got problem when compiled firefox(and other pkgs which used
	buildlink to Xft2).
>How-To-Repeat:
	% cd /usr/pkgsrc/www/firefox && make
	[...]
checking for LC_MESSAGES... yes
checking for jpeg_destroy_compress in -ljpeg... yes
checking for png_get_valid in -lpng... yes
checking for gtk+-2.0 >= 1.3.7... yes
checking MOZ_GTK2_CFLAGS... -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0 -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/pkg/include/cairo -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include  
checking MOZ_GTK2_LIBS... -L/usr/pkg/lib -L/usr/X11R6/lib   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lfreetype -lz -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
checking for xft... gnome-config: not found
gnome-config: not found
Package xft was not found in the pkg-config search path. Perhaps you should add the directory containing `xft.pc' to the PKG_CONFIG_PATH environment variable No package 'xft' found
configure: error: Library requirements (xft) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
*** Error code 1

Stop.
[...]
	% ls /usr/X11R6/lib/pkgconfig
	fontconfig.pc   xcursor.pc      xft.pc

>Fix:
	use this patch
Index: builtin.mk
===================================================================
RCS file: /cvsroot/pkgsrc/fonts/Xft2/builtin.mk,v
retrieving revision 1.12
diff -b -u -r1.12 builtin.mk
--- builtin.mk  3 Jun 2005 19:13:35 -0000       1.12
+++ builtin.mk  16 Dec 2005 13:05:40 -0000
@@ -95,7 +95,7 @@
 
 .  if !empty(USE_BUILTIN.Xft2:M[yY][eE][sS])
 BUILDLINK_PREFIX.Xft2= ${X11BASE}
-BUILDLINK_FILES.Xft2+= lib/pkgconfig/Xft2.pc
+BUILDLINK_FILES.Xft2+= lib/pkgconfig/xft.pc
 
 USE_BUILTIN.Xrender=   yes
 USE_BUILTIN.fontconfig=        yes

>Unformatted: