[clangd-dev] Releasing/packaging clangd
Sylvestre Ledru via clangd-dev
clangd-dev at lists.llvm.org
Wed Oct 3 09:40:17 PDT 2018
Le 03/10/2018 à 18:35, Simon Marchi a écrit :
> On 2018-10-03 12:00, Sylvestre Ledru wrote:
>> Not sure what happens but you can see it here now:
>> and the symlink is now provided:
>> $ dpkg -c
>> lrwxrwxrwx root/root 0 2018-10-03 16:46 ./usr/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?
Yeah, my example is clang-tools
yours is clang-tools-8.
clang-tools is the meta package which will create the symlink. The actual binary is clang-tools-8.
> 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?
On apt.llvm.org, I am always point to trunk (modulo a few days latency).
On Debian & Ubuntu, depends when these distros are shipping.
You can still use old versions by using /usr/lib/llvm-X/bin/clangd
More information about the clangd-dev