Packaging clangd with GRPC support

Sam McCall sammccall at google.com
Sat Jan 29 02:47:25 GMT 2022


Here's a patch against `snapshot` that works for me. (Unfortunately I can't
log into salsa - my account needs to be approved by someone).

It builds with GRPC support if the available version is acceptable (the one
I tested with - we've seen bugs with old library versions).
The resulting clangd packages have the right dependencies, and it doesn't
add any dependencies to clang/other packages.

The main problem is that due to Build-Depends if there's no grpc++-dev
package at all available (unusual arch or old distro?) then it will fail to
build entirely. Ideally we'd just build without remote index instead, but I
don't know the right way to set Build-Depends to achieve that.

What do I do next :-)


On Thu, Jan 27, 2022 at 11:09 PM Sam McCall <sammccall at google.com> wrote:

> On Thu, 27 Jan 2022, 18:48 Sylvestre Ledru, <sylvestre at mozilla.com> wrote:
>
>> > 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.
>>
> Thanks, let me give it a try!
>
> 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 )
>>
> Right, my main worry is I'll make some naive assumptions and break some
> configuration I'm not aware of. If I manage to send a merge request, it
> should be treated skeptically!
>
> I guess it helps somewhat that grpc is stuck on the same version back to
> bullseye :-)
>
> Cheers, Sam
>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20220129/f5a19a9e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clangd-grpc.patch
Type: text/x-patch
Size: 2392 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20220129/f5a19a9e/attachment.bin>


More information about the Pkg-llvm-team mailing list