[MacPorts] #70910: curl +ares: Dependency cycle: c-ares -> cmake -> curl (was: port install not using variants given on command line)

MacPorts noreply at macports.org
Wed Sep 25 03:57:24 UTC 2024


#70910: curl +ares: Dependency cycle: c-ares -> cmake -> curl
---------------------------+---------------------
  Reporter:  ShadSterling  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  base          |    Version:  2.10.1
Resolution:                |   Keywords:  sequoia
      Port:  curl, c-ares  |
---------------------------+---------------------
Changes (by ryandesign):

 * cc: tobypeterson (added)
 * port:   => curl, c-ares


Comment:

 Ah: you have found a dependency cycle. c-ares depends on cmake which
 depends on curl. So to avoid this, you should first install curl without
 the +ares variant. Then later you can reinstall it with the +ares variant.

 We do have a cmake-bootstrap port that has no dependencies that can be
 used to break dependency cycles in situations where we only need a basic
 cmake. For example, we use it for the brotli port, since curl depends on
 brotli when using the +brotli variant. We should probably switch the
 c-ares port to using cmake-bootstrap as well.

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


More information about the macports-tickets mailing list