Subject: pkg/7396: tk pkg does not find tcl
To: None <>
From: None <>
List: netbsd-bugs
Date: 04/15/1999 13:53:05
>Number:         7396
>Category:       pkg
>Synopsis:       tk pkg looks for tcl at the wrong location
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 15 13:50:01 1999
>Originator:     Ingolf Koch
Beste Kneipe in Jena-Ost
>Release:        1.3.3
System: NetBSD maus 1.3.3 NetBSD 1.3.3 (MAUS) #0: Sat Feb 13 23:22:50 MET 1999 ingolf@maus:/usr/obj/sys/arch/amiga/compile/MAUS amiga

	The tcl8.0.5 package (from /usr/pkgsrc/lang/tcl80) is installed
in /usr/pkg.

The configure script of the tk8.0.5 package (from /usr/pkgsrc/x11/tk80)
looks for tcl in ${prefix}/lib/tcl8.0 with a ${prefix} of /usr/X11R6
as it is going to be installed there. So it does not find tcl.

	Make sure you have neither tcl nor tk installed on your system
(especially no tcl in /usr/X11R6).

Install tcl8.0.5 (from /usr/pkgsrc/lang/tcl80), and then try to
install tk8.0.5 (from /usr/pkgsrc/x11/tk80). Watch the configure
script fail.

	A first step is to add
or something like that to CONFIGURE_ARGS in x11/tk80/Makefile.

Unfortunately, this does not cure all problems. The patches
modify some variables in the configure script such that information
(taken from sourcing /usr/pkg/lib/tcl8.0/ on where
to find tcl scripts, libraries, etc. is discarded. So configure
still fails a but later.

I do not have a complete fix at the moment.