Packaging clangd with GRPC support

Kirill Bobyrev kbobyrev at google.com
Sat Jan 29 12:18:25 GMT 2022


Hi Sylvestre,

Thanks a lot for doing that!

I'm not sure if that would be directly what you want, but we have a bunch
of llvm-lit tests here:
https://github.com/llvm/llvm-project/tree/main/clang-tools-extra/clangd/test/remote-index

The main "helper" runs the index server and checks the output:
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py

However, that does require a clangd-index-server binary. Alternatively, I
think one can send some requests to the public LLVM Remote Index server (
https://clangd-index.llvm.org/) and have some verifications through that
(overall, we haven't observed any downtime so it's probably quite safe).

Thanks,
Kirill


On Sat, Jan 29, 2022 at 10:29 AM Sylvestre Ledru <sylvestre at mozilla.com>
wrote:

> Hello
>
> I pushed your change, I will test it a bit and upload it in Debian once it
> is ok!
>
> The workaround when packages aren't available is to use the " | hello "
> trick. The resolver will pick "hello" as package instead of failing on the
> unavailable package
>
> I have an ugly script to quickly verify all the options of clang & co
>
>
> https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/12/debian/qualify-clang.sh
>
> clangd is tested
>
>
> https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/12/debian/qualify-clang.sh#L119
>
> is there a way to do the same with GRPC support?
>
> I am also testing clangd in
>
>
> https://github.com/opencollab/llvm-toolchain-integration-test-suite/blob/main/tests/test_clangd.txt
>
> Cheers,
>
> S
>
>
> Le 29/01/2022 à 03:47, Sam McCall a écrit :
>
> 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/b338e9fa/attachment.htm>


More information about the Pkg-llvm-team mailing list