<?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>225999</bug_id>
          
          <creation_ts>2008-06-11 23:55 0000</creation_ts>
          <short_desc>tcl/tk broken if built with x11-proto/xproto-7.0.13</short_desc>
          <delta_ts>2009-09-21 16:16:07 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2010422&amp;group_id=12997&amp;atid=112997</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>268174</dependson>
          <blocked>259833</blocked>
          <votes>22</votes>
          <everconfirmed>1</everconfirmed>
          <reporter>jeanfrancisroy@gmail.com</reporter>
          <assigned_to>tcltk@gentoo.org</assigned_to>
          <cc>7words.sg@gmail.com</cc>
    
    <cc>aballier@gentoo.org</cc>
    
    <cc>caster@gentoo.org</cc>
    
    <cc>coldwind@gentoo.org</cc>
    
    <cc>cuciferus@gmail.com</cc>
    
    <cc>devinsteffler@gmail.com</cc>
    
    <cc>fkrogh@mathalacarte.com</cc>
    
    <cc>fmccor@gentoo.org</cc>
    
    <cc>gentoo-tigerp@tigerp.net</cc>
    
    <cc>jperezq@gmail.com</cc>
    
    <cc>l337angelus@gmail.com</cc>
    
    <cc>maxim@office.modum.by</cc>
    
    <cc>mescalinum@gentoo.org</cc>
    
    <cc>openhs@users.sourceforge.net</cc>
    
    <cc>Patrick.Fourniols@wanadoo.fr</cc>
    
    <cc>patrick@gentoo.org</cc>
    
    <cc>pebenito@gentoo.org</cc>
    
    <cc>polynomial-c@gentoo.org</cc>
    
    <cc>projects.gg.aaron@gmail.com</cc>
    
    <cc>r_meier@freenet.de</cc>
    
    <cc>Samuele.Kaplun@cern.ch</cc>
    
    <cc>selckin@selckin.be</cc>
    
    <cc>serp@stork.ru</cc>
    
    <cc>sf_knue@web.de</cc>
    
    <cc>sky315sky@163.com</cc>
    
    <cc>the-dead82@hotmail.com</cc>
    
    <cc>transacid@centerim.org</cc>
    
    <cc>wade@waddles.org</cc>
    
    <cc>zmc@lurian.net</cc>
    
    <cc>zorry@ume.nu</cc>

      

      
          <long_desc isprivate="0">
            <who>jeanfrancisroy@gmail.com</who>
            <bug_when>2008-06-11 23:55:42 0000</bug_when>
            <thetext>tcl/tk fails to execute if compiled while using x11-proto/xproto-7.0.13.

Reproducible: Always

Steps to Reproduce:
1. upgrade to x11-proto/xproto-7.0.13
2. compile tcl and tk
3. start any application using them

Actual Results:  
$ wish                                                                             
Application initialization failed: Can&apos;t find a usable tk.tcl in the following directories:             
    /usr/lib64/tcl8.5/tk8.5 /usr/lib64/tk8.5 /lib/tk8.5 /usr/library                                   

/usr/lib64/tk8.5/tk.tcl: no event type or button # or keysym
no event type or button # or keysym                         
    while executing                                         
&quot;bind Listbox &lt;MouseWheel&gt; {                               
        %W yview scroll [expr {- (%D / 120) * 4}] units     
    }&quot;                                                     
    invoked from within                                     
&quot;if {[tk windowingsystem] eq &quot;aqua&quot;} {                     
    bind Listbox &lt;MouseWheel&gt; {                             
        %W yview scroll [expr {- (%D)}] units               
    }                                                       
    bind Listbox &lt;Option-Mou...&quot;                           
    (file &quot;/usr/lib64/tk8.5/listbox.tcl&quot; line 182)
    invoked from within
&quot;source /usr/lib64/tk8.5/listbox.tcl&quot;
    (in namespace eval &quot;::&quot; script line 1)
    invoked from within
&quot;namespace eval :: [list source [file join $::tk_library $file.tcl]]&quot;
    (procedure &quot;SourceLibFile&quot; line 2)
    invoked from within
&quot;SourceLibFile listbox&quot;
    (in namespace eval &quot;::tk&quot; script line 4)
    invoked from within
&quot;namespace eval ::tk {
        SourceLibFile button
        SourceLibFile entry
        SourceLibFile listbox
        SourceLibFile menu
        SourceLibFile panedwindow
        SourceLibFile ...&quot;
    invoked from within
&quot;if {$::tk_library ne &quot;&quot;} {
    proc ::tk::SourceLibFile {file} {
        namespace eval :: [list source [file join $::tk_library $file.tcl]]
    }
   ...&quot;
    (file &quot;/usr/lib64/tk8.5/tk.tcl&quot; line 404)
    invoked from within
&quot;source /usr/lib64/tk8.5/tk.tcl&quot;
    (&quot;uplevel&quot; body line 1)
    invoked from within
&quot;uplevel #0 [list source $file]&quot;


This probably means that tk wasn&apos;t installed properly.


Expected Results:  
Tcl/TK applications to work correctly.

# paludis -I
paludis 0.26.2   
Paludis build information:
    Compiler:             
        CXX:                   x86_64-pc-linux-gnu-g++ 4.3.1
        CXXFLAGS:              -march=core2 -O2 -pipe       
        LDFLAGS:                                           
        DATE:                  2008-06-11T12:38:31-0400     

    Libraries:
        C++ Library:           GNU libstdc++ 20080606

    Reduced Privs:
        reduced_uid:           101
        reduced_uid-&gt;name:     paludisbuild
        reduced_uid-&gt;dir:      /var/tmp/paludis
        reduced_gid:           1000           
        reduced_gid-&gt;name:     paludisbuild   

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc       
        PYTHONINSTALLDIR:      /usr/lib64/python2.5/site-packages
        RUBYINSTALLDIR:                                         

Repository virtuals:
    format:                    virtuals

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /                 

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    binary_destination:        false           
    binary_keywords:                           
    binary_uri_prefix:                         
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /usr/portage/distfiles     
    eapi_when_unknown:         0                         
    eapi_when_unspecified:     0                         
    eclassdirs:                /usr/portage/eclass       
    ignore_deprecated_profiles: false                     
    layout:                    traditional               
    names_cache:               /var/cache/paludis/names   
    newsdir:                   /usr/portage/metadata/news
    profile_eapi:              0                         
    profiles:                  /usr/portage/profiles/default/linux/amd64/2008.0/desktop
    securitydir:               /usr/portage/metadata/glsa                             
    setsdir:                   /usr/portage/sets                                       
    sync:                      rsync://rsync.europe.gentoo.org/gentoo-portage         
    sync_options:                                                                     
    use_manifest:              use                                                     
    write_cache:               /var/empty                                             

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p39   
        dev-java/java-config:  1.3.7 2.1.6
        dev-lang/python:       2.4.4-r13 2.5.2-r4
        dev-python/pycrypto:   2.0.1-r6         
        dev-util/ccache:       (none)           
        dev-util/confcache:    (none)           
        sys-apps/baselayout:   2.0.0             
        sys-apps/openrc:       0.2.5             
        sys-apps/sandbox:      1.2.18.1-r2       
        sys-devel/autoconf:    2.13 2.62         
        sys-devel/automake:    1.10.1-r1 1.5 1.7.9-r1 1.9.6-r2
        sys-devel/binutils:    2.18-r1                       
        sys-devel/gcc-config:  1.4.0-r4                       
        sys-devel/libtool:     2.2.4                         
        virtual/os-headers:    2.6.25-r4 (for sys-kernel/linux-headers::installed)

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    names_cache:               /var/cache/paludis/names
    provides_cache:            /var/cache/paludis/provides
    root:                      /</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Patrick.Fourniols@wanadoo.fr</who>
            <bug_when>2008-06-12 22:54:11 0000</bug_when>
            <thetext>idem for me, and before finding this bug report, i have tried tcl tk 8.5.1:
idem unless downgrading to xproto-7.0.12 and re emerging tcl tk...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>znmeb@cesmail.net</who>
            <bug_when>2008-06-15 00:20:05 0000</bug_when>
            <thetext>Got something very much like this with tcl/tk 8.4 when trying to access tk from R. I have no idea how I managed to find this bug, but I did. :) I thought it was an R bug, then a threads bug, then a gcc 4.3 bug. I guess I can upgrade to Tcl/Tk 8.5 now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brendlerjg@gmail.com</who>
            <bug_when>2008-06-18 02:50:41 0000</bug_when>
            <thetext>Same here (with both tk 8.4.18 and tk 8.4.15-r1).
Error discovered while trying to run tk interfaces in python.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george.howlett@comcast.net</who>
            <bug_when>2008-06-21 20:01:53 0000</bug_when>
            <thetext>The bug is in generic/tkBind.c in the flagArray.  xproto-7.0.13 adds
a new event GenericEvent.  Probably every version of Tk (8.*) is affected. Here&apos;s a patch.

--- tkBind.c    2006-07-21 02:26:54.000000000 -0400
+++ tkBind.c-new        2008-06-21 15:51:50.000000000 -0400
@@ -586,6 +586,9 @@
    /* ColormapNotify */                COLORMAP,
    /* ClientMessage */         0,
    /* MappingNotify */         0,
+#ifdef GenericEvent
+   /* GenericEvent */          0,
+#endif 
    /* VirtualEvent */          VIRTUAL,
    /* Activate */              ACTIVATE,           
    /* Deactivate */            ACTIVATE,
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmc@lurian.net</who>
            <bug_when>2008-06-29 06:34:14 0000</bug_when>
            <thetext>Behavior observed under ~x86, scope of breakage is wider than just AMD64 platform.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jeanfrancisroy@gmail.com</who>
            <bug_when>2008-06-29 06:47:19 0000</bug_when>
            <thetext>Hardware changed from AMD64 to All</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2008-07-04 13:21:22 0000</bug_when>
            <thetext>*** Bug 230621 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2008-07-04 13:21:37 0000</bug_when>
            <thetext>*** Bug 230727 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gerardo069872@hotmail.com</who>
            <bug_when>2008-07-05 12:42:59 0000</bug_when>
            <thetext>Created an attachment (id=159623)
tk-8.4.18-tkBind.patch

The above mentionned patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fkrogh@mathalacarte.com</who>
            <bug_when>2008-07-05 18:09:37 0000</bug_when>
            <thetext>*** Bug 230877 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gtlinuxman@gmail.com</who>
            <bug_when>2008-07-10 13:56:01 0000</bug_when>
            <thetext>The bug is tracked upstream: http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2010422&amp;group_id=12997&amp;atid=112997

During today discussion in the Tcler&apos;s chatroom Kevin Kenny proposed a more clean short-term solution than the patch from comment #4. This proposed solution is documented as a comment for upstream bug.

There&apos;s no upstream fix yet.

----
xmpp:tkabber@conference.jabber.ru/kostix</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2008-07-15 16:09:27 0000</bug_when>
            <thetext>*** Bug 231874 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2008-07-21 16:23:09 0000</bug_when>
            <thetext>*** Bug 232550 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2008-07-24 06:37:47 0000</bug_when>
            <thetext>Created an attachment (id=161242)
tk-8.4-lastevent.patch

Hi,

the attached patch is slightly reworked (some line adjustment to apply cleanly to tk-8.4.x) taken directly from http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2010422&amp;group_id=12997&amp;atid=112997
It solved the issues with app-text/ding I had from this bug.

Cheers
Poly-C</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2008-07-24 14:43:33 0000</bug_when>
            <thetext>(In reply to comment #14)
&gt; the attached patch is slightly reworked (some line adjustment to apply cleanly
&gt; to tk-8.4.x) taken directly from
&gt; http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2010422&amp;group_id=12997&amp;atid=112997

Works for me: solves the problems I was seeing with gitk from &apos;USE=tk dev-util/git&apos;

I vote this patch goes in to the tree.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2008-07-28 17:19:50 0000</bug_when>
            <thetext>*** Bug 233173 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>projects.gg.aaron@gmail.com</who>
            <bug_when>2008-08-28 17:11:55 0000</bug_when>
            <thetext>*** Bug 234965 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>transacid@centerim.org</who>
            <bug_when>2008-09-05 12:20:07 0000</bug_when>
            <thetext>patch works for me aswell
++ into tree</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2008-09-09 10:42:10 0000</bug_when>
            <thetext>*** Bug 237056 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xbmodder@gmail.com</who>
            <bug_when>2008-09-23 08:05:31 0000</bug_when>
            <thetext>Works for me. PLEASE put into tree. :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tomascohen@gmail.com</who>
            <bug_when>2008-09-25 00:10:26 0000</bug_when>
            <thetext>++</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mondrillo@gmail.com</who>
            <bug_when>2008-09-26 19:17:01 0000</bug_when>
            <thetext>Have this patch solved this issue, I&apos;ve the same problem with chessDB. 

dev-lang/tk
      Latest version available: 8.4.18
      Latest version installed: 8.4.18
      Size of files: 3,285 kB
      Homepage:      http://dev.scriptics.com/software/tcltk/
      Description:   Tk Widget Set
      License:       BSD
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>goldenra@ms26.hinet.net</who>
            <bug_when>2008-10-02 08:02:54 0000</bug_when>
            <thetext>tk-8.4-lastevent.path have problem , out of array. 
But for insight , it didn&apos;t workable. tk-8.4.18</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mondrillo@gmail.com</who>
            <bug_when>2008-10-10 13:11:33 0000</bug_when>
            <thetext>Hello I put the ChessdB error :-(

$ chessdb
Application initialization failed: Can&apos;t find a usable tk.tcl in the following directories: 
    /usr/lib/snack2.2/tk8.4 /usr/lib64/tcl8.4/tk8.4 /usr/lib64/tk8.4 /usr/games/lib/tk8.4 /usr/lib/tk8.4 /usr/games/library /usr/library /usr/tk8.4.18/library /tk8.4.18/library

/usr/lib64/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
&quot;bind Listbox &lt;MouseWheel&gt; {
        %W yview scroll [expr {- (%D / 120) * 4}] units
    }&quot;
    invoked from within
&quot;if {[tk windowingsystem] eq &quot;classic&quot; || [tk windowingsystem] eq &quot;aqua&quot;} {
    bind Listbox &lt;MouseWheel&gt; {
        %W yview scroll [expr {- (%D)}] uni...&quot;
    (file &quot;/usr/lib64/tk8.4/listbox.tcl&quot; line 181)
    invoked from within
&quot;source /usr/lib64/tk8.4/listbox.tcl&quot;
    (in namespace eval &quot;::&quot; script line 1)
    invoked from within
&quot;namespace eval :: [list source [file join $::tk_library $file.tcl]]&quot;
    (procedure &quot;SourceLibFile&quot; line 2)
    invoked from within
&quot;SourceLibFile listbox&quot;
    (in namespace eval &quot;::tk&quot; script line 4)
    invoked from within
&quot;namespace eval ::tk {
	SourceLibFile button
	SourceLibFile entry
	SourceLibFile listbox
	SourceLibFile menu
	SourceLibFile panedwindow
	SourceLibFile ...&quot;
    invoked from within
&quot;if {$::tk_library ne &quot;&quot;} {
    if {$tcl_platform(platform) eq &quot;macintosh&quot;} {
	proc ::tk::SourceLibFile {file} {
	    if {[catch {
		namespace eval :: ...&quot;
    (file &quot;/usr/lib64/tk8.4/tk.tcl&quot; line 407)
    invoked from within
&quot;source /usr/lib64/tk8.4/tk.tcl&quot;
    (&quot;uplevel&quot; body line 1)
    invoked from within
&quot;uplevel #0 [list source $file]&quot;
/usr/lib/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
&quot;bind Listbox &lt;MouseWheel&gt; {
        %W yview scroll [expr {- (%D / 120) * 4}] units
    }&quot;
    invoked from within
&quot;if {[tk windowingsystem] eq &quot;classic&quot; || [tk windowingsystem] eq &quot;aqua&quot;} {
    bind Listbox &lt;MouseWheel&gt; {
        %W yview scroll [expr {- (%D)}] uni...&quot;
    (file &quot;/usr/lib/tk8.4/listbox.tcl&quot; line 181)
    invoked from within
&quot;source /usr/lib/tk8.4/listbox.tcl&quot;
    (in namespace eval &quot;::&quot; script line 1)
    invoked from within
&quot;namespace eval :: [list source [file join $::tk_library $file.tcl]]&quot;
    (procedure &quot;SourceLibFile&quot; line 2)
    invoked from within
&quot;SourceLibFile listbox&quot;
    (in namespace eval &quot;::tk&quot; script line 4)
    invoked from within
&quot;namespace eval ::tk {
	SourceLibFile button
	SourceLibFile entry
	SourceLibFile listbox
	SourceLibFile menu
	SourceLibFile panedwindow
	SourceLibFile ...&quot;
    invoked from within
&quot;if {$::tk_library ne &quot;&quot;} {
    if {$tcl_platform(platform) eq &quot;macintosh&quot;} {
	proc ::tk::SourceLibFile {file} {
	    if {[catch {
		namespace eval :: ...&quot;
    (file &quot;/usr/lib/tk8.4/tk.tcl&quot; line 407)
    invoked from within
&quot;source /usr/lib/tk8.4/tk.tcl&quot;
    (&quot;uplevel&quot; body line 1)
    invoked from within
&quot;uplevel #0 [list source $file]&quot;


This probably means that tk wasn&apos;t installed properly.

Error in startup script: invalid command name &quot;sc_info&quot;
    while executing
&quot;sc_info version&quot;
    (file &quot;/usr/games/bin/chessdb&quot; line 1)

Can I have running chessdb masking x11-proto/xproto-7.0.13?
Thank&apos;s and regards

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cuciferus@gmail.com</who>
            <bug_when>2008-10-10 15:26:08 0000</bug_when>
            <thetext>it&apos;s how I solved it</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wormo@gentoo.org</who>
            <bug_when>2008-10-22 22:31:32 0000</bug_when>
            <thetext>*** Bug 243282 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j.n.hurst@btinternet.com</who>
            <bug_when>2008-10-25 19:07:54 0000</bug_when>
            <thetext>(In reply to comment #18)
&gt; patch works for me aswell
&gt; ++ into tree
&gt; 

Also works for me</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2008-10-26 11:22:53 0000</bug_when>
            <thetext>this is fixed in version 8.5.5.
also 8.4 got bumped to 8.4.19.

please test; reopen if doesn&apos;t work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2008-10-26 11:49:30 0000</bug_when>
            <thetext>tk-8.4.19 still doesn&apos;t work without this patch...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2008-10-26 14:36:46 0000</bug_when>
            <thetext>Reopening then</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2008-10-27 20:33:04 0000</bug_when>
            <thetext>added tk-8.4-lastevent.patch to tk-8.14.18-r1 and tk-8.4.19 ebuilds in CVS
please resync &amp; test
thank you</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jeanfrancisroy@gmail.com</who>
            <bug_when>2008-10-27 21:25:23 0000</bug_when>
            <thetext>Just synced and tested, everything works, hanks :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2008-11-16 09:01:26 0000</bug_when>
            <thetext>*** Bug 246774 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2008-11-24 12:16:38 0000</bug_when>
            <thetext>I just did this:
emerge --sync
emerge tk (also did tcl)
emerge insight

I am getting the following error, is it related to this PR or should it be a new PR? What else do I need to do to get insight working again? I&apos;ll try emerge -u world.

The computer is an x86 (posted because error has &apos;macintosh&apos; in it?).

Error I am seeing now is:

Tk_Init failed: Can&apos;t find a usable tk.tcl in the following directories: 
    /usr/share/insight/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.1/library /tk8.4.1/library

/usr/share/insight/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
&quot;bind Listbox &lt;MouseWheel&gt; {
    %W yview scroll [expr {- (%D / 120) * 4}] units
}&quot;
    (file &quot;/usr/share/insight/tk8.4/listbox.tcl&quot; line 182)
    invoked from within
&quot;source /usr/share/insight/tk8.4/listbox.tcl&quot;
    (in namespace eval &quot;::&quot; script line 1)
    invoked from within
&quot;namespace eval :: [list source [file join $::tk_library $file.tcl]]&quot;
    (procedure &quot;SourceLibFile&quot; line 2)
    invoked from within
&quot;SourceLibFile listbox&quot;
    (in namespace eval &quot;::tk&quot; script line 4)
    invoked from within
&quot;namespace eval ::tk {
        SourceLibFile button
        SourceLibFile entry
        SourceLibFile listbox
        SourceLibFile menu
        SourceLibFile panedwindow
        SourceLibFile ...&quot;
    invoked from within
&quot;if {$::tk_library ne &quot;&quot;} {
    if {[string equal $tcl_platform(platform) &quot;macintosh&quot;]} {
        proc ::tk::SourceLibFile {file} {
            if {[catch {
                namesp...&quot;    (file &quot;/usr/share/insight/tk8.4/tk.tcl&quot; line 393)
    invoked from within
&quot;source /usr/share/insight/tk8.4/tk.tcl&quot;
    (&quot;uplevel&quot; body line 1)
    invoked from within
&quot;uplevel #0 [list source $file]&quot;
/usr/lib/tk8.4/tk.tcl: can&apos;t import command &quot;mc&quot;: already exists
can&apos;t import command &quot;mc&quot;: already exists
    while executing
&quot;namespace import ::msgcat::mc&quot;
    (in namespace eval &quot;::tk::msgcat&quot; script line 21)
    invoked from within
&quot;namespace eval msgcat {
        namespace export mc mcmax
        if {[interp issafe] || [catch {package require msgcat}]} {
            # The msgcat package...&quot;
    (in namespace eval &quot;::tk&quot; script line 3)
    invoked from within
&quot;namespace eval ::tk {
    # Set up the msgcat commands
    namespace eval msgcat {
        namespace export mc mcmax
        if {[interp issafe] || [catch {p...&quot;
    (file &quot;/usr/lib/tk8.4/tk.tcl&quot; line 20)
    invoked from within
&quot;source /usr/lib/tk8.4/tk.tcl&quot;
    (&quot;uplevel&quot; body line 1)
    invoked from within
&quot;uplevel #0 [list source $file]&quot;


This probably means that tk wasn&apos;t installed properly.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2008-11-25 03:09:18 0000</bug_when>
            <thetext>emerge -u world did not fix it for me

I&apos;m going to try using tk 8.5.5, since it has a hard mask (http://gentoo-portage.com/dev-lang/tk/ChangeLog) I&apos;m going to do this:
echo &quot;=dev-lang/tcl-8.5.5&quot; &gt;&gt; /etc/portage/packages.unmask
echo &quot;=dev-lang/tk-8.5.5&quot; &gt;&gt; /etc/portage/package.unmask
emerge tk

This should replace tcl 8.4.19 and tk 8.4.19-r1 with 8.5.5. Hopefully that will fix it for me. I was under the impression that tk 8.4.19-r1 had this fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2008-11-25 03:29:30 0000</bug_when>
            <thetext>After upgrading to tcl/tk 8.5.5 I had to run this command (twice):
revdep-rebuild

Insight still won&apos;t start. I&apos;m going to try:
emerge insight
with hopes that it will detect the new tcl/tk version. Strangely enough in the error message it only seems to be looking for tk8.4 or tk8.4.1. Maybe it is insight that needs to be patched (i.e. does it come with its own copy of tcl/tk that it is using?)

I still get this error when I run insight:
Tk_Init failed: Can&apos;t find a usable tk.tcl in the following directories: 
    /usr/share/insight/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.1/library /tk8.4.1/library

/usr/share/insight/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
&quot;bind Listbox &lt;MouseWheel&gt; {
    %W yview scroll [expr {- (%D / 120) * 4}] units
}&quot;
    (file &quot;/usr/share/insight/tk8.4/listbox.tcl&quot; line 182)
    invoked from within
&quot;source /usr/share/insight/tk8.4/listbox.tcl&quot;
    (in namespace eval &quot;::&quot; script line 1)
    invoked from within
&quot;namespace eval :: [list source [file join $::tk_library $file.tcl]]&quot;
    (procedure &quot;SourceLibFile&quot; line 2)
    invoked from within
&quot;SourceLibFile listbox&quot;
    (in namespace eval &quot;::tk&quot; script line 4)
    invoked from within
&quot;namespace eval ::tk {
        SourceLibFile button
        SourceLibFile entry
        SourceLibFile listbox
        SourceLibFile menu
        SourceLibFile panedwindow
        SourceLibFile ...&quot;
    invoked from within
&quot;if {$::tk_library ne &quot;&quot;} {
    if {[string equal $tcl_platform(platform) &quot;macintosh&quot;]} {
        proc ::tk::SourceLibFile {file} {
            if {[catch {
                namesp...&quot;
    (file &quot;/usr/share/insight/tk8.4/tk.tcl&quot; line 393)
    invoked from within
&quot;source /usr/share/insight/tk8.4/tk.tcl&quot;
    (&quot;uplevel&quot; body line 1)
    invoked from within
&quot;uplevel #0 [list source $file]&quot;


This probably means that tk wasn&apos;t installed properly.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2008-11-25 03:36:02 0000</bug_when>
            <thetext>Reinstalling insight did not fix the problem.

Should this PR be re-opened? What else can I try?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brendlerjg@gmail.com</who>
            <bug_when>2008-11-25 03:46:32 0000</bug_when>
            <thetext>(In reply to comment #37)
Did you apply the patch?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2008-11-25 03:56:26 0000</bug_when>
            <thetext>I thought that the patch was in the &apos;mainstream&apos; so it wouldn&apos;t need to be applied manually. Isn&apos;t that why the PR is closed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2008-11-25 03:57:13 0000</bug_when>
            <thetext>Going to xproto 7.0.12 was the only thing that fixed it for me (of the things I tried). I had to do this:
- put this line in /usr/portage/profiles/package.mask:
&gt;=x11-proto/xproto-7.0.13
- emerge xproto
- emerge tcl; emerge tk; emerge insight

I think this means that insight comes with its own tcl/tk. So would it be
feasible to apply the same patch to insight&apos;s tk that was applied to tk for
this PR?

Should I raise a new PR for this against insight? I&apos;m worried someone will
strike it down as a duplicate of this PR.

I appologize for all of the posts to this PR tonight. Hopefully the details
will help someone else.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brendlerjg@gmail.com</who>
            <bug_when>2008-11-25 04:12:16 0000</bug_when>
            <thetext>(In reply to comment #39)
&gt; I thought that the patch was in the &apos;mainstream&apos; so it wouldn&apos;t need to be
&gt; applied manually. Isn&apos;t that why the PR is closed?
Oh yeah.  Sorry.  Checking I see that I&apos;m not longer using a local ebuild for this.
dev-lang/tk-8.4.18 and x11-proto/xproto-7.0.13 are working for me, but I don&apos;t use insight.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brendlerjg@gmail.com</who>
            <bug_when>2008-11-25 04:15:13 0000</bug_when>
            <thetext>Correction, I&apos;m using dev-lang/tk-8.4.19-r1 and x11-proto/xproto-7.0.13</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>y5p8@163.com</who>
            <bug_when>2008-12-14 00:26:22 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; tcl/tk fails to execute if compiled while using x11-proto/xproto-7.0.13.
&gt; Reproducible: Always
&gt; Steps to Reproduce:
&gt; 1. upgrade to x11-proto/xproto-7.0.13
&gt; 2. compile tcl and tk
&gt; 3. start any application using them
&gt; Actual Results:  
&gt; $ wish                                                                          
&gt; Application initialization failed: Can&apos;t find a usable tk.tcl in the following
&gt; directories:             
&gt;     /usr/lib64/tcl8.5/tk8.5 /usr/lib64/tk8.5 /lib/tk8.5 /usr/library            
&gt; /usr/lib64/tk8.5/tk.tcl: no event type or button # or keysym
&gt; no event type or button # or keysym                         
&gt;     while executing                                         
&gt; &quot;bind Listbox &lt;MouseWheel&gt; {                               
&gt;         %W yview scroll [expr {- (%D / 120) * 4}] units     
&gt;     }&quot;                                                     
&gt;     invoked from within                                     
&gt; &quot;if {[tk windowingsystem] eq &quot;aqua&quot;} {                     
&gt;     bind Listbox &lt;MouseWheel&gt; {                             
&gt;         %W yview scroll [expr {- (%D)}] units               
&gt;     }                                                       
&gt;     bind Listbox &lt;Option-Mou...&quot;                           
&gt;     (file &quot;/usr/lib64/tk8.5/listbox.tcl&quot; line 182)
&gt;     invoked from within
&gt; &quot;source /usr/lib64/tk8.5/listbox.tcl&quot;
&gt;     (in namespace eval &quot;::&quot; script line 1)
&gt;     invoked from within
&gt; &quot;namespace eval :: [list source [file join $::tk_library $file.tcl]]&quot;
&gt;     (procedure &quot;SourceLibFile&quot; line 2)
&gt;     invoked from within
&gt; &quot;SourceLibFile listbox&quot;
&gt;     (in namespace eval &quot;::tk&quot; script line 4)
&gt;     invoked from within
&gt; &quot;namespace eval ::tk {
&gt;         SourceLibFile button
&gt;         SourceLibFile entry
&gt;         SourceLibFile listbox
&gt;         SourceLibFile menu
&gt;         SourceLibFile panedwindow
&gt;         SourceLibFile ...&quot;
&gt;     invoked from within
&gt; &quot;if {$::tk_library ne &quot;&quot;} {
&gt;     proc ::tk::SourceLibFile {file} {
&gt;         namespace eval :: [list source [file join $::tk_library $file.tcl]]
&gt;     }
&gt;    ...&quot;
&gt;     (file &quot;/usr/lib64/tk8.5/tk.tcl&quot; line 404)
&gt;     invoked from within
&gt; &quot;source /usr/lib64/tk8.5/tk.tcl&quot;
&gt;     (&quot;uplevel&quot; body line 1)
&gt;     invoked from within
&gt; &quot;uplevel #0 [list source $file]&quot;
&gt; This probably means that tk wasn&apos;t installed properly.
&gt; Expected Results:  
&gt; Tcl/TK applications to work correctly.
&gt; # paludis -I
&gt; paludis 0.26.2   
&gt; Paludis build information:
&gt;     Compiler:             
&gt;         CXX:                   x86_64-pc-linux-gnu-g++ 4.3.1
&gt;         CXXFLAGS:              -march=core2 -O2 -pipe       
&gt;         LDFLAGS:                                           
&gt;         DATE:                  2008-06-11T12:38:31-0400     
&gt;     Libraries:
&gt;         C++ Library:           GNU libstdc++ 20080606
&gt;     Reduced Privs:
&gt;         reduced_uid:           101
&gt;         reduced_uid-&gt;name:     paludisbuild
&gt;         reduced_uid-&gt;dir:      /var/tmp/paludis
&gt;         reduced_gid:           1000           
&gt;         reduced_gid-&gt;name:     paludisbuild   
&gt;     Paths:
&gt;         DATADIR:               /usr/share
&gt;         LIBDIR:                /usr/lib64
&gt;         LIBEXECDIR:            /usr/libexec
&gt;         SYSCONFDIR:            /etc       
&gt;         PYTHONINSTALLDIR:      /usr/lib64/python2.5/site-packages
&gt;         RUBYINSTALLDIR:                                         
&gt; Repository virtuals:
&gt;     format:                    virtuals
&gt; Repository installed-virtuals:
&gt;     format:                    installed_virtuals
&gt;     root:                      /                 
&gt; Repository gentoo:
&gt;     format:                    ebuild
&gt;     location:                  /usr/portage
&gt;     append_repository_name_to_write_cache: true
&gt;     binary_destination:        false           
&gt;     binary_keywords:                           
&gt;     binary_uri_prefix:                         
&gt;     builddir:                  /var/tmp/paludis
&gt;     cache:                     /usr/portage/metadata/cache
&gt;     distdir:                   /usr/portage/distfiles     
&gt;     eapi_when_unknown:         0                         
&gt;     eapi_when_unspecified:     0                         
&gt;     eclassdirs:                /usr/portage/eclass       
&gt;     ignore_deprecated_profiles: false                     
&gt;     layout:                    traditional               
&gt;     names_cache:               /var/cache/paludis/names   
&gt;     newsdir:                   /usr/portage/metadata/news
&gt;     profile_eapi:              0                         
&gt;     profiles:                 
&gt; /usr/portage/profiles/default/linux/amd64/2008.0/desktop
&gt;     securitydir:               /usr/portage/metadata/glsa                       
&gt;     setsdir:                   /usr/portage/sets                                
&gt;     sync:                      rsync://rsync.europe.gentoo.org/gentoo-portage   
&gt;     sync_options:                                                               
&gt;     use_manifest:              use                                              
&gt;     write_cache:               /var/empty                                       
&gt;     Package information:
&gt;         app-admin/eselect-compiler: (none)
&gt;         app-shells/bash:       3.2_p39   
&gt;         dev-java/java-config:  1.3.7 2.1.6
&gt;         dev-lang/python:       2.4.4-r13 2.5.2-r4
&gt;         dev-python/pycrypto:   2.0.1-r6         
&gt;         dev-util/ccache:       (none)           
&gt;         dev-util/confcache:    (none)           
&gt;         sys-apps/baselayout:   2.0.0             
&gt;         sys-apps/openrc:       0.2.5             
&gt;         sys-apps/sandbox:      1.2.18.1-r2       
&gt;         sys-devel/autoconf:    2.13 2.62         
&gt;         sys-devel/automake:    1.10.1-r1 1.5 1.7.9-r1 1.9.6-r2
&gt;         sys-devel/binutils:    2.18-r1                       
&gt;         sys-devel/gcc-config:  1.4.0-r4                       
&gt;         sys-devel/libtool:     2.2.4                         
&gt;         virtual/os-headers:    2.6.25-r4 (for
&gt; sys-kernel/linux-headers::installed)
&gt; Repository installed:
&gt;     format:                    vdb
&gt;     location:                  /var/db/pkg
&gt;     builddir:                  /var/tmp/paludis
&gt;     names_cache:               /var/cache/paludis/names
&gt;     provides_cache:            /var/cache/paludis/provides
&gt;     root:                      /

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>han8048347@163.com</who>
            <bug_when>2008-12-16 13:32:32 0000</bug_when>
            <thetext>s </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>serkan@gentoo.org</who>
            <bug_when>2009-02-14 17:16:25 0000</bug_when>
            <thetext>*** Bug 258988 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>realnc@gmail.com</who>
            <bug_when>2009-02-14 17:22:21 0000</bug_when>
            <thetext>Somehow I missed this bug before opening a new one.

Please reopen? The problem is still there.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>admin@chys.info</who>
            <bug_when>2009-03-05 08:17:02 0000</bug_when>
            <thetext>I still have this problem, too.

(I applied tk-8.4.18-tkBind.patch, which seems not to be in tree right now.)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wade@waddles.org</who>
            <bug_when>2009-03-09 16:03:20 0000</bug_when>
            <thetext>Created an attachment (id=184467)
Reworked ebuild for dev-lang/tk-8.4.18-r2

I hit this bug running python+Tkinter scripts from Scribus.

Added &apos;=dev-lang/tk-8.4.18-r1 ~amd64&apos; to package.keywords to get Lars&apos; lastevent patch included. Scribus now happily displays Tkinter dialogs.

I am attaching a reworked ebuild that doesn&apos;t bump the DEPEND to
 &gt;=x11-proto/xproto-7.0.13 but will still apply the patch if the later version of xproto is in use.

CAN SOMEONE PLEASE TEST AND BUMP dev-lang/tk-8.4.18-r2 TO STABLE??? THIS BUG HAS BEEN FIXED IN UNSTABLE FOR 7 MONTHS!!!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2009-03-09 16:25:14 0000</bug_when>
            <thetext>Why not just request stabilization of tk-8.4.19-r1 which has the fix already included?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wade@waddles.org</who>
            <bug_when>2009-03-20 15:13:09 0000</bug_when>
            <thetext>(In reply to comment #49)
&gt; Why not just request stabilization of tk-8.4.19-r1 which has the fix already
&gt; included?
&gt; 

Well, whatever, but I encourage you to not make &gt;=x11-proto/xproto-7.0.13 a dependency as these patches are only workarounds not proper fixes. The patch should only be applied if &gt;=x11-proto/xproto-7.0.13 is already on the system.

The proper fixes weren&apos;t added to upstream until tk-8.5.4 (cvs rev 1.35.2.1)
http://tktoolkit.cvs.sourceforge.net/viewvc/tktoolkit/tk/generic/tkEvent.c?view=log&amp;pathrev=core-8-5-4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tgall@gentoo.org</who>
            <bug_when>2009-05-01 14:17:17 0000</bug_when>
            <thetext>I just ran into this last night. I don&apos;t see how this bug is either resolved/fixed at least for the random users of gentoo. 

In my case I ran into this on x86_64. (Tho curiously I didn&apos;t run into this on ppc64 which makes me wonder if maybe the amd64 team is just behind on bugs?!?)

 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2009-05-01 19:30:12 0000</bug_when>
            <thetext>please, include with your reports the output of:

# emerge -pv dev-lang/tcl dev-lang/tk x11-proto/xproto

many ppl are reporting different cases, and it becomes difficult to track the progress of this pr</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>patrick@gentoo.org</who>
            <bug_when>2009-05-01 20:17:44 0000</bug_when>
            <thetext>Seems to still hit people. Reopening.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>openhs@users.sourceforge.net</who>
            <bug_when>2009-05-03 09:25:40 0000</bug_when>
            <thetext>On amd64 system here:
 - with tk-8.4.18 - broken; same error
 - with tk-8.4.18-r1 - works fine

Tested with wish and tkabber.

[ebuild   R   ] dev-lang/tcl-8.4.18  USE=&quot;threads -debug&quot; 0 kB
[ebuild   R   ] x11-proto/xproto-7.0.14  0 kB
[ebuild   R   ] dev-lang/tk-8.4.18-r1  USE=&quot;threads -debug&quot; 0 kB

Please stabilize tk-8.4.18-r1.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maialovic@gmail.com</who>
            <bug_when>2009-05-04 18:23:09 0000</bug_when>
            <thetext>my bugs http://bugs.gentoo.org/show_bug.cgi?id=267979 was  partially resolved using the tk-8.4.18-r1 packages.

i say to stabilize this package</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>saboya@gmail.com</who>
            <bug_when>2009-05-04 19:41:10 0000</bug_when>
            <thetext>Had this problem when trying to run idle. Emerging =dev-lang/tk-8.4.18-r1 fixed it for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2009-05-07 17:25:16 0000</bug_when>
            <thetext>=dev-lang/tk-8.4.18-r1 is going stable soon. check bug #268174</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2009-05-12 20:10:47 0000</bug_when>
            <thetext>so it&apos;s finally fixed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zorry@ume.nu</who>
            <bug_when>2009-05-22 23:53:02 0000</bug_when>
            <thetext>Patch from comment #2 works on amd64
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2009-05-29 20:25:00 0000</bug_when>
            <thetext>Is this supposed to be fixed now?

I just finished a fresh install of Gentoo on a new computer. Insight is not working and it seems to be the same problem. Here is some output from this new Gentoo install (it is on a Pentium D machine). All of the other programs that I installed are working fine. I shouldn&apos;t have to reference this PR to get insight to work. Using &apos;emerge insight&apos; should take care of everything for me.

dev ~ # emerge -p xproto

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-proto/xproto-7.0.14 
dev ~ # emerge -p tk     

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/tk-8.5.7 
dev ~ # emerge -p insight

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-util/insight-6.8 
dev ~ # insight
Tk_Init failed: Can&apos;t find a usable tk.tcl in the following directories: 
    /usr/share/insight/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.1/library /tk8.4.1/library

/usr/share/insight/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
&quot;bind Listbox &lt;MouseWheel&gt; {
    %W yview scroll [expr {- (%D / 120) * 4}] units
}&quot;
    (file &quot;/usr/share/insight/tk8.4/listbox.tcl&quot; line 182)
    invoked from within
&quot;source /usr/share/insight/tk8.4/listbox.tcl&quot;
    (in namespace eval &quot;::&quot; script line 1)
    invoked from within
&quot;namespace eval :: [list source [file join $::tk_library $file.tcl]]&quot;
    (procedure &quot;SourceLibFile&quot; line 2)
    invoked from within
&quot;SourceLibFile listbox&quot;
    (in namespace eval &quot;::tk&quot; script line 4)
    invoked from within
&quot;namespace eval ::tk {
        SourceLibFile button
        SourceLibFile entry
        SourceLibFile listbox
        SourceLibFile menu
        SourceLibFile panedwindow
        SourceLibFile ...&quot;
    invoked from within
&quot;if {$::tk_library ne &quot;&quot;} {
    if {[string equal $tcl_platform(platform) &quot;macintosh&quot;]} {
        proc ::tk::SourceLibFile {file} {
            if {[catch {
                namesp...&quot;
    (file &quot;/usr/share/insight/tk8.4/tk.tcl&quot; line 393)
    invoked from within
&quot;source /usr/share/insight/tk8.4/tk.tcl&quot;
    (&quot;uplevel&quot; body line 1)
    invoked from within
&quot;uplevel #0 [list source $file]&quot;


This probably means that tk wasn&apos;t installed properly.

dev ~ # </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devinsteffler@gmail.com</who>
            <bug_when>2009-06-08 12:06:43 0000</bug_when>
            <thetext>I don&apos;t have to rebuild tcl and tk to fix this problem.

Going to xproto 7.0.12 and rebuilding insight fixes it for me:
- put this line in /usr/portage/profiles/package.mask:
&gt;=x11-proto/xproto-7.0.13
- emerge xproto
- emerge insight

Is this bug supposed to be fixed now so that the above is not required?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mescalinum@gentoo.org</who>
            <bug_when>2009-06-08 13:30:47 0000</bug_when>
            <thetext>your problem it&apos;s not about xproto and tcl, it&apos;s insight being broken. please report that in another bug and file it under insight.
in addition, insight ships his own (8.4) version of the tcl libraries, which makes it more and more broken.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hainaye@hotmail.com</who>
            <bug_when>2009-09-21 09:58:14 0000</bug_when>
            <thetext>Created an attachment (id=204779)
.patch

</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>159623</attachid>
            <date>2008-07-05 12:42 0000</date>
            <desc>tk-8.4.18-tkBind.patch</desc>
            <filename>tk-8.4.18-tkBind.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHRrOC40LjE4LW9yaWcvZ2VuZXJpYy90a0JpbmQuYwkyMDA2LTA3LTIxIDA4OjI2OjU0LjAw
MDAwMDAwMCArMDIwMAorKysgdGs4LjQuMTgvZ2VuZXJpYy90a0JpbmQuYwkyMDA4LTA3LTA1IDEy
OjE3OjEwLjAwMDAwMDAwMCArMDIwMApAQCAtNTg2LDYgKzU4Niw5IEBACiAgICAvKiBDb2xvcm1h
cE5vdGlmeSAqLwkJQ09MT1JNQVAsCiAgICAvKiBDbGllbnRNZXNzYWdlICovCQkwLAogICAgLyog
TWFwcGluZ05vdGlmeSAqLwkJMCwKKyNpZmRlZiBHZW5lcmljRXZlbnQKKyAgIC8qIEdlbmVyaWNF
dmVudCAqLyAgICAgICAgICAwLAorI2VuZGlmIAogICAgLyogVmlydHVhbEV2ZW50ICovCQlWSVJU
VUFMLAogICAgLyogQWN0aXZhdGUgKi8JCUFDVElWQVRFLAkgICAgCiAgICAvKiBEZWFjdGl2YXRl
ICovCQlBQ1RJVkFURSwK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>161242</attachid>
            <date>2008-07-24 06:37 0000</date>
            <desc>tk-8.4-lastevent.patch</desc>
            <filename>tk-8.4-lastevent.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdlbmVyaWMvdGsuaC5vcmlnCTIwMDgtMDItMDYgMTY6MzE6NDAuMDAwMDAwMDAwICswMTAw
CisrKyBnZW5lcmljL3RrLmgJMjAwOC0wNy0yNCAwODoyMTo0Ni4wMDAwMDAwMDAgKzAyMDAKQEAg
LTYzNSwxNyArNjM1LDE1IEBACiAgKgogICotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KICAqLwotI2RlZmlu
ZSBWaXJ0dWFsRXZlbnQJICAgIChMQVNURXZlbnQpCi0jZGVmaW5lIEFjdGl2YXRlTm90aWZ5CSAg
ICAoTEFTVEV2ZW50ICsgMSkKLSNkZWZpbmUgRGVhY3RpdmF0ZU5vdGlmeSAgICAoTEFTVEV2ZW50
ICsgMikKLSNkZWZpbmUgTW91c2VXaGVlbEV2ZW50ICAgICAoTEFTVEV2ZW50ICsgMykKLSNkZWZp
bmUgVEtfTEFTVEVWRU5UCSAgICAoTEFTVEV2ZW50ICsgNCkKKyNkZWZpbmUgVmlydHVhbEV2ZW50
CSAgICAoTWFwcGluZ05vdGlmeSArIDEpCisjZGVmaW5lIEFjdGl2YXRlTm90aWZ5CSAgICAoTWFw
cGluZ05vdGlmeSArIDIpCisjZGVmaW5lIERlYWN0aXZhdGVOb3RpZnkgICAgKE1hcHBpbmdOb3Rp
ZnkgKyAzKQorI2RlZmluZSBNb3VzZVdoZWVsRXZlbnQgICAgIChNYXBwaW5nTm90aWZ5ICsgNCkK
KyNkZWZpbmUgVEtfTEFTVEVWRU5UCSAgICAoTWFwcGluZ05vdGlmeSArIDUpCiAKICNkZWZpbmUg
TW91c2VXaGVlbE1hc2sJICAgICgxTCA8PCAyOCkKLQogI2RlZmluZSBBY3RpdmF0ZU1hc2sJICAg
ICgxTCA8PCAyOSkKICNkZWZpbmUgVmlydHVhbEV2ZW50TWFzayAgICAoMUwgPDwgMzApCi0jZGVm
aW5lIFRLX0xBU1RFVkVOVAkgICAgKExBU1RFdmVudCArIDQpCiAKIAogLyoK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>184467</attachid>
            <date>2009-03-09 16:03 0000</date>
            <desc>Reworked ebuild for dev-lang/tk-8.4.18-r2</desc>
            <filename>tk-8.4.18-r2.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA4IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCldBTlRfQVVUT0NPTkY9bGF0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liZGlyfS90ayR7djF9L2luY2x1ZGUvZ2VuZXJpYwoJZG9pbnMgIiR7
U30iL2dlbmVyaWMvKi5oIHx8IGRpZQoJcm0gLWYgIiR7RH0iL3Vzci8ke215bGliZGlyfS90ayR7
djF9L2luY2x1ZGUvZ2VuZXJpYy90ay5oCglybSAtZiAiJHtEfSIvdXNyLyR7bXlsaWJkaXJ9L3Rr
JHt2MX0vaW5jbHVkZS9nZW5lcmljL3RrRGVjbHMuaAoJcm0gLWYgIiR7RH0iL3Vzci8ke215bGli
ZGlyfS90ayR7djF9L2luY2x1ZGUvZ2VuZXJpYy90a1BsYXREZWNscy5oCgoJIyBpbnN0YWxsIHN5
bWxpbmsgZm9yIGxpYnJhcmllcwoJI2Rvc3ltIGxpYnRrJHt2MX0uYSAvdXNyLyR7bXlsaWJkaXJ9
L2xpYnRrLmEKCWlmIHVzZSBkZWJ1ZyA7IHRoZW4KCQlkb3N5bSBsaWJ0ayR7djF9Zy5zbyAvdXNy
LyR7bXlsaWJkaXJ9L2xpYnRrJHt2MX0uc28KCQlkb3N5bSBsaWJ0a3N0dWIke3YxfWcuYSAvdXNy
LyR7bXlsaWJkaXJ9L2xpYnRrc3R1YiR7djF9LmEKCQlkb3N5bSAuLi90ayR7djF9Zy9wa2dJbmRl
eC50Y2wgL3Vzci8ke215bGliZGlyfS90ayR7djF9L3BrZ0luZGV4LnRjbAoJZmkKCWRvc3ltIGxp
YnRrJHt2MX0uc28gL3Vzci8ke215bGliZGlyfS9saWJ0ay5zbwoJZG9zeW0gbGlidGtzdHViJHt2
MX0uYSAvdXNyLyR7bXlsaWJkaXJ9L2xpYnRrc3R1Yi5hCgoJZG9zeW0gd2lzaCR7djF9IC91c3Iv
YmluL3dpc2gKCgljZCAiJHtTfSIKCWRvZG9jIENoYW5nZUxvZyBSRUFETUUgY2hhbmdlcyBsaWNl
bnNlLnRlcm1zCn0K
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>204779</attachid>
            <date>2009-09-21 09:58 0000</date>
            <desc>.patch</desc>
            <filename>认知无线电的路由算法</filename>
            <type>text/plain</type>
            <data encoding="base64">CeS7juaXoOe6v+mAmuS/oeaKleWFpeWIsOWVhueUqO+8jOmikeiwsei1hOa6kOWwseaYr+acgOWu
nei0teeahOi1hOa6kO+8jOmaj+edgOaXoOe6v+WSjOenu+WKqOmAmuS/oeeahOi/hemAn+WPkeWx
le+8jOWmguS9leWFheWIhuWIqeeUqOepuumXsueahOmikeauteW3sue7j+aIkOS4uuebruWJjeeg
lOeptueahOeDreeCueOAguiupOefpeaXoOe6v+eUte+8iENvZ25pdGl2ZSBSYWRpbyxDUu+8ieaK
gOacr+WwseaPkOS+m+S6huS4gOenjeaWsOeahOacuuWItueBtea0u+eahOS9v+eUqOaXoOe6v+eU
temikeiwseOAggo=
</data>        

          </attachment>
    </bug>

</bugzilla>