Red Hat Bugzilla – Bug 428740
Need to install into different directory
Last modified: 2008-01-17 07:47:49 EST
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
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install tcl and expect from Rawhide
2. run 'tclsh'
3. In the tcl interpreter, type 'package require Expect'
The command fails with "can't find package Expect"
The command succeeds and returns the version of the expect package '5.43.0'
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.
Created attachment 291638 [details]
Patch to install files into the location where tcl will find them
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