Ali <a...@infomed.sld.cu> writes:

> Colin
>
> where should i apply that patch? the path mTk/generic/tk.h doesn't exist
> in my perl-tk package:
>
> a...@stallman:~$ dpkg -L perl-tk | grep tk.h
> /usr/bin/ptksh
> /usr/lib/perl5/Tk/pTk/tk.h
> /usr/share/man/man1/ptksh.1p.gz
> /usr/share/doc/perl-tk/hello
>
> anyway, I try modifying /usr/lib/perl5/Tk/pTk/tk.h as the patch
> suggested and the error remains.

You have to grab the sources from CPAN
<http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.028.tar.gz>,
apply the patch and recompile.

Patching the installed tk.h of course does not help.

Regards,
    Slaven

>
> Best wishes,
>  Ali
>
> On Fri, 2009-02-20 at 09:16 +0000, co...@tuckley.org wrote:
>> I'm unable to reproduce this on my lenny/KDE system, however there are  
>> enough reports of it around the web that it obviously is a real problem.
>> 
>> Upstream have proposed a different fix to the one mentioned in the  
>> Gentoo bug report. I have attached a copy of the patch - can you try  
>> it and let us know if it fixes the problem for you.
>> 
>> Colin
>> plain text document attachment (patch-lastevent)
>> --- pTk/mTk/generic/tk.h.orig        2007-05-05 20:41:02.000000000 +0200
>> +++ pTk/mTk/generic/tk.h     2008-08-27 03:16:31.000000000 +0200
>> @@ -677,17 +677,15 @@
>>   *
>>   
>> *---------------------------------------------------------------------------
>>   */
>> -#define VirtualEvent        (LASTEvent)
>> -#define ActivateNotify      (LASTEvent + 1)
>> -#define DeactivateNotify    (LASTEvent + 2)
>> -#define MouseWheelEvent     (LASTEvent + 3)
>> -#define TK_LASTEVENT        (LASTEvent + 4)
>> +#define VirtualEvent        (MappingNotify + 1)
>> +#define ActivateNotify      (MappingNotify + 2)
>> +#define DeactivateNotify    (MappingNotify + 3)
>> +#define MouseWheelEvent     (MappingNotify + 4)
>> +#define TK_LASTEVENT        (MappingNotify + 5)
>>  
>>  #define MouseWheelMask      (1L << 28)
>> -
>>  #define ActivateMask        (1L << 29)
>>  #define VirtualEventMask    (1L << 30)
>> -#define TK_LASTEVENT        (LASTEvent + 4)
>>  
>> 
>>  /*
>
>
> ---------------------------------------
>     Red Telematica de Salud - Cuba
>         CNICM - Infomed
>
>
>

-- 
Slaven Rezic - slaven <at> rezic <dot> de

    tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN)
    http://ptktools.sourceforge.net/#tkrevdiff



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to