Subject: pkg/37476: Expect not loadable from w/i tclsh/wish
To: None <,,>
From: bharder <>
List: pkgsrc-bugs
Date: 12/04/2007 11:55:01
>Number:         37476
>Category:       pkg
>Synopsis:       Patch so expect lib can be loaded into tclsh/wish
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 04 11:55:00 +0000 2007
>Originator:     bharder <>
>Release:        NetBSD 4.0_RC5
Method Digital Logic (
System: NetBSD manchester 4.0_RC5 NetBSD 4.0_RC5 (manchester) #14: Wed Nov 28 05:02:28 PST 2007 root@manchester:/usr/obj/sys/arch/i386/compile/manchester i386
Architecture: i386
Machine: i386
	"Expect" can be run as precompiled binary via "expect", but library should also be loadable in tclsh/wish via "package require Expect"

	$ tclsh
	% package require Expect
	couldn't load file "/usr/pkg/lib/tcl/expect5.43/../../": /usr/pkg/lib/tcl/expect5.43/../../ unrecognized file format

	diff to apply against pkgsrc/lang/tcl-expect/patches/patch-ab:

--- ./patch-ab	2007-11-23 18:08:45.000000000 -0800
+++ ./	2007-11-23 18:08:02.000000000 -0800
@@ -6,4 +6,4 @@
  # full path name of this file's directory.
 -package ifneeded Expect @EXP_VERSION_FULL@ [list load [file join $dir .. @EXP_SHARED_LIB_FILE@]]
-+package ifneeded Expect @EXP_VERSION_FULL@ [list load [file join $dir ../.. @EXP_SHARED_LIB_FILE@]]
++package ifneeded Expect @EXP_VERSION_FULL@ [list load [file join $dir ../.. libexpect@EXP_MAJOR_VERSION@@EXP_MINOR_VERSION@[info sharedlibextension]]]