[MacPorts] #61220: ghc: error renaming ".../testsuite": no such file or directory
MacPorts
noreply at macports.org
Thu Sep 24 03:20:46 UTC 2020
#61220: ghc: error renaming ".../testsuite": no such file or directory
------------------------+-----------------------
Reporter: ryandesign | Owner: essandess
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Keywords: | Port: ghc
------------------------+-----------------------
Building ghc failed for reasons specific to my system. I fixed the problem
and tried continuing the ghc build, but then it failed for a different
reason:
{{{
Error: Failed to build ghc: error renaming "/opt/local/var/macports/build
/_Users_rschmidt_macports_macports-ports-ryandesign-
fork_lang_ghc/ghc/work/ghc-8.10.1/testsuite": no such file or directory
}}}
This is happening because the ghc portfile contains this block:
{{{
pre-build {
# test: move extracted testsuite directory to src
xinstall -m 0755 -d ${srcpath}/${distname}
move ${test.dir} ${srcpath}/${distname}/testsuite
test.dir ${srcpath}/${distname}/testsuite
}
}}}
Logically, this block can only succeed the first time it is executed and
will fail if the build phase is interrupted for any reason and later
resumed, which is something that the port should allow to happen.
Can this block be changed to a post-extract block? That way, assuming it
succeeds, the extract phase will be marked completed and the block won't
be run again.
There is no use to setting test.dir in this block, since this block is not
for the test phase. There is a later test.dir setting in the portfile
anyway; hopefully that is the correct one.
--
Ticket URL: <https://trac.macports.org/ticket/61220>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list