[MacPorts] #51123: request: port:libclang-XY

MacPorts noreply at macports.org
Tue Apr 12 05:10:07 PDT 2016


#51123: request: port:libclang-XY
-------------------------+--------------------------------
 Reporter:  rjvbertin@…  |      Owner:  macports-tickets@…
     Type:  request      |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  clang
-------------------------+--------------------------------
 This is going to be a bit of a vague request.

 On Ubuntu, there's an almost standalone package for libclang that depends
 only on libllvm.
 I know of at least 1 port (currently in draft) that would benefit from the
 existence of a port that allows to install only libclang with its
 dependencies rather than a full clang+llvm installation (KDevelop's C/C++
 parser uses libclang). What I don't know is how many other (potential)
 ports are in the same situation, but I do think that the interest for a
 minimal libclang port is increased by the fact that libclang provides a
 stable ABI.

 The way I understand it, that means that it is hardly necessary to couple
 a port for software like KDevelop to a fixed version of the full
 clang+llvm toolchain. Instead, it could depend on the minimal supported
 libclang version *by default*, allowing users to install that variant (and
 libclang-3.5, in this example), regardless of the clang+llvm toolchain
 version they use otherwise (or whether they even have need for installing
 an additional toolchain).

 MacPorts doesn't have the capability to create multiple packages off a
 single build, so I guess the likelihood of a port:libclang depends on how
 expensive it is to build just that component. On the other hand, most
 people would be installing this from binary packages, and anyone building
 the dependent packages like kdevelop from source would still need the full
 clang+llvm toolchain

 (IOW, kdevelop would have `depends_build port:clang-x.y` and `depends_lib
 path:libexec/llvm-x.y/lib/libclang.dylib:libclang-x.y`)

-- 
Ticket URL: <https://trac.macports.org/ticket/51123>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list