{"action":"created","issue":{"url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/183","repository_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs","labels_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/183/comments","events_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/183/events","html_url":"https://github.com/thehydroimpulse/nanomsg.rs/pull/183","id":355634485,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMTE3NzI3","number":183,"title":"Fix static build of bundled nanomsg","user":{"login":"rsdy","id":179510,"node_id":"MDQ6VXNlcjE3OTUxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/179510?v=4","gravatar_id":"","url":"https://api.github.com/users/rsdy","html_url":"https://github.com/rsdy","followers_url":"https://api.github.com/users/rsdy/followers","following_url":"https://api.github.com/users/rsdy/following{/other_user}","gists_url":"https://api.github.com/users/rsdy/gists{/gist_id}","starred_url":"https://api.github.com/users/rsdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsdy/subscriptions","organizations_url":"https://api.github.com/users/rsdy/orgs","repos_url":"https://api.github.com/users/rsdy/repos","events_url":"https://api.github.com/users/rsdy/events{/privacy}","received_events_url":"https://api.github.com/users/rsdy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-30T15:20:32Z","updated_at":"2018-09-11T21:10:05Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/pulls/183","html_url":"https://github.com/thehydroimpulse/nanomsg.rs/pull/183","diff_url":"https://github.com/thehydroimpulse/nanomsg.rs/pull/183.diff","patch_url":"https://github.com/thehydroimpulse/nanomsg.rs/pull/183.patch"},"body":"When building with musl as a target, build fails like so:\r\n\r\n```\r\n% cargo build --target=x86_64-unknown-linux-musl --release\r\n\r\n...\r\n\r\nCMake Error at cmake_install.cmake:94 (file):\r\n  file RPATH_CHANGE could not write new RPATH:\r\n\r\n    /home/user/rust/project/target/x86_64-unknown-linux-musl/release/build/nanomsg-sys-80e249f9b2c26403/out/lib64\r\n\r\n  to the file:\r\n\r\n    /home/user/rust/project/target/x86_64-unknown-linux-musl/release/build/nanomsg-sys-80e249f9b2c26403/out/bin/nanocat\r\n\r\n  No valid ELF RPATH or RUNPATH entry exists in the file;\r\n\r\n...\r\n\r\n```\r\n\r\nA hint can be found in https://github.com/FreeRDP/FreeRDP/issues/2150.\r\nThis patch seems to fix this issue here, and I can build a working static binary."},"comment":{"url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/comments/420426614","html_url":"https://github.com/thehydroimpulse/nanomsg.rs/pull/183#issuecomment-420426614","issue_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/183","id":420426614,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDQyNjYxNA==","user":{"login":"blabaere","id":9447137,"node_id":"MDQ6VXNlcjk0NDcxMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/9447137?v=4","gravatar_id":"","url":"https://api.github.com/users/blabaere","html_url":"https://github.com/blabaere","followers_url":"https://api.github.com/users/blabaere/followers","following_url":"https://api.github.com/users/blabaere/following{/other_user}","gists_url":"https://api.github.com/users/blabaere/gists{/gist_id}","starred_url":"https://api.github.com/users/blabaere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blabaere/subscriptions","organizations_url":"https://api.github.com/users/blabaere/orgs","repos_url":"https://api.github.com/users/blabaere/repos","events_url":"https://api.github.com/users/blabaere/events{/privacy}","received_events_url":"https://api.github.com/users/blabaere/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T21:10:05Z","updated_at":"2018-09-11T21:10:05Z","author_association":"COLLABORATOR","body":"Now that I fixed the C string bugs in the unit tests, the linux build is passing.\r\nDo you need a package an crates.io ?"}}
{"actor":{"display_login":"blabaere"}}