{"action":"closed","issue":{"url":"https://api.github.com/repos/Linuxbrew/brew/issues/8","repository_url":"https://api.github.com/repos/Linuxbrew/brew","labels_url":"https://api.github.com/repos/Linuxbrew/brew/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Linuxbrew/brew/issues/8/comments","events_url":"https://api.github.com/repos/Linuxbrew/brew/issues/8/events","html_url":"https://github.com/Linuxbrew/brew/issues/8","id":152631252,"number":8,"title":"Relocate RPATH","user":{"login":"sjackman","id":291551,"avatar_url":"https://avatars.githubusercontent.com/u/291551?v=3","gravatar_id":"","url":"https://api.github.com/users/sjackman","html_url":"https://github.com/sjackman","followers_url":"https://api.github.com/users/sjackman/followers","following_url":"https://api.github.com/users/sjackman/following{/other_user}","gists_url":"https://api.github.com/users/sjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/sjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjackman/subscriptions","organizations_url":"https://api.github.com/users/sjackman/orgs","repos_url":"https://api.github.com/users/sjackman/repos","events_url":"https://api.github.com/users/sjackman/events{/privacy}","received_events_url":"https://api.github.com/users/sjackman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Linuxbrew/brew/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-02T19:58:23Z","updated_at":"2016-05-11T18:07:16Z","closed_at":"2016-05-11T18:07:16Z","body":"When installing a bottle, Linuxbrew uses `patchelf` to wipe out the existing `RPATH` and replace it with `$HOMEBREW_PREFIX/lib`, which is overly simplistic. The fix is pretty straight forward. The `RPATH` in the bottle needs to fixed up to relocate `@@HOMEBREW_PREFIX@@` to `$HOMEBREW_PREFIX` and then add `$HOMEBREW_PREFIX/lib` if it's missing, probably to the end of the list."}}