Skip Menu |

This queue is for tickets about the Tk-Pod CPAN distribution.

Report information
The Basics
Id: 6301
Status: resolved
Priority: 0/
Queue: Tk-Pod

People
Owner: Nobody in particular
Requestors: Marek.Rouchal [...] gmx.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Pod tree does not follow symlinks
In our development environment we have a directory structure that contains symlinks to directories. tkpod (i.e. the pod tree browser) does not find perl modules which are located below such a linked path. Example: /usr/local/lib/perl/MyClass@ -> /opt/local/share/lib/perl/MyClass and there is: /opt/local/share/lib/perl/MyClass/MySth.pm and $PERL5LIB = /usr/local/lib/perl ...then tkpod does not find MyClass::MySth Can you add "follow symlinks" on directories? Cheers, Marek
From: slaven [...] rezic.de
CC: undisclosed-recipients: ;
To: bug-Tk-Pod [...] rt.cpan.org
Subject: Re: [cpan #6301] Pod tree does not follow symlinks
Date: Fri, 14 May 2004 12:52:34 +0000
RT-Send-Cc:
" via RT" <bug-Tk-Pod@rt.cpan.org> wrote: Show quoted text
> > This message about Tk-Pod was sent to you by MAREKR <MAREKR@cpan.org> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=6301 > > > In our development environment we have a directory structure that > contains symlinks to directories. tkpod (i.e. the pod tree browser) > does not find perl modules which are located below such a linked path. > Example: > /usr/local/lib/perl/MyClass@ -> /opt/local/share/lib/perl/MyClass > and there is: > /opt/local/share/lib/perl/MyClass/MySth.pm > and $PERL5LIB = /usr/local/lib/perl > ...then tkpod does not find MyClass::MySth > > Can you add "follow symlinks" on directories? >
Does this patch wokrk for you? Index: Pod/FindPods.pm =================================================================== RCS file: /cvsroot/srezic/Tk-Pod/Pod/FindPods.pm,v retrieving revision 1.7 diff -u -p -r1.7 FindPods.pm --- Pod/FindPods.pm 19 Apr 2004 10:56:23 -0000 1.7 +++ Pod/FindPods.pm 14 May 2004 12:52:51 -0000 @@ -226,13 +226,15 @@ sub pod_find { } }; + my %opts = (follow => 1, follow_skip => 2); + foreach my $inc (@dirs) { $curr_dir = $inc; - find($wanted, $inc); + find({ %opts, wanted => $wanted }, $inc); } foreach my $inc (@script_dirs) { - find($wanted_scripts, $inc); + find({ %opts, wanted => $wanted_scripts }, $inc); } $self->{pods} = \%pods; Regards, Slaven -- __o Slaven Rezic _`\<,_ slaven <at> rezic <dot> de __(_)/ (_)____ Show quoted text
______________________________________________________________________________
[slaven@rezic.de - Fri May 14 08:53:42 2004]: Show quoted text
> Does this patch wokrk for you?
Yes - perfectly! Thanks, Marek Show quoted text
> Index: Pod/FindPods.pm > =================================================================== > RCS file: /cvsroot/srezic/Tk-Pod/Pod/FindPods.pm,v > retrieving revision 1.7 > diff -u -p -r1.7 FindPods.pm > --- Pod/FindPods.pm 19 Apr 2004 10:56:23 -0000 1.7 > +++ Pod/FindPods.pm 14 May 2004 12:52:51 -0000 > @@ -226,13 +226,15 @@ sub pod_find { > } > }; > > + my %opts = (follow => 1, follow_skip => 2); > + > foreach my $inc (@dirs) { > $curr_dir = $inc; > - find($wanted, $inc); > + find({ %opts, wanted => $wanted }, $inc); > } > > foreach my $inc (@script_dirs) { > - find($wanted_scripts, $inc); > + find({ %opts, wanted => $wanted_scripts }, $inc); > } > > $self->{pods} = \%pods;
0.9997 is out now with the fix for following symlinks. Regards, Slaven