[clangd-dev] Releasing/packaging clangd

Simon Marchi via clangd-dev clangd-dev at lists.llvm.org
Wed Oct 3 09:35:34 PDT 2018


On 2018-10-03 12:00, Sylvestre Ledru wrote:
> Not sure what happens but you can see it here now:
> http://apt.llvm.org/xenial/pool/main/l/llvm-defaults/
> 
> and the symlink is now provided:
> $ dpkg -c
> clang-tools_8.0-45+0~20181003144457.17~1.gbp3de5db_amd64.deb|grep
> clangd
> lrwxrwxrwx root/root         0 2018-10-03 16:46 ./usr/bin/clangd ->
> ../lib/llvm-8/bin/clangd

Hmm indeed I have /usr/bin/clangd when I install the clang-tools-8 
packages.

I don't understand though, when I download the package and run the same 
command as you, I don't see the symlink in the output:

$ apt-get download clang-tools-8
...
$ dpkg -c 
clang-tools-8_1%3a8\~svn343648-1\~exp1+0\~20181003001500.1814\~1.gbpea43b1_amd64.deb 
| grep clangd
-rwxr-xr-x root/root  18151016 2018-10-02 23:37 
./usr/lib/llvm-8/bin/clangd
lrwxrwxrwx root/root         0 2018-10-02 23:37 ./usr/bin/clangd-8 -> 
../lib/llvm-8/bin/clangd


Any idea why?

On a side note, what will happen when multiple versions of clang-tools 
will be installed simultaneously?  Let's say in the future I install 
clang-tools-9, then clang-tools-8, will the second overwrite the symlink 
from the first one?  Or will the packages of the older versions be 
modified to not include the /usr/bin/clangd symlink?

Thanks,

Simon


More information about the clangd-dev mailing list