{"action":"created","issue":{"url":"https://api.github.com/repos/bincrafters/community/issues/360","repository_url":"https://api.github.com/repos/bincrafters/community","labels_url":"https://api.github.com/repos/bincrafters/community/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/bincrafters/community/issues/360/comments","events_url":"https://api.github.com/repos/bincrafters/community/issues/360/events","html_url":"https://github.com/bincrafters/community/issues/360","id":340718193,"node_id":"MDU6SXNzdWUzNDA3MTgxOTM=","number":360,"title":"libusb does not respect \"shared\" option on unix systems","user":{"login":"amerry","id":8223327,"node_id":"MDQ6VXNlcjgyMjMzMjc=","avatar_url":"https://avatars0.githubusercontent.com/u/8223327?v=4","gravatar_id":"","url":"https://api.github.com/users/amerry","html_url":"https://github.com/amerry","followers_url":"https://api.github.com/users/amerry/followers","following_url":"https://api.github.com/users/amerry/following{/other_user}","gists_url":"https://api.github.com/users/amerry/gists{/gist_id}","starred_url":"https://api.github.com/users/amerry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amerry/subscriptions","organizations_url":"https://api.github.com/users/amerry/orgs","repos_url":"https://api.github.com/users/amerry/repos","events_url":"https://api.github.com/users/amerry/events{/privacy}","received_events_url":"https://api.github.com/users/amerry/received_events","type":"User","site_admin":false},"labels":[{"id":760639719,"node_id":"MDU6TGFiZWw3NjA2Mzk3MTk=","url":"https://api.github.com/repos/bincrafters/community/labels/bug","name":"bug","color":"ee0701","default":true},{"id":882477382,"node_id":"MDU6TGFiZWw4ODI0NzczODI=","url":"https://api.github.com/repos/bincrafters/community/labels/feedback","name":"feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"SSE4","id":870236,"node_id":"MDQ6VXNlcjg3MDIzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/870236?v=4","gravatar_id":"","url":"https://api.github.com/users/SSE4","html_url":"https://github.com/SSE4","followers_url":"https://api.github.com/users/SSE4/followers","following_url":"https://api.github.com/users/SSE4/following{/other_user}","gists_url":"https://api.github.com/users/SSE4/gists{/gist_id}","starred_url":"https://api.github.com/users/SSE4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SSE4/subscriptions","organizations_url":"https://api.github.com/users/SSE4/orgs","repos_url":"https://api.github.com/users/SSE4/repos","events_url":"https://api.github.com/users/SSE4/events{/privacy}","received_events_url":"https://api.github.com/users/SSE4/received_events","type":"User","site_admin":false},"assignees":[{"login":"SSE4","id":870236,"node_id":"MDQ6VXNlcjg3MDIzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/870236?v=4","gravatar_id":"","url":"https://api.github.com/users/SSE4","html_url":"https://github.com/SSE4","followers_url":"https://api.github.com/users/SSE4/followers","following_url":"https://api.github.com/users/SSE4/following{/other_user}","gists_url":"https://api.github.com/users/SSE4/gists{/gist_id}","starred_url":"https://api.github.com/users/SSE4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SSE4/subscriptions","organizations_url":"https://api.github.com/users/SSE4/orgs","repos_url":"https://api.github.com/users/SSE4/repos","events_url":"https://api.github.com/users/SSE4/events{/privacy}","received_events_url":"https://api.github.com/users/SSE4/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-07-12T16:51:05Z","updated_at":"2018-07-24T01:17:41Z","closed_at":null,"author_association":"NONE","body":"### Description of Problem, Request, or Question\r\nlibusb does not change the build based on the \"shared\" option on Linux (and other unix systems, presumably).\r\n\r\n### Package Details (Include if Applicable)\r\n* Package Name/Version: **libusb/1.0.21** (and also 1.0.22)\r\n* Operating System: **Linux Ubuntu 14.04**\r\n* Compiler+version: **gcc-4.8**\r\n\r\n### Steps to reproduce (Include if Applicable)\r\nWhen downloading or building the libusb package produced with shared=True, I expect .so files, but no .a files. When shared=False, I expect .a but no .so. However, the package includes both regardless.\r\n\r\nThis causes problems when using the CMake generator and creating targets for the libraries - Conan's generated CMake code tries to create two targets with the same name, one for the static lib and one for the shared lib. So you get an error like\r\n\r\n```\r\nCMake Error at ctest_build/conanbuildinfo.cmake:232 (add_library):\r\n  add_library cannot create imported target \"CONAN_LIB::libusb_usb-1.0\"\r\n  because another target with the same name already exists.\r\n```\r\n\r\nThe easy solution is to do the same in `_build_unix()` as is done in `_build_mingw()` with converting the shared option into configure arguments (or move this code into `_build_autotools()`."},"comment":{"url":"https://api.github.com/repos/bincrafters/community/issues/comments/407248820","html_url":"https://github.com/bincrafters/community/issues/360#issuecomment-407248820","issue_url":"https://api.github.com/repos/bincrafters/community/issues/360","id":407248820,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzI0ODgyMA==","user":{"login":"uilianries","id":4870173,"node_id":"MDQ6VXNlcjQ4NzAxNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/4870173?v=4","gravatar_id":"","url":"https://api.github.com/users/uilianries","html_url":"https://github.com/uilianries","followers_url":"https://api.github.com/users/uilianries/followers","following_url":"https://api.github.com/users/uilianries/following{/other_user}","gists_url":"https://api.github.com/users/uilianries/gists{/gist_id}","starred_url":"https://api.github.com/users/uilianries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uilianries/subscriptions","organizations_url":"https://api.github.com/users/uilianries/orgs","repos_url":"https://api.github.com/users/uilianries/repos","events_url":"https://api.github.com/users/uilianries/events{/privacy}","received_events_url":"https://api.github.com/users/uilianries/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T01:17:41Z","updated_at":"2018-07-24T01:17:41Z","author_association":"MEMBER","body":"Thanks @SSE4 !!"}}
{"actor":{"display_login":"uilianries"}}