Skip Menu |
 

This queue is for tickets about the File-Finder CPAN distribution.

Report information
The Basics
Id: 13993
Status: open
Priority: 0/
Queue: File-Finder

People
Owner: MERLYN [...] cpan.org
Requestors: CHORNY [...] cpan.org
tshinnic [...] io.com
Cc:
AdminCc:

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

Attachments


MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
Subject: Cannot install under Win32 Perl (ActiveState)
Content-Type: multipart/mixed; boundary="----------=_1123018341-12840-0"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1058
File::Finder will not install under ActiveState Win32 Perl due to unguarded reliance on 'get(pw|gr)ent' APIs. The tests fail trying to test the File::Finder::Steps features. FF::Steps tries to initialize itself with values from getpwent and getgrent upon any use of the methods user(), nouser(), group(), nogroup(), and ls(). These two APIs are not available under Win32 Perls. This may be why ActiveState has a ppm only for release 0.01. You would know better which way of testing for Win32 Perls is best. The included tar.gz file shows fixes using testing of $Config::Config{d_xxxxxx} and also testing against $^O . The included patches use $^O as better due to not dragging in Config. They are workaround quality only, and you can undoubtedly come up with better. Patches are needed in both the Steps.pm module and the test 05-steps.t s for Steps features. With these workaround patches File-Finder will install under Win32 Perl. You may want to also add a note to the pod saying that the above-named Steps methods are not available under Win32.
Content-Type: application/x-gzip-compressed; name="file-finder-0.53.win32.patch.tar.gz"
Content-Disposition: inline; filename="file-finder-0.53.win32.patch.tar.gz"
Content-Transfer-Encoding: base64
Content-Length: 8834
Download file-finder-0.53.win32.patch.tar.gz
application/x-gzip-compressed 8.6k

Message body not shown because it is not plain text.

MIME-Version: 1.0
Subject: Cannot install under Win32 Perl
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26544-1269970118-1444.13993-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1407
Download (untitled) / with headers
text/plain 1.3k
On Tue Aug 02 17:32:21 2005, guest wrote: Show quoted text
> File::Finder will not install under ActiveState Win32 Perl due to > unguarded reliance on 'get(pw|gr)ent' APIs. The tests fail trying > to test the File::Finder::Steps features. > > FF::Steps tries to initialize itself with values from getpwent and > getgrent upon any use of the methods user(), nouser(), group(), > nogroup(), and ls(). These two APIs are not available under Win32 > Perls. This may be why ActiveState has a ppm only for release > 0.01. > > You would know better which way of testing for Win32 Perls is best. > The included tar.gz file shows fixes using testing of > $Config::Config{d_xxxxxx} and also testing against $^O . The > included patches use $^O as better due to not dragging in Config. > They are workaround quality only, and you can undoubtedly come up > with better. > > Patches are needed in both the Steps.pm module and the test 05-steps.t > s for Steps features. With these workaround patches File-Finder > will install under Win32 Perl. > > You may want to also add a note to the pod saying that the above-named > Steps methods are not available under Win32.
This applies to Strawberry, too, btw, so bumping. (File::Finder is used by Test::Fixme, which I would like to be able to use in the Perl::Dist::* modules as a test without having to force File::Finder's installation.)
From merlyn [...] stonehenge.com Tue Mar 30 14: 53:28 2010
CC: undisclosed-recipients:;
MIME-Version: 1.0
X-Spam-Status: No, score=-8.253 tagged_above=-99.9 required=10 tests=[AWL=1.653, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SPF_FAIL=0.693] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-26544-1269970118-771.13993-5-0 [...] rt.cpan.org> (Curtis Jewell via's message of "Tue, 30 Mar 2010 13:28:38 -0400")
X-Spam-Flag: NO
References: <RT-Ticket-13993 [...] rt.cpan.org> <rt-3.8.HEAD-26544-1269970118-771.13993-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <86ljd9zlnj.fsf [...] red.stonehenge.com>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -8.253
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 588942402F5 for <cpan-bug+File-Finder [...] hipster.bestpractical.com>; Tue, 30 Mar 2010 14:53:28 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j0FQ9dDOK7oS for <cpan-bug+File-Finder [...] hipster.bestpractical.com>; Tue, 30 Mar 2010 14:53:14 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 5FD57240582 for <bug-File-Finder [...] rt.cpan.org>; Tue, 30 Mar 2010 14:53:10 -0400 (EDT)
Received: (qmail 29980 invoked by uid 103); 30 Mar 2010 18:53:29 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 30 Mar 2010 18:53:29 -0000
Received: from red.stonehenge.com (HELO red.stonehenge.com) (208.79.95.2) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Tue, 30 Mar 2010 11:53:23 -0700
Received: by red.stonehenge.com (Postfix, from userid 1001) id C854938C3; Tue, 30 Mar 2010 11:53:20 -0700 (PDT)
Delivered-To: cpan-bug+File-Finder [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #13993] Cannot install under Win32 Perl
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix)
Return-Path: <merlyn [...] stonehenge.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+File-Finder [...] hipster.bestpractical.com
X-RT-Mail-Extension: file-finder
Date: Tue, 30 Mar 2010 11:53:20 -0700
X-Mayan-Date: Long count = 12.19.17.4.3; tzolkin = 8 Akbal; haab = 1 Uayeb
X-Spam-Level:
To: bug-File-Finder [...] rt.cpan.org
From: merlyn [...] stonehenge.com (Randal L. Schwartz)
RT-Message-ID: <rt-3.8.HEAD-26542-1269975228-310.13993-0-0 [...] rt.cpan.org>
Content-Length: 739
Download (untitled) / with headers
text/plain 739b
Show quoted text
>>>>> "Curtis" == Curtis Jewell via RT <bug-File-Finder@rt.cpan.org> writes:
Show quoted text
Curtis> This applies to Strawberry, too, btw, so bumping.
Show quoted text
Curtis> (File::Finder is used by Test::Fixme, which I would like to be able to Curtis> use in the Perl::Dist::* modules as a test without having to force Curtis> File::Finder's installation.)
Yeah, sorry. Haven't had time to look at this yet, and I don't have access to any windows machines. Patches welcome! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-26542-1269975228-310.13993-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
References: <RT-Ticket-13993 [...] rt.cpan.org> <rt-3.8.HEAD-26544-1269970118-771.13993-5-0 [...] rt.cpan.org> <86ljd9zlnj.fsf [...] red.stonehenge.com> <rt-3.8.HEAD-26542-1269975228-310.13993-0-0 [...] rt.cpan.org>
Content-Type: multipart/mixed; boundary="----------=_1333133109-10811-485"
Message-ID: <rt-3.8.HEAD-10811-1333133109-800.13993-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 240
Download (untitled) / with headers
text/plain 240b
On Tue Mar 30 14:53:48 2010, merlyn@stonehenge.com wrote: Show quoted text
> Yeah, sorry. Haven't had time to look at this yet, and I don't > have access to any windows machines. Patches welcome!
Patch attached. -- Alexandr Ciornii, http://chorny.net
MIME-Version: 1.0
Subject: 05-steps.t.patch
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/x-patch; name="05-steps.t.patch"
Content-Disposition: inline; filename="05-steps.t.patch"
Content-Transfer-Encoding: binary
Content-Length: 643
Download 05-steps.t.patch
text/x-diff 643b
--- 05-steps.t.dist 2004-10-07 09:04:12.000000000 +0300 +++ 05-steps.t 2012-03-30 21:42:37.843750000 +0300 @@ -65,6 +65,8 @@ [fin(sub { -f }, '.')], 'all files even after messing with _ pseudo handle'); +SKIP: { +skip 'user/nouser/etc. not supported on Windows', 8 if $^O eq 'MSWin32'; is_deeply([File::Finder->user($<)->in(qw(.))], [fin(sub { -o }, '.')], 'owned'); @@ -96,6 +98,7 @@ is_deeply([File::Finder->not->nogroup->in(qw(.))], [fin(sub { defined getgrgid((stat)[5]) }, '.')], 'not nogroup'); +} is_deeply([File::Finder->links('-2')->in(qw(.))], [fin(sub { (stat)[3] < 2 }, '.')],


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.