NetBSD Problem Report #29606

From www@netbsd.org  Sun Mar  6 02:32:13 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 8552163B116; Sun,  6 Mar 2005 02:32:13 +0000 (UTC)
Message-Id: <20050306023213.8552163B116@narn.netbsd.org>
Date: Sun,  6 Mar 2005 02:32:13 +0000 (UTC)
From: gan@starling.us
Reply-To: gan@starling.us
To: gnats-bugs@netbsd.org
Subject: Error from Perl/Tk on script which formerly worked on NetBSD 1.6.2 
X-Send-Pr-Version: www-1.0

>Number:         29606
>Category:       pkg
>Synopsis:       Error from Perl/Tk on script which formerly worked on NetBSD 1.6.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    heinz
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 06 02:33:00 +0000 2005
>Closed-Date:    Tue Jan 01 22:01:50 +0000 2008
>Last-Modified:  Tue Jan 01 22:01:50 +0000 2008
>Originator:     Gan Uesli Starling
>Release:        NetBSD 2.0 for i386
>Organization:
>Environment:
NetBSD baal.amalekite.net 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
An editor script in pure Perl exists on CPAN at this URL:

http://cpan.org/authors/id/T/TP/TPARVIAI/t-pad-4.04.pl

I had used it regularly for more than a year on NetBSD 1.6.2. Now, after
upgrading to NetBSD 2.0 that script fails like so:

baal: {9} perl t-pad-4.04.pl &
[1] 22738
baal: {10} Cannot find KDESite at /usr/pkg/lib/perl5/site_perl/5.8.6/i386-netbsd-thread-multi/Tk/Widget.pm line 256

FYI the Perl I am using on NetBSD 2.0 is this version:
baal: {3} pkg_info perl
Information for perl-5.8.6nb2:

And the Perl/Tk is this version:
baal: {8} pkg_info p5-Tk
Information for p5-Tk-804.027nb2:

As told above, I had used this script for more than a year on NetBSD 1.6.2 and Win2K both with equal facility. Now it works only on Win32
but not any more on NetBSD.
>How-To-Repeat:
Download this Perl/Tk script from CPAN and put it anywhere.

http://cpan.org/authors/id/T/TP/TPARVIAI/t-pad-4.04.pl

cd to wherever the script is and call like so:

perl t-pad-4.04.pl
>Fix:

>Release-Note:

>Audit-Trail:
From: Gan Uesli Starling <gan@starling.us>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/29606
Date: Sat, 09 Apr 2005 23:56:45 -0400

 Some further poking around into the Perl script which fails in
 NetBSD 2.0 but ran in NetBSD 1.6.1 reveals that the problem has to do
 with the module below...

 use Tk::DropSite;

 ...and in particular with the routine below...

 # Accept drops from an external application
 $nb->DropSite(-dropcommand => \&handleDND,
                -droptypes   => ($^O eq 'MSWin32' or ($^O eq 'cygwin' and
                                $Tk::platform eq 'MSWin32')) ? ['Win32'] :
                                [qw/KDE XDND Sun/]);

 ...which, if I take out the 'KDE' from above, then the script
 will load and run but behave badly. By behaving badly, I mean it will
 open files but display strange character-groups for every line break.

 So perhaps KDESite is part of the Tk module which was present in the
 older version and missing in the new? And, perhaps it is needful for
 the Tk::DropSite module to work on NetBSD? Just a guess...

 Hope that helps,

 Gan

 -- 

   Mistera Sturno - Rarest Extinct Bird

   <(+)__       Gan Uesli Starling
    ((__/)=-    Kalamazoo, MI, USA
     `||`
      ++        http://starling.us

Responsible-Changed-From-To: pkg-manager->heinz
Responsible-Changed-By: heinz@netbsd.org
Responsible-Changed-When: Wed, 03 Oct 2007 22:18:51 +0000
Responsible-Changed-Why:
I will take this.


From: Klaus Heinz <k.heinz@oktsieben.kh-22.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/29606: Error from Perl/Tk on script which formerly worked on NetBSD 1.6.2
Date: Thu, 4 Oct 2007 01:03:10 +0200

 gan@starling.us wrote:

 > Download this Perl/Tk script from CPAN and put it anywhere.

 I have built a small package for this, available at 
   http://www.NetBSD.org/~heinz/t-pad.tar.gz

 >  ...and in particular with the routine below...
 >  
 >  # Accept drops from an external application
 >  $nb->DropSite(-dropcommand => \&handleDND,
 >                 -droptypes   => ($^O eq 'MSWin32' or ($^O eq 'cygwin' and
 >                                 $Tk::platform eq 'MSWin32')) ? ['Win32'] :
 >                                 [qw/KDE XDND Sun/]);
 >  
 >  ...which, if I take out the 'KDE' from above, then the script
 >  will load and run but behave badly. By behaving badly, I mean it will
 >  open files but display strange character-groups for every line break.
 >  
 >  So perhaps KDESite is part of the Tk module which was present in the
 >  older version and missing in the new? And, perhaps it is needful for
 >  the Tk::DropSite module to work on NetBSD? Just a guess...

 This is exactly the root of the problem. According to the file
 "Change.log" from p5-Tk:

   Change 3205 on 2004/03/17 by nick@llama

         Re-factor DragDrop:: Rect and SunDrop so latter works again
         while keeping the fix to local and XDND protocols.
         Remove KDEDrop and KDESite (a weak ad hoc protocol used by KDE 2).

 The files SunSite.pm and XDNDSite.pm are still part of p5-Tk but
 KDESite.pm is not.

 The bad behaviour you write about probably refers to the character
 sequence "\x(d)". I see this as well if I open the file t-pad-4.0.4.pl
 but I can avoid it by enabling the option "CR/LF conversion" from the
 "Misc" menu before loading the file. This is simply the way t-pad
 displays text files coming from Windows, ie with carriage return+linefeed
 as line separator.

 I could not test actual drag-and-drop behaviour, no KDE here.

 Since pkgsrc can do nothing about the vanished KDE support and the
 strange line breaks are not strange at all, I believe this PR could be
 closed. 


 ciao
      Klaus




State-Changed-From-To: open->feedback
State-Changed-By: heinz@netbsd.org
State-Changed-When: Wed, 03 Oct 2007 23:10:08 +0000
State-Changed-Why:
Pkgsrc is most probably innocent. Opinions?


State-Changed-From-To: feedback->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Tue, 01 Jan 2008 22:01:50 +0000
State-Changed-Why:
Feedback timeout.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.