Bug 428740

Summary: Need to install into different directory
Product: [Fedora] Fedora Reporter: Wart <wart>
Component: expectAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-17 12:47:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to install files into the location where tcl will find them
none
Patch to spec file to package files in correct directory none

Description Wart 2008-01-14 21:25:21 UTC
Description of problem:
Tcl 8.5 in Fedora uses a limited set of directories for searching for extensions
such as expect.  As a result, the pkgIndex.tcl file for an extension must be
installed into a subdirectory of either /usr/lib/tcl8.5 or /usr/share/tcl8.5. 
If this is not done, then 'package require Expect' will fail for Tcl scripts.

Expect currently installs into /usr/lib/expect5.43.  This should be modified to
/usr/lib/tcl8.5/expect5.43.

Version-Release number of selected component (if applicable):
expect-5.43.0-11.fc9.1

How reproducible:
Always

Steps to Reproduce:
1. Install tcl and expect from Rawhide
2. run 'tclsh'
3. In the tcl interpreter, type 'package require Expect'
  
Actual results:
The command fails with "can't find package Expect"

Expected results:
The command succeeds and returns the version of the expect package '5.43.0'

Additional info:
The attached patches fix this problem.  The first patch, -pkgpath, Modifies the
Makefile and configure script with the correct install directory.  The second
patch is for the .spec file to look for the files in the correct locations.

Comment 1 Wart 2008-01-14 21:25:21 UTC
Created attachment 291638 [details]
Patch to install files into the location where tcl will find them

Comment 2 Wart 2008-01-14 21:26:46 UTC
Created attachment 291640 [details]
Patch to spec file to package files in correct directory

This patch also contains a modification to the -lib-spec patch so that linking
works.