{"action":"opened","number":206,"pull_request":{"url":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/206","id":225823226,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1ODIzMjI2","html_url":"https://github.com/analogdevicesinc/libiio/pull/206","diff_url":"https://github.com/analogdevicesinc/libiio/pull/206.diff","patch_url":"https://github.com/analogdevicesinc/libiio/pull/206.patch","issue_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/206","number":206,"state":"open","locked":false,"title":"Ensure iio_info can find a locally installed libiio.so","user":{"login":"rgetz","id":1017869,"node_id":"MDQ6VXNlcjEwMTc4Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/1017869?v=4","gravatar_id":"","url":"https://api.github.com/users/rgetz","html_url":"https://github.com/rgetz","followers_url":"https://api.github.com/users/rgetz/followers","following_url":"https://api.github.com/users/rgetz/following{/other_user}","gists_url":"https://api.github.com/users/rgetz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgetz/subscriptions","organizations_url":"https://api.github.com/users/rgetz/orgs","repos_url":"https://api.github.com/users/rgetz/repos","events_url":"https://api.github.com/users/rgetz/events{/privacy}","received_events_url":"https://api.github.com/users/rgetz/received_events","type":"User","site_admin":false},"body":"When doing a sandbox/local install:\r\n  cmake -DCMAKE_INSTALL_PREFIX=/home/rgetz/foo\r\nthe iio_info instance that is executed as part of the udev rule will not be able to find the libiio, and it will fail to change permissions properly. Hard coding the RPATH ensures that the library can be found.\r\n\r\nbefore this change:\r\nrgetz@brain:~/foo/bin$ ./iio_info -s\r\n./iio_info: error while loading shared libraries: libiio.so.0: cannot open shared object file: No such file or directory\r\n\r\nafter this change:\r\n./iio_info -s\r\nLibrary version: 0.15 (git tag: 72feae0)\r\nCompiled with backends: local xml ip usb serial\r\nAvailable contexts:\r\n\t0: 0456:b673 (Analog Devices Inc. PlutoSDR (ADALM-PLUTO)), serial=10440004278a0007f2ff1400ed95ed41cd [usb:1.6.5]\r\n\r\nand strace indicates the proper library is being used.\r\nopenat(AT_FDCWD, \"/home/rgetz/foo/lib/libiio.so.0\", O_RDONLY|O_CLOEXEC) = 3\r\n\r\nSigned-off-by: Robin Getz <robin.getz@analog.com>","created_at":"2018-10-25T16:20:59Z","updated_at":"2018-10-25T16:20:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/206/commits","review_comments_url":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/206/comments","review_comment_url":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/206/comments","statuses_url":"https://api.github.com/repos/analogdevicesinc/libiio/statuses/db47744ec7fd9b97f4e313f805345c299add981d","head":{"label":"analogdevicesinc:rgetz-patch-1","ref":"rgetz-patch-1","sha":"db47744ec7fd9b97f4e313f805345c299add981d","user":{"login":"analogdevicesinc","id":2465527,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjU1Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/2465527?v=4","gravatar_id":"","url":"https://api.github.com/users/analogdevicesinc","html_url":"https://github.com/analogdevicesinc","followers_url":"https://api.github.com/users/analogdevicesinc/followers","following_url":"https://api.github.com/users/analogdevicesinc/following{/other_user}","gists_url":"https://api.github.com/users/analogdevicesinc/gists{/gist_id}","starred_url":"https://api.github.com/users/analogdevicesinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogdevicesinc/subscriptions","organizations_url":"https://api.github.com/users/analogdevicesinc/orgs","repos_url":"https://api.github.com/users/analogdevicesinc/repos","events_url":"https://api.github.com/users/analogdevicesinc/events{/privacy}","received_events_url":"https://api.github.com/users/analogdevicesinc/received_events","type":"Organization","site_admin":false},"repo":{"id":16914258,"node_id":"MDEwOlJlcG9zaXRvcnkxNjkxNDI1OA==","name":"libiio","full_name":"analogdevicesinc/libiio","private":false,"owner":{"login":"analogdevicesinc","id":2465527,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjU1Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/2465527?v=4","gravatar_id":"","url":"https://api.github.com/users/analogdevicesinc","html_url":"https://github.com/analogdevicesinc","followers_url":"https://api.github.com/users/analogdevicesinc/followers","following_url":"https://api.github.com/users/analogdevicesinc/following{/other_user}","gists_url":"https://api.github.com/users/analogdevicesinc/gists{/gist_id}","starred_url":"https://api.github.com/users/analogdevicesinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogdevicesinc/subscriptions","organizations_url":"https://api.github.com/users/analogdevicesinc/orgs","repos_url":"https://api.github.com/users/analogdevicesinc/repos","events_url":"https://api.github.com/users/analogdevicesinc/events{/privacy}","received_events_url":"https://api.github.com/users/analogdevicesinc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/analogdevicesinc/libiio","description":"Library for interfacing with IIO devices","fork":false,"url":"https://api.github.com/repos/analogdevicesinc/libiio","forks_url":"https://api.github.com/repos/analogdevicesinc/libiio/forks","keys_url":"https://api.github.com/repos/analogdevicesinc/libiio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/analogdevicesinc/libiio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/analogdevicesinc/libiio/teams","hooks_url":"https://api.github.com/repos/analogdevicesinc/libiio/hooks","issue_events_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/events{/number}","events_url":"https://api.github.com/repos/analogdevicesinc/libiio/events","assignees_url":"https://api.github.com/repos/analogdevicesinc/libiio/assignees{/user}","branches_url":"https://api.github.com/repos/analogdevicesinc/libiio/branches{/branch}","tags_url":"https://api.github.com/repos/analogdevicesinc/libiio/tags","blobs_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/refs{/sha}","trees_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/analogdevicesinc/libiio/statuses/{sha}","languages_url":"https://api.github.com/repos/analogdevicesinc/libiio/languages","stargazers_url":"https://api.github.com/repos/analogdevicesinc/libiio/stargazers","contributors_url":"https://api.github.com/repos/analogdevicesinc/libiio/contributors","subscribers_url":"https://api.github.com/repos/analogdevicesinc/libiio/subscribers","subscription_url":"https://api.github.com/repos/analogdevicesinc/libiio/subscription","commits_url":"https://api.github.com/repos/analogdevicesinc/libiio/commits{/sha}","git_commits_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/commits{/sha}","comments_url":"https://api.github.com/repos/analogdevicesinc/libiio/comments{/number}","issue_comment_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/comments{/number}","contents_url":"https://api.github.com/repos/analogdevicesinc/libiio/contents/{+path}","compare_url":"https://api.github.com/repos/analogdevicesinc/libiio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/analogdevicesinc/libiio/merges","archive_url":"https://api.github.com/repos/analogdevicesinc/libiio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/analogdevicesinc/libiio/downloads","issues_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues{/number}","pulls_url":"https://api.github.com/repos/analogdevicesinc/libiio/pulls{/number}","milestones_url":"https://api.github.com/repos/analogdevicesinc/libiio/milestones{/number}","notifications_url":"https://api.github.com/repos/analogdevicesinc/libiio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/analogdevicesinc/libiio/labels{/name}","releases_url":"https://api.github.com/repos/analogdevicesinc/libiio/releases{/id}","deployments_url":"https://api.github.com/repos/analogdevicesinc/libiio/deployments","created_at":"2014-02-17T13:51:34Z","updated_at":"2018-10-22T08:32:02Z","pushed_at":"2018-10-25T16:20:51Z","git_url":"git://github.com/analogdevicesinc/libiio.git","ssh_url":"git@github.com:analogdevicesinc/libiio.git","clone_url":"https://github.com/analogdevicesinc/libiio.git","svn_url":"https://github.com/analogdevicesinc/libiio","homepage":null,"size":2215,"stargazers_count":105,"watchers_count":105,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":115,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":115,"open_issues":39,"watchers":105,"default_branch":"master"}},"base":{"label":"analogdevicesinc:master","ref":"master","sha":"72feae0bca60e5c7803f5120e69edd287a419264","user":{"login":"analogdevicesinc","id":2465527,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjU1Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/2465527?v=4","gravatar_id":"","url":"https://api.github.com/users/analogdevicesinc","html_url":"https://github.com/analogdevicesinc","followers_url":"https://api.github.com/users/analogdevicesinc/followers","following_url":"https://api.github.com/users/analogdevicesinc/following{/other_user}","gists_url":"https://api.github.com/users/analogdevicesinc/gists{/gist_id}","starred_url":"https://api.github.com/users/analogdevicesinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogdevicesinc/subscriptions","organizations_url":"https://api.github.com/users/analogdevicesinc/orgs","repos_url":"https://api.github.com/users/analogdevicesinc/repos","events_url":"https://api.github.com/users/analogdevicesinc/events{/privacy}","received_events_url":"https://api.github.com/users/analogdevicesinc/received_events","type":"Organization","site_admin":false},"repo":{"id":16914258,"node_id":"MDEwOlJlcG9zaXRvcnkxNjkxNDI1OA==","name":"libiio","full_name":"analogdevicesinc/libiio","private":false,"owner":{"login":"analogdevicesinc","id":2465527,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjU1Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/2465527?v=4","gravatar_id":"","url":"https://api.github.com/users/analogdevicesinc","html_url":"https://github.com/analogdevicesinc","followers_url":"https://api.github.com/users/analogdevicesinc/followers","following_url":"https://api.github.com/users/analogdevicesinc/following{/other_user}","gists_url":"https://api.github.com/users/analogdevicesinc/gists{/gist_id}","starred_url":"https://api.github.com/users/analogdevicesinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogdevicesinc/subscriptions","organizations_url":"https://api.github.com/users/analogdevicesinc/orgs","repos_url":"https://api.github.com/users/analogdevicesinc/repos","events_url":"https://api.github.com/users/analogdevicesinc/events{/privacy}","received_events_url":"https://api.github.com/users/analogdevicesinc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/analogdevicesinc/libiio","description":"Library for interfacing with IIO devices","fork":false,"url":"https://api.github.com/repos/analogdevicesinc/libiio","forks_url":"https://api.github.com/repos/analogdevicesinc/libiio/forks","keys_url":"https://api.github.com/repos/analogdevicesinc/libiio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/analogdevicesinc/libiio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/analogdevicesinc/libiio/teams","hooks_url":"https://api.github.com/repos/analogdevicesinc/libiio/hooks","issue_events_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/events{/number}","events_url":"https://api.github.com/repos/analogdevicesinc/libiio/events","assignees_url":"https://api.github.com/repos/analogdevicesinc/libiio/assignees{/user}","branches_url":"https://api.github.com/repos/analogdevicesinc/libiio/branches{/branch}","tags_url":"https://api.github.com/repos/analogdevicesinc/libiio/tags","blobs_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/refs{/sha}","trees_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/analogdevicesinc/libiio/statuses/{sha}","languages_url":"https://api.github.com/repos/analogdevicesinc/libiio/languages","stargazers_url":"https://api.github.com/repos/analogdevicesinc/libiio/stargazers","contributors_url":"https://api.github.com/repos/analogdevicesinc/libiio/contributors","subscribers_url":"https://api.github.com/repos/analogdevicesinc/libiio/subscribers","subscription_url":"https://api.github.com/repos/analogdevicesinc/libiio/subscription","commits_url":"https://api.github.com/repos/analogdevicesinc/libiio/commits{/sha}","git_commits_url":"https://api.github.com/repos/analogdevicesinc/libiio/git/commits{/sha}","comments_url":"https://api.github.com/repos/analogdevicesinc/libiio/comments{/number}","issue_comment_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/comments{/number}","contents_url":"https://api.github.com/repos/analogdevicesinc/libiio/contents/{+path}","compare_url":"https://api.github.com/repos/analogdevicesinc/libiio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/analogdevicesinc/libiio/merges","archive_url":"https://api.github.com/repos/analogdevicesinc/libiio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/analogdevicesinc/libiio/downloads","issues_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues{/number}","pulls_url":"https://api.github.com/repos/analogdevicesinc/libiio/pulls{/number}","milestones_url":"https://api.github.com/repos/analogdevicesinc/libiio/milestones{/number}","notifications_url":"https://api.github.com/repos/analogdevicesinc/libiio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/analogdevicesinc/libiio/labels{/name}","releases_url":"https://api.github.com/repos/analogdevicesinc/libiio/releases{/id}","deployments_url":"https://api.github.com/repos/analogdevicesinc/libiio/deployments","created_at":"2014-02-17T13:51:34Z","updated_at":"2018-10-22T08:32:02Z","pushed_at":"2018-10-25T16:20:51Z","git_url":"git://github.com/analogdevicesinc/libiio.git","ssh_url":"git@github.com:analogdevicesinc/libiio.git","clone_url":"https://github.com/analogdevicesinc/libiio.git","svn_url":"https://github.com/analogdevicesinc/libiio","homepage":null,"size":2215,"stargazers_count":105,"watchers_count":105,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":115,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":115,"open_issues":39,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/206"},"html":{"href":"https://github.com/analogdevicesinc/libiio/pull/206"},"issue":{"href":"https://api.github.com/repos/analogdevicesinc/libiio/issues/206"},"comments":{"href":"https://api.github.com/repos/analogdevicesinc/libiio/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/analogdevicesinc/libiio/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/analogdevicesinc/libiio/statuses/db47744ec7fd9b97f4e313f805345c299add981d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":4,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"rgetz"}}