Bug#1039490: lldb-16: lldb should not depend on llvm-dev

Andreas Beckmann anbe at debian.org
Fri Jul 7 15:57:26 BST 2023


On Wed, 28 Jun 2023 08:38:29 +0200 Gianfranco Costamagna 
<locutusofborg at debian.org> wrote:
> +llvm-toolchain-3.3 (1:3.3-9) UNRELEASED; urgency=low
> +
> +  * debian/control:
> +    - Add llvm-3.3-dev to lldb-3.3 Depends field (Closes: #715129).
> +
> + -- Luca Falavigna <dktrkranz at debian.org>  Sun, 25 Aug 2013 13:51:40 +0200
> +
>   llvm-toolchain-3.3 (1:3.3-8) unstable; urgency=low
>   
>     [ Sylvestre Ledru ]
> diff --git a/debian/control b/debian/control
> index afd01da1..f775325f 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -418,7 +418,7 @@ Description: Low-Level Virtual Machine (LLVM), examples
>   
>   Package: lldb-3.3
>   Architecture: any
> -Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm3.3 (= ${binary:Version}), python
> +Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm3.3 (= ${binary:Version}), python, llvm-3.3-dev
>   Pre-Depends: ${misc:Pre-Depends}
>   Replaces: lldb-3.2
>   Breaks: lldb-3.2
> 
> 
> This is the reason...

And #715129 is about the broken symlink

 >  /usr/lib/python2.7/dist-packages/lldb/libLLVM-3.3.so.1
 >    -> ../../../libLLVM-3.3.so

which is now in python3-lldb-XX and has broken symlinks as well, #1036614

So the dependency should better be moved to python3-lldb-XX.
But if we change the targets of the symlinks, we can get away with just 
a dependency on libllvmXX

lrwxrwxrwx 1 root root  51 Jun 27 06:58 libLLVM-16.0.6.so.1 -> 
../../../../../x86_64-linux-gnu/libLLVM-16.0.6.so.1
lrwxrwxrwx 1 root root  51 Jun 27 06:58 libLLVM-16.so.1 -> 
../../../../../x86_64-linux-gnu/libLLVM-16.0.6.so.1

The link targets could both be set to just libLLVM-16.so.1 ...

(Are they actually used?)


Andreas



More information about the Pkg-llvm-team mailing list