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

[llvm-shlib] Change libLLVM-$MAJOR.so symlink to point to versioned SO #82660

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

tstellar
Copy link
Collaborator

This symlink was added in 91a3846 to maintain backwards compatibility, but it needs to point to libLLVM.so.$MAJOR.$MINOR rather than libLLVM.so. This works better for distros that ship libLLVM.so and libLLVM.so.$MAJOR.$MINOR in separate packages and also prevents mistakes like
libLLVM-19.so -> libLLVM.so -> libLLVM.so.18.1

Fixes #82647

This symlink was added in 91a3846 to
maintain backwards compatibility, but it needs to point to
libLLVM.so.$MAJOR.$MINOR rather than libLLVM.so.  This works better for
distros that ship libLLVM.so and libLLVM.so.$MAJOR.$MINOR in separate
packages and also prevents mistakes like
libLLVM-19.so -> libLLVM.so -> libLLVM.so.18.1

Fixes llvm#82647
@llvmbot llvmbot added the cmake Build system in general and CMake in particular label Feb 22, 2024
Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The CI failure looks unrelated.

@tstellar tstellar merged commit 10c48a7 into llvm:main Feb 23, 2024
3 of 4 checks passed
nikic pushed a commit to nikic/llvm-project that referenced this pull request Feb 24, 2024
llvm#82660)

This symlink was added in 91a3846 to
maintain backwards compatibility, but it needs to point to
libLLVM.so.$MAJOR.$MINOR rather than libLLVM.so. This works better for
distros that ship libLLVM.so and libLLVM.so.$MAJOR.$MINOR in separate
packages and also prevents mistakes like
libLLVM-19.so -> libLLVM.so -> libLLVM.so.18.1

Fixes llvm#82647

(cherry picked from commit 10c48a7)
@tstellar tstellar added this to the LLVM 18.X Release milestone Feb 26, 2024
@tstellar
Copy link
Collaborator Author

/cherry-pick 10c48a7

llvmbot pushed a commit to llvmbot/llvm-project that referenced this pull request Feb 26, 2024
llvm#82660)

This symlink was added in 91a3846 to
maintain backwards compatibility, but it needs to point to
libLLVM.so.$MAJOR.$MINOR rather than libLLVM.so. This works better for
distros that ship libLLVM.so and libLLVM.so.$MAJOR.$MINOR in separate
packages and also prevents mistakes like
libLLVM-19.so -> libLLVM.so -> libLLVM.so.18.1

Fixes llvm#82647

(cherry picked from commit 10c48a7)
@llvmbot
Copy link
Collaborator

llvmbot commented Feb 26, 2024

/pull-request #83067

tstellar added a commit that referenced this pull request Feb 27, 2024
#82660)

This symlink was added in 91a3846 to
maintain backwards compatibility, but it needs to point to
libLLVM.so.$MAJOR.$MINOR rather than libLLVM.so. This works better for
distros that ship libLLVM.so and libLLVM.so.$MAJOR.$MINOR in separate
packages and also prevents mistakes like
libLLVM-19.so -> libLLVM.so -> libLLVM.so.18.1

Fixes #82647

(cherry picked from commit 10c48a7)
@pointhex pointhex mentioned this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Build system in general and CMake in particular
Projects
Development

Successfully merging this pull request may close these issues.

[LLVM] [cmake] soname change in commit #91a3846 breaks building mesa trunk against llvm trunk
3 participants