{"action":"closed","issue":{"url":"https://api.github.com/repos/greenplum-db/gpdb/issues/4757","repository_url":"https://api.github.com/repos/greenplum-db/gpdb","labels_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/4757/labels{/name}","comments_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/4757/comments","events_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/4757/events","html_url":"https://github.com/greenplum-db/gpdb/issues/4757","id":308082780,"number":4757,"title":"Conan needs root permission to install gpdb dependencies","user":{"login":"professor","id":14758,"avatar_url":"https://avatars3.githubusercontent.com/u/14758?v=4","gravatar_id":"","url":"https://api.github.com/users/professor","html_url":"https://github.com/professor","followers_url":"https://api.github.com/users/professor/followers","following_url":"https://api.github.com/users/professor/following{/other_user}","gists_url":"https://api.github.com/users/professor/gists{/gist_id}","starred_url":"https://api.github.com/users/professor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/professor/subscriptions","organizations_url":"https://api.github.com/users/professor/orgs","repos_url":"https://api.github.com/users/professor/repos","events_url":"https://api.github.com/users/professor/events{/privacy}","received_events_url":"https://api.github.com/users/professor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-23T15:49:38Z","updated_at":"2018-03-24T00:09:23Z","closed_at":"2018-03-24T00:09:23Z","author_association":"CONTRIBUTOR","body":"Short version: Conan attempts to install libraries into /usr/local which is owned by root\r\n\r\n### Greenplum version or build\r\nmaster\r\n\r\n### OS version and uname -a\r\ncentos\r\nLinux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n### Expected behavior\r\nConan successfully installs orca\r\n\r\n### Actual behavior\r\n```\r\nThese steps should work on both MacOS and Linux\r\n/usr/bin/mkdir -p /usr/local\r\ncp -R build/* /usr/local\r\ncp: cannot create directory ‘/usr/local/include/gpos’: Permission denied\r\ncp: cannot create directory ‘/usr/local/include/naucrates’: Permission denied\r\ncp: cannot create directory ‘/usr/local/include/gpdbcost’: Permission denied\r\ncp: cannot create directory ‘/usr/local/include/gpopt’: Permission denied\r\ncp: cannot create regular file ‘/usr/local/lib/libgpos.so.2.55.13’: Permission denied\r\ncp: cannot create regular file ‘/usr/local/lib/libnaucrates.so.2.55.13’: Permission denied\r\ncp: cannot create regular file ‘/usr/local/lib/libgpdbcost.so.2.55.13’: Permission denied\r\ncp: cannot create regular file ‘/usr/local/lib/libgpopt.so.2.55.13’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libgpos.so.3’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libgpos.so’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libnaucrates.so.3’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libnaucrates.so’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libgpdbcost.so.3’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libgpdbcost.so’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libgpopt.so.3’: Permission denied\r\ncp: cannot create symbolic link ‘/usr/local/lib/libgpopt.so’: Permission denied\r\n```\r\n\r\n### Step to reproduce the behavior\r\n```\r\ncd depends\r\n./configure\r\nmake\r\nmake install_local\r\ncd ..\r\n```\r\n\r\nInterestingly, a re-run of these steps do not fail, even though the generated libraries are not in /usr/local/lib.\r\n\r\n\r\n"}}
{"actor":{"display_login":"professor"}}