[MacPorts] #61221: ghc @8.10.1: testing separately fails

MacPorts noreply at macports.org
Thu Sep 24 04:26:25 UTC 2020


#61221: ghc @8.10.1: testing separately fails
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  essandess
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.3
 Keywords:              |       Port:  ghc
------------------------+-----------------------
 I built ghc with `sudo port build ghc`, it completed successfully, and
 then I tried to test it with `sudo port test ghc`, which failed:

 {{{
 :debug:test system:  cd "/opt/local/var/macports/build
 /_Users_rschmidt_macports_macports-ports-ryandesign-
 fork_lang_ghc/ghc/work/ghc-8.10.1/testsuite" && /usr/bin/make test
 :info:test make: *** No rule to make target `test'.  Stop.
 }}}

 This appears to be because the port sets test.dir within a pre-build
 block. This block would only run when the build phase is run. If I run the
 test phase separately from the build phase, as I did above, then that pre-
 build block will not run. The port needs to be changed so that test.dir is
 set to the correct value unconditionally, either outside of any block or
 if it can only be computed at runtime then within a pre-test block.

-- 
Ticket URL: <https://trac.macports.org/ticket/61221>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list