Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10344] Linux packaging installs Python modules in wrong directory #4596

Open
swift-ci opened this issue Apr 9, 2019 · 2 comments
Open
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented Apr 9, 2019

Previous ID SR-10344
Radar None
Original Reporter ianpartridge (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 4
Component/s LLDB for Swift, Project Infrastructure
Labels Bug
Assignee None
Priority Medium

md5: 7e46f4de5152e69ef7f103f6f82ea948

Issue Description:

Currently, the Linux toolchains install the LLDB Python module into:

/usr/lib/python2.7/site-packages/

However, this is the wrong location on Ubuntu. It means that if you then try and install Python on the system afterwards, you see:

Preparing to unpack .../python2.7-minimal_2.7.12-1ubuntu0~16.04.4_amd64.deb ...
new installation of python2.7-minimal; /usr/lib/python2.7/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.7/dist-packages.
please find the package shipping files in /usr/lib/python2.7/site-packages and
file a bug report to ship these in /usr/lib/python2.7/dist-packages instead
aborting installation of python2.7-minimal

and the installation fails. Obviously, we should not be breaking user's Ubuntu systems :-)

After researching, I believe we should unpack to

/usr/lib/python2.7/dist-packages/

instead. In my testing, this works fine.

@swift-ci
Copy link
Author

swift-ci commented Apr 9, 2019

Comment by Ian Partridge (JIRA)

I could not find where the Linux packaging scripts are - are they open source? @shahmishal @weissi

@gottesmm
Copy link
Member

gottesmm commented May 6, 2019

Whatever we figure out from this, I would like some sort of testing of this to make sure we are installing things in the right place (i.e. a build system unit test that pokes at an installed toolchain.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

2 participants