[MacPorts] #64794: Cannot install ghc on arm
MacPorts
noreply at macports.org
Thu Mar 10 20:19:09 UTC 2022
#64794: Cannot install ghc on arm
------------------------+--------------------
Reporter: essandess | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: ghc alex |
------------------------+--------------------
Comment (by jmroot):
> I added installs_libs no to the haskell_stack portgroup, uninstalled and
reinstalled alex,
Adding it to the portgroup is certainly wrong; many of the ports using it
install native libs AIUI. Also `installs_libs` is not stored in the
registry, so reinstalling will not make any difference. Did you run
`portindex` after making the change?
> I added depends_skip_archcheck to the ghc Portfile, but still encounter
this error on arm:
`depends_skip_archcheck-append alex` is right. It doesn't seem possible
that you could still get exactly the same error given how the code works:
https://github.com/macports/macports-
base/blob/v2.7.2/src/macports1.0/macports.tcl#L3503-L3581
As you can see, an arch mismatch is only reported if $check_archs is true,
and that is set to false if either the dependency sets `installs_libs no`
or the dependency's name is in the current port's
`depends_skip_archcheck`.
--
Ticket URL: <https://trac.macports.org/ticket/64794#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list