From owner-freebsd-tcltk@FreeBSD.ORG Thu Mar 13 02:42:14 2014 Return-Path: Delivered-To: tcltk@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A7F5B02; Thu, 13 Mar 2014 02:42:14 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9F9A1699; Thu, 13 Mar 2014 02:42:13 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.34]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id s2D2fr1F020798 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 13 Mar 2014 13:11:58 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: multipart/signed; boundary="Apple-Mail=_176A1B19-945B-4623-B1EE-E58057155996"; protocol="application/pgp-signature"; micalg=pgp-sha1 Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Date: Thu, 13 Mar 2014 13:11:51 +1030 Subject: Tk86 not loadable via package require To: tcltk@FreeBSD.org X-Mailer: Apple Mail (2.1874) X-Spam-Score: -2.51 () ALL_TRUSTED,BAYES_00,T_RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: mm@FreeBSD.org X-BeenThere: freebsd-tcltk@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Tcl/Tk discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2014 02:42:14 -0000 --Apple-Mail=_176A1B19-945B-4623-B1EE-E58057155996 Content-Type: multipart/mixed; boundary="Apple-Mail=_1697F2AD-2E20-4CE5-B699-44E2BE6CF715" --Apple-Mail=_1697F2AD-2E20-4CE5-B699-44E2BE6CF715 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I installed tcl86 and tk86 but I can't load Tk from tclsh86, eg.. [mdtest 2:27] ~ >tclsh8.6 tclsh8.6 [/local0~]package require Tk can't find package Tk while evaluating {package require Tk} It turns out that this is due to a broken = /usr/local/lib/tk8.6/pkgIndex.tcl It is.. if {[catch {package present Tcl 8.6.0}]} return package ifneeded Tk 8.6.1 [list load [file normalize [file join $dir .. = libtk86.so.1]] Tk] but the tcl86 reports as Tcl 8.6b2 hence the package present fails and = Tk is never loaded. It can be worked around by changing the 8.6.0 to 8.6b2 with the attached = patch. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_1697F2AD-2E20-4CE5-B699-44E2BE6CF715 Content-Disposition: attachment; filename=fix-package-require.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="fix-package-require.diff" Content-Transfer-Encoding: 7bit diff -ur /usr/ports/x11-toolkits/tk86/files/patch-unix::Makefile.in tk86/files/patch-unix::Makefile.in --- /usr/ports/x11-toolkits/tk86/files/patch-unix::Makefile.in 2014-02-03 11:03:15.000000000 +0000 +++ tk86/files/patch-unix::Makefile.in 2014-03-13 02:39:59.000000000 +0000 @@ -1,5 +1,5 @@ ---- Makefile.in.orig 2013-09-17 14:25:13.000000000 +0200 -+++ Makefile.in 2014-02-03 12:02:57.000000000 +0100 +--- Makefile.in.orig 2013-09-17 12:25:13.000000000 +0000 ++++ Makefile.in 2014-03-13 02:39:39.000000000 +0000 @@ -64,6 +64,8 @@ # Directory in which to install the include file tk.h: @@ -59,6 +59,15 @@ @for i in "$(LIB_INSTALL_DIR)" "$(BIN_INSTALL_DIR)" \ "$(PKG_INSTALL_DIR)" "$(CONFIG_INSTALL_DIR)" ; \ do \ +@@ -727,7 +736,7 @@ + echo "Creating package index $(PKG_INDEX)"; \ + rm -f "$(PKG_INDEX)"; \ + (\ +- echo "if {[catch {package present Tcl 8.6.0}]} return";\ ++ echo "if {[catch {package present Tcl 8.6b2}]} return";\ + relative=`echo | awk '{ORS=" "; split("$(TK_PKG_DIR)",a,"/"); for (f in a) {print ".."}}'`;\ + if test "x$(DLL_INSTALL_DIR)" != "x$(BIN_INSTALL_DIR)"; then \ + echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file normalize [file join \$$dir $${relative}$(TK_LIB_FILE)]] Tk]";\ @@ -744,6 +753,10 @@ @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/" @@INSTALL_LIB@ --Apple-Mail=_1697F2AD-2E20-4CE5-B699-44E2BE6CF715 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_1697F2AD-2E20-4CE5-B699-44E2BE6CF715-- --Apple-Mail=_176A1B19-945B-4623-B1EE-E58057155996 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFTIRrv5ZPcIHs/zowRAkQMAJwNjvYp0ypfIaoo0Y+wB+rV6O+5dgCgmK0g fYdjscHI8+/LlbkkjX1Dz5c= =VnHl -----END PGP SIGNATURE----- --Apple-Mail=_176A1B19-945B-4623-B1EE-E58057155996--