Skip to content

[SR-14521] wrong RUNPATH in libPackagePlugin.so library in recent nightly toolchains #4433

Closed
@tayloraswift

Description

@tayloraswift
Previous ID SR-14521
Radar rdar://problem/77076996
Original Reporter @Kelvin13
Type Bug
Status Closed
Resolution Done
Environment

$ swift --version
Swift version 5.5-dev (LLVM fb5a91b4e892ed9, Swift f17142883421ec0)
Target: x86_64-unknown-linux-gnu

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: d251a628fec823d06e04b360bae20269

Issue Description:

currently, with the most recent nightly toolchain (`2021-04-18-a`), package plugins do not work due to a wrong `RUNPATH` in the `libPackagePlugin.so` binary.

the `RUNPATH` is currently:

$ORIGIN/../../linux

it should be:

$ORIGIN/../linux

changing the RUNPATH to the correct destination using a tool like `chrpath` fixes the issue.

see this forum post for more details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions