Packaging clangd with GRPC support

Sylvestre Ledru sylvestre at mozilla.com
Thu Jan 27 17:48:01 GMT 2022


Hello Sam,


Le 27/01/2022 à 18:07, Sam McCall a écrit :
> Hi Sylvestre & other esteemed Debian folks,
>
> Clangd (part of llvm-project, 'clangd' debian package) has support for using a remote server to provide the project index instead of building it locally.
> Docs on the feature: https://clangd.llvm.org/design/remote-index <https://clangd.llvm.org/design/remote-index>
>
> This feature is optional (off by default in CMake) because it depends on GRPC+protobuf.
> We'd like the debian packages to include it. Does this sound reasonable?
>
> It requires:
>
>   * at build time (Build-Depends?): libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc
>   * run CMake with -DCLANGD_ENABLE_REMOTE=On
>   * at runtime (Depends?): libgrpc++1, libprotobuf23.
>
> Only clangd uses grpc/protobuf and needs these runtime dependencies, not other LLVM packages such as clang. I don't know debian packaging/versioning enough to know what determines the versions of the runtime dependency (e.g. 23 for libprotobuf).
>
> I'm happy to work on this any way I can, but don't know Debian packaging and I'd need some pointers on where to start. Alternatively I can provide any info you need.
>
Packaging can be found here:
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/tree/12/debian

https://apt.llvm.org/building-pkgs.php
should be more or less up to update :)

Should be easy for the most recent versions of Debian & Ubuntu.
The main issue would be for old version of Debian & Ubuntu with these
new deps (mostly impacts apt.llvm.org for old distro but this can be
disabled )

Cheers
S






More information about the Pkg-llvm-team mailing list