Bug 7537 - tclx is improperly build rooted
tclx is improperly build rooted
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: tcltk (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
:
Depends On:
Blocks: 7602
  Show dependency treegraph
 
Reported: 1999-12-03 08:40 EST by Jeff Johnson
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-03 15:18:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jeff Johnson 1999-12-03 08:40:53 EST
The bug I found is in the file ....tclX8.0.4/unix/runtcl.in used by the
./configure command in that same directory

Current:
LD_LIBRARY_PATH=@bldbasedir@/tcl/unix:@TCL_BUILD@:${LD_LIBRARY_PATH}
Corrected:
LD_LIBRARY_PATH=@bldbasedir@/tcl/unix:@TCL_BUILD@/unix:${LD_LIBRARY_PATH}

./configure then uses this file to generate the runtcl script.

Without the "/unix" string in the generated runtcl script, the tcl build
library cannot be found so the library used instead is the old version of
the installed library which in my case (a RedHat 5.2 system) was
incompatible.

All the best,

Alan

P.S. for Jeff Johnson <jbj@redhat.com> I found the bug by using the updated
rpm-3.0.2-5.x available for RedHat 5.2 to attempt building the
tcltk-8.0.5-30 binary package from RH 6.1 tcltk-8.0.5-30.src.rpm. (I am
fairly experienced at this general procedure for updating a 5.2 system, and
normally it works without problems.) The make terminated with an error
message indicating the runtcl command was not working.  If I insert /unix
as
above it works fine.  The only way I think a build would work for you
without
this bugfix is if you already had tcl-8.05 libraries installed.  I had the
8.0.3 libraries installed, thus, I found the problem with runtcl.in and
the generated runtcl.
Comment 1 irwin 1999-12-05 11:53:59 EST
This bug was found on 5.2 but should be reported on 5.2, 6.0, and 6.1

A patch file that fixes it is

--- tcltk-8.0.5/tclX8.0.4/unix/runtcl.in_bad    Sun Dec  6 19:47:31 1998
+++ tcltk-8.0.5/tclX8.0.4/unix/runtcl.in        Thu Dec  2 18:24:46 1999
@@ -5,7 +5,7 @@
 TCLX_LIBRARY=@bldbasedir@/tcl/unix
 TCL=@bldbasedir@/tcl/unix/tcl
 export TCL_LIBRARY TCLX_LIBRARY
-LD_LIBRARY_PATH=@bldbasedir@/tcl/unix:@TCL_BUILD@:${LD_LIBRARY_PATH}
+LD_LIBRARY_PATH=@bldbasedir@/tcl/unix:@TCL_BUILD@/unix:${LD_LIBRARY_PATH}
 SHLIB_PATH=@bldbasedir@/tcl/unix:@TCL_BUILD@:${SHLIB_PATH}
 export LD_LIBRARY_PATH SHLIB_PATH
 exec $TCL ${1+"$@"}
Comment 2 Elliot Lee 2000-02-03 15:18:59 EST
Applied patch.

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