Subject: pkg/6757: tclsh not installed by tcl80
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@proven.weird.com>
List: netbsd-bugs
Date: 01/07/1999 11:29:18
>Number:         6757
>Category:       pkg
>Synopsis:       tclsh not installed by tcl80
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan  7 08:35:01 1999
>Last-Modified:
>Originator:     Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release:        pkgsrc sup Wed Jan  6 08:05:41 EST 1999
>Environment:

System: NetBSD proven 1.3I NetBSD 1.3I (GENERIC) #1: Thu Dec 3 16:23:20 EST 1998 root@woffi.planix.com:/local1/netbsd/netbsd-current/src/sys/arch/i386/compile/GENERIC i386

>Description:

	Some third party software, such as PostgreSQL, will look for
	the binary "tclsh" as an indication that TCL is installed,
	however the pkgsrc install of TCL-8.0 only installs tclsh8.0.

>How-To-Repeat:

	by examination of PostgreSQL's configure.in

>Fix:

	apply the following patch (is there some way for pkg_add to
	create [and pkg_delete to remove] this link?)

Index: Makefile
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/lang/tcl80/Makefile,v
retrieving revision 1.1.1.8
diff -c -r1.1.1.8 pkgsrc/lang/tcl80/Makefile
*** pkgsrc/lang/tcl80/Makefile	1998/10/02 17:46:17	1.1.1.8
--- pkgsrc/lang/tcl80/Makefile	1999/01/07 16:23:10
***************
*** 20,23 ****
--- 20,27 ----
  test:
  	cd ${WRKSRC} && ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test
  
+ post-install:
+ 	@rm -f ${PREFIX}/tclsh
+ 	ln -s tclsh8.0 ${PREFIX}/tclsh
+ 
  .include "../../mk/bsd.pkg.mk"
>Audit-Trail:
>Unformatted: