Public bug reported:

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)

** Affects: llvm-toolchain-6.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to llvm-toolchain-6.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1776208

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-6.0/+bug/1776208/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to