NetBSD Problem Report #37476

From bharder@methodlogic.net  Tue Dec  4 11:53:02 2007
Return-Path: <bharder@methodlogic.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2520263B867
	for <gnats-bugs@gnats.netbsd.org>; Tue,  4 Dec 2007 11:53:02 +0000 (UTC)
Message-Id: <20071204104005.GO32263@methodlogic.net>
Date: Tue, 4 Dec 2007 02:40:06 -0800
From: bharder <bharder@methodlogic.net>
Reply-To:
To: gnats-bugs@NetBSD.org
Subject: Expect not loadable from w/i tclsh/wish
X-Send-Pr-Version: 3.95

>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
>Last-Modified:  Thu Aug 20 15:55:38 +0000 2009
>Originator:     bharder <bharder@methodlogic.net>
>Release:        NetBSD 4.0_RC5
>Organization:
Method Digital Logic (http://www.methodlogic.net)
>Environment:
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
>Description:
	"Expect" can be run as precompiled binary via "expect", but library should also be loadable in tclsh/wish via "package require Expect"

>How-To-Repeat:
	$ tclsh
	% package require Expect
	couldn't load file "/usr/pkg/lib/tcl/expect5.43/../../libexpect543.la": /usr/pkg/lib/tcl/expect5.43/../../libexpect543.la: unrecognized file format

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

--- ./patch-ab	2007-11-23 18:08:45.000000000 -0800
+++ ./patch.new	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]]]


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jwise
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Wed, 05 Dec 2007 22:50:18 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/37476: Expect not loadable from w/i tclsh/wish
Date: Fri, 25 Jan 2008 16:20:10 +0100

 On Tue, Dec 04, 2007 at 11:55:01AM +0000, bharder wrote:
 > --- ./patch-ab	2007-11-23 18:08:45.000000000 -0800
 > +++ ./patch.new	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]]]
 > 

 This is not the correct approach.
 Correct solution is to not patch the file at all, but extract dlname
 from the .la file and substitue that in.

 Joerg

Responsible-Changed-From-To: jwise->pkg-manager

Responsible-Changed-By: jwise@narn.netbsd.org
Responsible-Changed-When: Thu, 20 Aug 2009 15:55:38 +0000
Responsible-Changed-Why:
I am no longer MAINTAINER for this package.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.