Skip Menu |
 

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 32093
Status: resolved
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: emazep [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 3.2501
Fixed in: 3.26



Subject: Undefined "mount_flags" sub called in Cygwin.pm.
Download (untitled) / with headers
text/plain 314b
The subroutine Cygwin::mount_flags called at File/Spec/Cygwin.pm lines 117 and 127 is not defined anywhere. Any File::Spec use (which involves &case_tolerant) under Cygwin thus triggers an "undefined subroutine" error (many tests in t/Spec.t fail as well). Thank you for your invaluable work. Emanuele Zeppieri.
From: kwilliams [...] cpan.org
Download (untitled) / with headers
text/plain 357b
Hi Emanuele, Good catch. I think this is only a problem on Cygwin (not other platforms calling functions in Cygwin.pm) and when using a perl older than 5.10. The mount_flags() function was added here: http://public.activestate.com/cgi-bin/perlbrowse/p/31708 Perhaps the right thing to do is to just return 1 if &mount_flags() isn't defined. -Ken
From: emazep [...] gmail.com
Download (untitled) / with headers
text/plain 1.1k
On Mon Jan 07 23:03:33 2008, KWILLIAMS wrote: Show quoted text
> Hi Emanuele, > > Good catch. I think this is only a problem on Cygwin (not other > platforms calling functions in > Cygwin.pm) and when using a perl older than 5.10. The mount_flags() > function was added here: > > http://public.activestate.com/cgi-bin/perlbrowse/p/31708
Hi Ken, yes, I can confirm that I've tested this only on Cygwin's perl 5.8.8 (which is the perl shipped with the current Cygwin distro). (Of course it happens also on Windows when using the Cygwin's perl, since in that case it's $^O eq 'cygwin' anyway.) Show quoted text
> Perhaps the right thing to do is to just return 1 if &mount_flags() > isn't defined.
Yes I think it should be safe (to make the File::Spec::Cygwin::case_tolerant method just return 1 when &mount_flags() isn't defined). Really, as you perfectly know Cygwin permits to create case sensitive Cygwin-only-managed mounts (starting from cygwin 1.5.0), but it's still considered experimental and it certainly falls into a niche use, so I think it's safe to make the extra checks happen only for future Cygwins/perls. (Other than this superficial consideration, I'm by no mean a Cygwin expert.) Thank you! -Emanuele
From: emazep [...] gmail.com
Download (untitled) / with headers
text/plain 129b
I can confirm that PathTools-3.26 solves the problem (tested on Cygwin 1.5.25-7 / perl 5.8.8). Thank you Ken! Cheers, Emanuele.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.