{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/774","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/774/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/774/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/774/events","html_url":"https://github.com/conan-io/conan/issues/774","id":196154013,"number":774,"title":"Private requirements wrong if used with new CMake IMPORT","user":{"login":"d-schiffner","id":5011940,"avatar_url":"https://avatars.githubusercontent.com/u/5011940?v=3","gravatar_id":"","url":"https://api.github.com/users/d-schiffner","html_url":"https://github.com/d-schiffner","followers_url":"https://api.github.com/users/d-schiffner/followers","following_url":"https://api.github.com/users/d-schiffner/following{/other_user}","gists_url":"https://api.github.com/users/d-schiffner/gists{/gist_id}","starred_url":"https://api.github.com/users/d-schiffner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-schiffner/subscriptions","organizations_url":"https://api.github.com/users/d-schiffner/orgs","repos_url":"https://api.github.com/users/d-schiffner/repos","events_url":"https://api.github.com/users/d-schiffner/events{/privacy}","received_events_url":"https://api.github.com/users/d-schiffner/received_events","type":"User","site_admin":false},"labels":[{"id":293864761,"url":"https://api.github.com/repos/conan-io/conan/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"memsharded","id":15367152,"avatar_url":"https://avatars.githubusercontent.com/u/15367152?v=3","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false},"assignees":[{"login":"memsharded","id":15367152,"avatar_url":"https://avatars.githubusercontent.com/u/15367152?v=3","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/conan-io/conan/milestones/10","html_url":"https://github.com/conan-io/conan/milestone/10","labels_url":"https://api.github.com/repos/conan-io/conan/milestones/10/labels","id":2198512,"number":10,"title":"0.18","description":"","creator":{"login":"memsharded","id":15367152,"avatar_url":"https://avatars.githubusercontent.com/u/15367152?v=3","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":7,"state":"open","created_at":"2016-12-15T11:37:17Z","updated_at":"2016-12-28T10:39:21Z","due_on":"2017-01-02T08:00:00Z","closed_at":null},"comments":9,"created_at":"2016-12-16T21:04:49Z","updated_at":"2016-12-28T15:45:22Z","closed_at":null,"body":"Hi,\r\n\r\nI have been using conan for a while now and was very excited using the \"modern\" CMake syntax\r\n\r\nHowever, in my scenario, I generated several libraries, where one (A) is using lib C as a private requirement.\r\n\r\nThis library is then used within another lib (B)  that also uses the same lib A\r\n\r\nThe CMake generator, however, wrongly identifies this as a necessary requirement for A as it should only be a dependency for B. This then breaks the compile step, as the order of libs is being inverted, resulting in unresolved dependencies (gcc).\r\n\r\nI already found the code issue, but currently there is no \"easy\" solution to this. The cmake generator uses the existing dependencies to identify, whether the libs need to be introduced as CONAN_PKG targets.\r\n\r\nHere it would be necessary, to identify \"private\" dependencies, as they are all being propageted during the generation step.\r\n\r\nI would offer my help here, but have no idea where actually to start and how to implement it.\r\n\r\nBest regards,\r\n\r\nd-schiffner"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/269494885","html_url":"https://github.com/conan-io/conan/issues/774#issuecomment-269494885","issue_url":"https://api.github.com/repos/conan-io/conan/issues/774","id":269494885,"user":{"login":"memsharded","id":15367152,"avatar_url":"https://avatars.githubusercontent.com/u/15367152?v=3","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T15:45:22Z","updated_at":"2016-12-28T15:45:22Z","body":"Spotted a possible problem of re-building same package binary, because being private: https://github.com/conan-io/conan/pull/809  Probably it failed only in Windows, due to resource-handling, but the fact is that it is trying to rebuild the private package binary, even if the package ID (hash) is the same as the public. It shouldn't.\r\n\r\nCan you confirm that in your case, the \"Hello0\" package si being built from source twice?"}}
{"actor":{"display_login":"memsharded"}}