Opened 5 days ago

Last modified 4 days ago

#71221 new defect

Testing p5.34-fcgi fails because FCGI::Client is not installed

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.4
Keywords: sonoma intel Cc:
Port: p5.34-fcgi

Description

Can't locate FCGI/Client.pm in @INC (you may need to install the FCGI::Client module) (@INC contains: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5-fcgi/p5.34-fcgi/work/FCGI-0.82/blib/lib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5-fcgi/p5.34-fcgi/work/FCGI-0.82/blib/arch /opt/local/lib/perl5/site_perl/5.34/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.34 /opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.34 /opt/local/lib/perl5/5.34/darwin-thread-multi-2level /opt/local/lib/perl5/5.34 .) at t/02-unix_domain_socket.t line 6.
BEGIN failed--compilation aborted at t/02-unix_domain_socket.t line 6.

Attachments (1)

main.log (353.8 KB) - added by ballapete (Peter "Pete" Dyballa) 5 days ago.
Main.log from intel macOS Sonoma, 14.6.1

Download all attachments as: .zip

Change History (3)

Changed 5 days ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from intel macOS Sonoma, 14.6.1

comment:1 Changed 5 days ago by ballapete (Peter "Pete" Dyballa)

How can I code test dependencies in Perl Portfiles? p5-file-homedir for example hardcodes the path to Perl in its test files à la #!/usr/bin/perl so that I added at the Portfile's end these lines:

pre-test {
    reinplace "s|/usr/bin/perl|/usr/bin/env perl${perl5.major}|" ${worksrcpath}/t/01_compile.t
    reinplace "s|/usr/bin/perl|/usr/bin/env perl${perl5.major}|" ${worksrcpath}/t/02_main.t
    reinplace "s|/usr/bin/perl|/usr/bin/env perl${perl5.major}|" ${worksrcpath}/t/10_test.t
    reinplace "s|/usr/bin/perl|/usr/bin/env perl${perl5.major}|" ${worksrcpath}/t/11_darwin.t
    reinplace "s|/usr/bin/perl|/usr/bin/env perl${perl5.major}|" ${worksrcpath}/t/12_darwin_carbon.t
    reinplace "s|/usr/bin/perl|/usr/bin/env perl${perl5.major}|" ${worksrcpath}/t/13_darwin_cocoa.t
    reinplace "s|/usr/bin/perl|/usr/bin/env perl${perl5.major}|" ${worksrcpath}/t/20_empty_home.t
}

test.run            yes

At least they patch the test files… (but test still fail)

comment:2 Changed 4 days ago by ballapete (Peter "Pete" Dyballa)

The issue is being tracked here: https://github.com/perl-catalyst/FCGI/issues/13. The cause might be that the socket is being created somewhere below ${worksrcpath} and so its path name is much too long than allowed.

Note: See TracTickets for help on using tickets.