Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 1998 04:32:22 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        perlsta@sunyit.edu
Cc:        ports@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: what's up with this TCL port error?
Message-ID:  <199801281232.EAA06006@silvia.HIP.Berkeley.EDU>
In-Reply-To: <199801262227.WAA27084@fang.cs.sunyit.edu> (perlsta@sunyit.edu)

next in thread | previous in thread | raw e-mail | index | archive | help
 * >  * ===>  rumba-0.4 : You have an old tcl installation on your machine.
 * Remove
 * >  * everything that matches /usr/local/*/*tcl* first.

 * no:
 * 
 * # cd /usr/local/include/
 * # ls -l tcl.h
 * ls: tcl.h: No such file or directory

Actually there is also /usr/local/lib/tclConfig.h that triggers the
check.  Maybe that's why.

Anyway, here's an updated version for all to test.  It will now tell
you exactly which file it's complaining about.  It will only tell you
one at a time, but I didn't want to overcomplicate bsd.port.mk trying
to say too many things at the same time.

Satoshi
-------
Index: bsd.port.mk
===================================================================
RCS file: /usr/cvs/src/share/mk/bsd.port.mk,v
retrieving revision 1.227.2.30
diff -u -r1.227.2.30 bsd.port.mk
--- bsd.port.mk	1998/01/02 10:38:06	1.227.2.30
+++ bsd.port.mk	1998/01/28 09:57:36
@@ -756,6 +759,23 @@
 # Don't build a port if it's broken.
 ################################################################
 
+OLDSYSTCL!=	${ECHO} /usr/include/tcl.h /usr/lib/libtcl??.so.*.*
+OLDTCL!=	${ECHO} ${LOCALBASE}/include/tcl.h ${LOCALBASE}/lib/tclConfig.sh
+OLDTK!=		${ECHO} ${LOCALBASE}/include/tk.h ${LOCALBASE}/lib/tkConfig.sh
+
+.if !defined(NO_IGNORE)
+.for file in ${OLDSYSTCL} ${OLDTCL}
+.if exists(${file})
+IGNORE=	": You have an old file \(${file}\) that could cause problems for some ports to compile.  Please remove it and try again.  You may have to reinstall tcl from the ports tree."
+.endif
+.endfor
+.for file in ${OLDTK}
+.if exists(${file})
+IGNORE=	": You have an old file \(${file}\) that could cause problems for some ports to compile.  Please remove it and try again.  You may have to reinstall tk from the ports tree afterwards."
+.endif
+.endfor
+.endif
+
 .if !defined(NO_IGNORE)
 .if (defined(IS_INTERACTIVE) && defined(BATCH))
 IGNORE=	"is an interactive port"
@@ -771,12 +791,6 @@
 IGNORE=	"is restricted: ${RESTRICTED}"
 .elif (defined(USE_X11) && !exists(${X11BASE}))
 IGNORE=	"uses X11, but ${X11BASE} not found"
-.elif exists(/usr/include/tcl.h)
-IGNORE=	": You have an old tcl installation on your machine.  Remove everything that matches '/usr/*/*tcl*' first"
-.elif exists(${LOCALBASE}/include/tcl.h) || exists(${LOCALBASE}/lib/tclConfig.sh)
-IGNORE=	": You have an old tcl installation on your machine.  Remove everything that matches '${PREFIX}/*/*tcl*' first"
-.elif exists(${LOCALBASE}/include/tk.h) || exists(${LOCALBASE}/lib/tkConfig.sh)
-IGNORE=	": You have an old tk installation on your machine.  Remove everything that matches '${PREFIX}/*/*tk*' first"
 .elif defined(BROKEN)
 IGNORE=	"is marked as broken: ${BROKEN}"
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801281232.EAA06006>