houseabsolute / HTML-Mason

High-performance, dynamic web site authoring system
https://metacpan.org/release/HTML-Mason/
Other
9 stars 18 forks source link

Win32 incomparibility - getpwuid(), getgrgid() #26

Open autarch opened 4 years ago

autarch commented 4 years ago

Migrated from rt.cpan.org #57038 (status was 'stalled')

Requestors:

From kmx@cpan.org (@kmx) on 2010-04-29 12:41:41 :

Hi,

I have experienced the following error with Catalyst-View-Manson 0.18 (HTML-Mason 1.45) on Win32 Strawberry Perl 5.12.0

Failed test 'array root as comp_root doesn't get stringified'

at t/comp_root_ref.t line 40.

died: The getpwuid function is unimplemented at

D:/strawberry32/perl/site/lib/HTML/Mason/Interp.pm line 303.

Looks like you failed 1 test of 5.

t/comp_root_ref.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests

and it leeds me to HTML::Mason

Would it be possible to change "sub _make_data_subdir" in lib/HTML/Mason/Interp.pm to skip getpwuid() + getgrgid() when on MS Windows platform? If I understand the code the values (user + group) are used just in error message.

Thanks

-- kmx

autarch commented 4 years ago

From drolsky@cpan.org (@autarch) on 2010-05-22 03:48:47 :

On Thu Apr 29 08:41:41 2010, KMX wrote:

Hi,

I have experienced the following error with Catalyst-View-Manson 0.18 (HTML-Mason 1.45) on Win32 Strawberry Perl 5.12.0

Failed test 'array root as comp_root doesn't get stringified'

at t/comp_root_ref.t line 40.

died: The getpwuid function is unimplemented at

D:/strawberry32/perl/site/lib/HTML/Mason/Interp.pm line 303.

Looks like you failed 1 test of 5.

t/comp_root_ref.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests

and it leeds me to HTML::Mason

Would it be possible to change "sub _make_data_subdir" in lib/HTML/Mason/Interp.pm to skip getpwuid() + getgrgid() when on MS Windows platform? If I understand the code the values (user + group) are used just in error message.

Patches with a test would be welcome, but I find it hard to believe that this bug has existed for so long and no one else has had a problem with it.

Weird.