Subject: pkg/21085: tcl-fbsql/Makefile semi-broken
To: None <>
From: None <>
List: netbsd-bugs
Date: 04/10/2003 07:01:56
>Number:         21085
>Category:       pkg
>Synopsis:       tcl-fbsql/Makefile semi-broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 10 04:02:00 PDT 2003
>Originator:     Dan McMahill
>Release:        1.6
System: NetBSD cowboy-burt 1.4.3A NetBSD 1.4.3A (COWBOY-BURT) #1: Fri Jul 20 06:58:40 EDT 2001 dan@cowboy-burt:/mnt/syssrc-1-4/sys/arch/sparc/compile/COWBOY-BURT sparc

a recent change to tcl-fbsql/Makefile has make this start showing up in   
the readme generation:

Can't open /usr/pkg/lib/
make: "/ftp/pub/NetBSD/NetBSD-current/pkgsrc/databases/tcl-fbsql/Makefile"
line 31: warning: ". /usr/pkg/lib/; echo $TCL_PACKAGE_PATH" 
returned non-zero status

thats from:
# Need here for $PREFIX
TCL_DIR!=               . ${PREFIX}/lib/; echo  $$TCL_PACKAGE_PATH
perhaps this should be protected with
.if exists(${PREFIX}/lib/

You get lots of the above messages when you try and build the package if  
tcl hasn't been installed yet.

It also seems like there may be some PLIST problems because  
is used to figure out where to install to:    

        @-${MKDIR} ${TCL_DIR}

but PLIST is hard coded:


without TCL installed,
cd databases/tcl-fbsql && make show-var VARNAME=PKGNAME

protect the TCL_DIR!= with .if exists() and add TCL_DIR to PLIST_SUBST (without
the PREFIX part).