Bug 428740 - Need to install into different directory
Summary: Need to install into different directory
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: expect
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-14 21:25 UTC by Wart
Modified: 2008-01-17 12:47 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-01-17 12:47:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to install files into the location where tcl will find them (1.34 KB, patch)
2008-01-14 21:25 UTC, Wart
no flags Details | Diff
Patch to spec file to package files in correct directory (3.06 KB, patch)
2008-01-14 21:26 UTC, Wart
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.