'lldb-6.0 --python-path' reports wrong path

Bug #1776208 reported by Jeremy Morse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-6.0 (Ubuntu)
New
Undecided
Unassigned

Bug Description

LLDB supports an option (-P or --python-path) to report where its corresponding python library is installed, described thus in the man page:

       -P
       --python-path
            Prints out the path to the lldb.py file for this version of lldb.

However, it does not report the correct path on Ubuntu 18.04 / lldb-6.0 (1:6.0-1ubuntu2). Note that I have python-lldb-6.0 installed, so I believe this option should (TM) work:

What I tried:

    $ lldb-6.0 -P
    /usr/lib/x86_64-linux-gnu/python2.7/site-packages
    $ stat `lldb-6.0 -P`
    stat: cannot stat '/usr/lib/x86_64-linux-gnu/python2.7/site-packages': No such file or directory

What I expected:

python-lldb-6.0 symlinks 'lldb' in dist-packages to the correct directory, so I was expecting `lldb-6.0 -P` to report that path:

    $ lldb-6.0 -P
    /usr/lib/python2.7/dist-packages
    $ stat `lldb-6.0 -P`/lldb
    File: /usr/lib/python2.7/dist-packages/lldb -> ../../llvm-6.0/lib/python2.7/site-packages/lldb
    [Extra cruft]

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lldb-6.0 1:6.0-1ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Jun 11 11:46:13 2018
InstallationDate: Installed on 2018-04-26 (46 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180425.1)
SourcePackage: llvm-toolchain-6.0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jeremy Morse (jmorse18) wrote :
Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

You should report this bug on the Debian side as the work is happening there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.