Subject: pkg/10946: pkgsrc/net/xchat does not build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <riz@boogers.sf.ca.us>
List: netbsd-bugs
Date: 09/04/2000 09:52:12
>Number:         10946
>Category:       pkg
>Synopsis:       pkgsrc/net/xchat does not build
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 04 09:53:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Rizzo
>Release:        pkgsrc-current as of 20000904
>Organization:
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz
>Environment:
	
System: NetBSD desktop.boogers.sf.ca.us 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (DESKTOP) #0: Sun Sep  3 11:46:11 PDT 2000     root@:/usr/src/sys/arch/i386/compile/DESKTOP i386


>Description:
	When building xchat as part of gnome in a fresh install, the 
	compile dies when it can't find "libintl.h", which is installed
	as part of the gettext package.  This is because (on my system),
	xchat's $PREFIX is /usr/X11R6, whereas gettext installed under
	/usr/pkg, and libintl.h is in /usr/pkg/include, which is not
	searched by default.

	The solution is to add "-I${LOCALBASE}/include" to CPPFLAGS when
	configure is run, so that /usr/pkg/include will be searched
	as well. (but it still works when $LOCALBASE==$X11BASE)

>How-To-Repeat:
	try to compile the pkgsrc/x11/gnome metapkg from a fresh install.
	It will puke when getting to pkgsrc/net/xchat .

>Fix:
	Apply the following patch in pkgsrc/net/xchat:


--- Makefile.orig	Mon Sep  4 09:42:48 2000
+++ Makefile	Mon Sep  4 09:37:05 2000
@@ -16,6 +16,8 @@
 USE_PERL5=	yes
 USE_X11BASE=	yes
 
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include"
+
 pre-configure:
 	@${TOUCH} ${WRKSRC}/stamp-h.in
 
>Release-Note:
>Audit-Trail:
>Unformatted: