<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>2024</bug_id>
          
          <creation_ts>2002-04-23 02:11 0000</creation_ts>
          <short_desc>tcl-8.3.3.ebuild and tk-8.3.3.ebuild shouldn&apos;t cause tcl and tk to be threaded</short_desc>
          <delta_ts>2004-04-24 12:04:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Development</component>
          <version>1.1a</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>17181</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>kevin@desertsol.com</reporter>
          <assigned_to>utx@penguin.cz</assigned_to>
          <cc>agriffis@gentoo.org</cc>
    
    <cc>mholzer@gentoo.org</cc>
    
    <cc>mkennedy@gentoo.org</cc>
    
    <cc>perl@gentoo.org</cc>
    
    <cc>port001@gentoo.org</cc>
    
    <cc>seemant@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>kevin@desertsol.com</who>
            <bug_when>2002-04-23 02:11:04 0000</bug_when>
            <thetext>the tcl-8.3.3.ebuild and tk-8.3.3.ebuild automatically cause the
--enable-threads  flag on the ./configure line. (not affected by USE)

I was trying to install lavaps-1.20
(http://www.isi.edu/~johnh/SOFTWARE/LAVAPS/index.html) which uses tcl/tk.

lavaps built fine but crashed when trying to create a tcl intrepreter.

I hacked the ebuilds for tcl and tk to not add the --enable-threads flag,
emerged them again, rebuilt lavaps and it worked fine. I think the 2 ebuilds
should be changed so that the use of the --enable-threads can be controlled by
the USE environment variable. when tk was configuring, it even warns that
enabling threads isn&apos;t a good idea.

here&apos;s a stack dump from gdb when tcl/tk had threads enabled:
11:44pm1raven:/tmp/lavaps-1.20&gt;gdb ./lavaps
GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type &quot;show copying&quot; to see the conditions.
There is absolutely no warranty for GDB.  Type &quot;show warranty&quot; for details.
This GDB was configured as &quot;i686-pc-linux-gnu&quot;...
(gdb) run
Starting program: /tmp/lavaps-1.20/./lavaps 

Program received signal SIG32, Real-time event 32.
0x40300ad9 in sigsuspend () from /lib/libc.so.6
(gdb) where
#0  0x40300ad9 in sigsuspend () from /lib/libc.so.6
#1  0x4040ef59 in pthread_kill_other_threads_np () from /lib/libpthread.so.0
#2  0x4040e24b in pthread_create () from /lib/libpthread.so.0
#3  0x4014ac5d in Tcl_CreateThread () from /usr/lib/libtcl.so
#4  0x4014b21f in Tcl_InitNotifier () from /usr/lib/libtcl.so
#5  0x4012cc0a in TclInitNotifier () from /usr/lib/libtcl.so
#6  0x4010f9aa in TclInitSubsystems () from /usr/lib/libtcl.so
#7  0x400f3532 in Tcl_CreateInterp () from /usr/lib/libtcl.so
#8  0x0804f4ef in tcl_blob::init () at tcl_blob.cc:335
#9  0x0804b4b1 in main (argc=1, argv=0xbffff9e4) at main.cc:127
#10 0x402ef3c1 in __libc_start_main () from /lib/libc.so.6
(gdb) The program is running.  Exit anyway? (y or n) y</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>drobbins@gentoo.org</who>
            <bug_when>2002-04-23 17:05:08 0000</bug_when>
            <thetext>sounds like we should disable threads with tcl/tk</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2002-04-24 14:06:23 0000</bug_when>
            <thetext>Disabled in tcl-8.3.3; will be a use flag later on when we have a consistent
policy for handling ebuild-specific use flags.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>port001@gentoo.org</who>
            <bug_when>2003-10-19 17:36:46 0000</bug_when>
            <thetext>Disabling threads blocks the aolserver (bug #17181) from being submited to
portage because it requires tcl to be built with --enable-threads. Perhaps
we could use an internal USE flag for the time being?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lee@thaum.net</who>
            <bug_when>2003-10-22 12:15:29 0000</bug_when>
            <thetext>Created an attachment (id=19633)
tcl ebuild with threads USE flag

I&apos;ve attached the modified tcl ebuild I&apos;m using which has a &apos;threads&apos; USE
flag
just in case its useful to anyone else.  It makes merging &lt;a
href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=17181&quot;&gt;aolserver&lt;/a&gt; easier.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2003-11-03 10:29:20 0000</bug_when>
            <thetext>Sorry. I don&apos;t have capacity to deal with the tcl and tk stuff anymore.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-11-21 23:03:35 0000</bug_when>
            <thetext>Stanislav, thoughts?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>port001@gentoo.org</who>
            <bug_when>2004-01-10 18:04:52 0000</bug_when>
            <thetext>Stanislav, if you don&apos;t have any objections I&apos;m going to go with the local USE flag. This bug is holding up 4 others. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2004-01-11 02:43:31 0000</bug_when>
            <thetext>so we could make &quot;threads&quot; as global flag
it&apos;s also used in
dev-lang/perl:threads - Enable Perl threads, has some compatibility problems
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mkennedy@gentoo.org</who>
            <bug_when>2004-01-11 16:13:50 0000</bug_when>
            <thetext>dev-lisp/clisp and dev-lisp/sbcl are two more ebuilds which can use a threads flag</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-01-17 10:32:01 0000</bug_when>
            <thetext>I&apos;d vote for a global threads flag.  With the upcoming portage it could even be set per-package.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2004-01-17 10:38:48 0000</bug_when>
            <thetext>seemant: what do you think about a global threads USE-flag ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2004-01-17 10:42:39 0000</bug_when>
            <thetext>marty, I don&apos;t know -- I think perl uses that -- but it&apos;s sort of a hidden flag because it could lead to dangerous things -- maybe sommething similar here?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2004-01-17 11:03:50 0000</bug_when>
            <thetext>perl team, please tell us about the threads flag a little more</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>esammer@gentoo.org</who>
            <bug_when>2004-01-18 03:03:31 0000</bug_when>
            <thetext>Threads in perl will cause a number of compatibility problems as most people know. This is even more problematic in terms of things like mod_perl-like environments, from what I&apos;ve heard. Very few perl apps or modules make use of threads due to their buggy nature and I think most people are willing to hold out for perl6 for a decent thread implementation.

As long as it&apos;s not on by default, a threads USE flag is fine, but I wouldn&apos;t be surprised if we see a slight upswing in perl bugs because of it. I believe that the perl ebuild currently uses a env variable to handle enabling and disabling of threads - maybe this could be used for tcl as well?

My concern is that someone will enable a threads use flag for tcl and all of sudden have wacky problems with perl.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>port001@gentoo.org</who>
            <bug_when>2004-04-15 04:32:44 0000</bug_when>
            <thetext>If nobody has any objections, I&apos;m going to goahead with this. I think i&apos;ll accompany a paused warning too. 
Anyone mind if I get rid of a few old ebuilds while I&apos;m at it? </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>port001@gentoo.org</who>
            <bug_when>2004-04-24 12:04:34 0000</bug_when>
            <thetext>in CVS.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19633</attachid>
            <date>2003-10-22 12:15 0000</date>
            <desc>tcl ebuild with threads USE flag</desc>
            <filename>tcl-8.4.3.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDAzIEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIHYy
CiMgJEhlYWRlcjogL2hvbWUvY3Zzcm9vdC9nZW50b28teDg2L2Rldi1sYW5nL3RjbC90Y2wtOC40
LjMuZWJ1aWxkLHYgMS40IDIwMDMvMDkvMzAgMjA6MzI6MzMga3VtYmEgRXhwICQKCgpTPSR7V09S
S0RJUn0vJHtQTn0ke1BWfQpTUkNfVVJJPSJmdHA6Ly9mdHAuc2NyaXB0aWNzLmNvbS9wdWIvdGNs
L3RjbDhfNC8ke1BOfSR7UFZ9LXNyYy50YXIuZ3oiCgoKSE9NRVBBR0U9Imh0dHA6Ly9kZXYuc2Ny
aXB0aWNzLmNvbS9zb2Z0d2FyZS90Y2x0ay8iCgpERVNDUklQVElPTj0iVG9vbCBDb21tYW5kIExh
bmd1YWdlIgoKIyBnZW50b29sa2l0IGlzIG5lZWRlZCBvbmx5IGZvciByZXZkZXAtcmVidWlsZApE
RVBFTkQ9InZpcnR1YWwvZ2xpYmMKCT49YXBwLXBvcnRhZ2UvZ2VudG9vbGtpdC0wLjEuMjIiClJE
RVBFTkQ9InZpcnR1YWwvZ2xpYmMiCgpTTE9UPSIwIgpMSUNFTlNFPSJCU0QiCktFWVdPUkRTPSJ+
eDg2IH5zcGFyYyB+bWlwcyIKIyB0aHJlYWRpbmcgaXMgbm90IHJlY29tbWVuZGVkIGFzIGl0IGJy
ZWFrcyBzb21lIHBhY2thZ2VzCklVU0U9InRocmVhZHMiCgojIGh5cGVyLW9wdGltaXphdGlvbnMg
dW50ZXN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