[MacPorts] #71221: Testing p5.34-fcgi fails because FCGI::Client is not installed

MacPorts noreply at macports.org
Fri Nov 1 11:54:40 UTC 2024


#71221: Testing p5.34-fcgi fails because FCGI::Client is not installed
-------------------------+--------------------------
  Reporter:  ballapete   |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.10.4
Resolution:              |   Keywords:  sonoma intel
      Port:  p5.34-fcgi  |
-------------------------+--------------------------

Comment (by ballapete):

 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)

-- 
Ticket URL: <https://trac.macports.org/ticket/71221#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list