Subject: pkg/18564: If gtk is compiled without xpgkwedge gnome-libs compilation fails
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kivinen@ssh.fi>
List: netbsd-bugs
Date: 10/07/2002 03:45:28
>Number:         18564
>Category:       pkg
>Synopsis:       If gtk is compiled without xpgkwedge gnome-libs compilation fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 06 17:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tero Kivinen
>Release:        NetBSD 1.6I
>Organization:
SSH Communications Security
>Environment:
System: NetBSD haste.acr.fi 1.6I NetBSD 1.6I (HASTE) #0: Sat Sep 28 01:42:49 EEST 2002 kivinen@haste.acr.fi:/usr/src/sys/arch/i386/compile/HASTE i386
Architecture: i386
Machine: i386
>Description:

	If x11/gtk is compiled before xpkgwedge is installed then when
	trying to compile x11/gnome-libs will fail, because it
	will install xpkgwedge and after that the .buildlink system
	will not find gtk headers and libraries as it modifies the
	/usr/X11R6/include properly given by the gtk-config to
	/usr/pkg/include. 

>How-To-Repeat:

	pkg_delete xpkgwedge
	cd /usr/pkgsrc/x11/gtk
	make update
	cd /usr/pkgsrc/x11/gnome-libs
	make

	The make will instal xpkgwedge (required by gnome-libs) and
	then the configure of the gnome-libs will fail, as it cannot
	find working gtk. 

>Fix:

	I think the easiest fix would be to make gtk to require also
	xpkgwedge, because if that is installed before gtk is
	installed then it will install its stuff to /usr/pkg and
	gnome-libs will find it there. Other option is to modify the
	buildlink system so that it uses "pkg_info -f gtk+ | grep CWD"
	or similar to find out if the gtk+ is installed to /usr/X11R6
	or /usr/pkg. 
>Release-Note:
>Audit-Trail:
>Unformatted: