[MacPorts] #65068: cmake requires curl
MacPorts
noreply at macports.org
Tue Apr 26 21:48:56 UTC 2022
#65068: cmake requires curl
-------------------------+-----------------------
Reporter: ryandesign | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: cmake |
-------------------------+-----------------------
Comment (by ryandesign):
cmake binaries link with curl:
{{{
$ otool -L /opt/local/bin/{ccmake,cmake,cpack,ctest}|egrep '^/|curl'
/opt/local/bin/ccmake:
/opt/local/lib/libcurl.4.dylib (compatibility version 12.0.0,
current version 12.0.0)
/opt/local/bin/cmake:
/opt/local/lib/libcurl.4.dylib (compatibility version 12.0.0,
current version 12.0.0)
/opt/local/bin/cpack:
/opt/local/lib/libcurl.4.dylib (compatibility version 12.0.0,
current version 12.0.0)
/opt/local/bin/ctest:
/opt/local/lib/libcurl.4.dylib (compatibility version 12.0.0,
current version 12.0.0)
}}}
So you can't ''just'' remove the dependency from `depends_lib`. You would
also have to tell the build system not to link with MacPorts curl even if
it is installed. But I don't know if that's the right thing to do.
cmake was made to use MacPorts curl to resolve #43133, in which cmake was
trying to fetch a file but couldn't, because previously cmake was using a
bundled copy of curl which didn't support https. Certainly I agree with
the general preference for using MacPorts libraries over potentially out-
of-date bundled libraries.
I don't know how important it is for cmake itself to be able to
[https://cmake.org/cmake/help/latest/module/FetchContent.html fetch
content]. In MacPorts ports of course we would prefer that that not
happen, but users may also use MacPorts cmake for their own non-MacPorts
projects, and they might expect this functionality to exist.
Therefore it's probably best for cmake to continue to link with MacPorts
curl and for a different resolution to the circular dependency to be
found.
--
Ticket URL: <https://trac.macports.org/ticket/65068#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list