Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 22187

Summary: Tcl/Tk build env doesn't work well with auto build environment
Product: [Retired] Red Hat Linux Reporter: Shane Kennedy <skenn>
Component: tcltkAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: max
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-28 14:36:01 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
example of problem
none
detailed explanation and a way to solve it...
none
Why we need a fix: additional privs exploit for mkpasswd / /var/tmp - trivial...
none
Quick fix bug #28224 none

Description Shane Kennedy 2000-12-12 22:54:05 UTC
Tcl/Tk supplied with RH7, does not support the -mode option with 
fconfigure.  Neither do the supplied libraries.  Libraries (exactly which 
one) supplied with RH6.1 are O.K. for compile.

Comment 1 Eido Inoue 2001-02-08 04:38:58 UTC
Are you referring to the

fconfigure -translation mode

where mode is for setting the lf/cr raw/cooked aspects?


Comment 2 Shane Kennedy 2001-02-20 11:53:44 UTC
Created attachment 10460 [details]
example of problem

Comment 3 Anne Possoz 2001-03-08 13:52:50 UTC
Created attachment 12083 [details]
detailed explanation and a way to solve it...

Comment 4 Shane Kennedy 2001-03-08 14:02:57 UTC
Thanks for the fix.  It will save much tim on next system build.

Comment 5 Need Real Name 2001-03-08 16:45:19 UTC
The reason is that Tcl's configure script doesn't detect the systems I/O API
(termios, termio or sgtty)
if configure's stdin isn't a tty. I guess that Red Hat build the distributions
packages for their distributions in an automated environment where stdin is a
pipe or /dev/null. Therefore the correct API can't be detected and the option
-mode isn't compiled in. When someone rebuilds the package by hand, stdin is a
tty and everything works.

The solution is a patch against unix/tcl.m4 I submitted to the Tcl patch manager
at SourceForge. It makes configure detect the API even when stdin is no tty.

The patch has not yet been accepted by the Tcl maintainers.

Comment 6 Eido Inoue 2001-03-14 10:52:04 UTC
*** Bug 28224 has been marked as a duplicate of this bug. ***

Comment 7 Eido Inoue 2001-03-14 10:54:10 UTC
build scripts need to be patched so /var/tmp doesn't get pulled into the paths
and stdin is recognized to be a tty

Comment 8 Need Real Name 2001-03-26 13:01:49 UTC
Created attachment 13665 [details]
Why we need a fix: additional privs exploit for mkpasswd / /var/tmp - trivial...

Comment 9 Need Real Name 2001-03-29 08:38:23 UTC
Why have these bugs been marked as duplicates?
Though both are related to Tcl/Tk and the buildsystem, they cover totally
different areas.
There is already a patch that fixes this one and I am working on a fix for
#28224 that doesn not depend on changes in the build system.

Comment 10 Need Real Name 2001-04-02 09:42:44 UTC
Created attachment 14424 [details]
Quick fix bug #28224

Comment 11 Eido Inoue 2001-06-28 14:35:57 UTC
*** Bug 42630 has been marked as a duplicate of this bug. ***

Comment 12 Eido Inoue 2001-07-24 15:39:31 UTC
fixed in release 60.

Comment 13 Mark J. Cox 2002-08-12 19:38:50 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2002-148.html