{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/3611","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/3611/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/3611/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/3611/events","html_url":"https://github.com/conan-io/conan/issues/3611","id":363455607,"node_id":"MDU6SXNzdWUzNjM0NTU2MDc=","number":3611,"title":"[question] deploy feature","user":{"login":"ericLemanissier","id":1926390,"node_id":"MDQ6VXNlcjE5MjYzOTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1926390?v=4","gravatar_id":"","url":"https://api.github.com/users/ericLemanissier","html_url":"https://github.com/ericLemanissier","followers_url":"https://api.github.com/users/ericLemanissier/followers","following_url":"https://api.github.com/users/ericLemanissier/following{/other_user}","gists_url":"https://api.github.com/users/ericLemanissier/gists{/gist_id}","starred_url":"https://api.github.com/users/ericLemanissier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericLemanissier/subscriptions","organizations_url":"https://api.github.com/users/ericLemanissier/orgs","repos_url":"https://api.github.com/users/ericLemanissier/repos","events_url":"https://api.github.com/users/ericLemanissier/events{/privacy}","received_events_url":"https://api.github.com/users/ericLemanissier/received_events","type":"User","site_admin":false},"labels":[{"id":293864766,"node_id":"MDU6TGFiZWwyOTM4NjQ3NjY=","url":"https://api.github.com/repos/conan-io/conan/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-25T08:01:25Z","updated_at":"2018-09-25T09:48:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":" I'm maintaining Bincrafters' Qt recipe. Qt library has the following need so that a program linked with Qt can run:\r\n1. Either Qt binaries must have the path to the Qt distribution hard-coded inside them\r\n2. Or a file named qt.conf containing path to the Qt distribution must be placed next to the executable linking with Qt\r\n\r\noption 1 is incompatible with conan, because package binaries must not be modified after being downloaded.\r\noption 2 could be partially handled by adding a `deploy` method to Qt's recipe doing the following:\r\n```python\r\nwith open('qt.conf', 'w') as f:\r\n    f.write('[Paths]\\nPrefix = %s' % self.cpp_info.rootpath)\r\n```\r\nbut this quite limited use case, it would work only if the user calls `conan install Qt/version@bincrafters/stable` and then copies the qt.conf file next to the executable. It would not work if the user has a conanfile requiring Qt, because deploy is not called for dependencies.\r\nI could not find a general solution to this problem using conan. Am I missing something ?"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/424277808","html_url":"https://github.com/conan-io/conan/issues/3611#issuecomment-424277808","issue_url":"https://api.github.com/repos/conan-io/conan/issues/3611","id":424277808,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDI3NzgwOA==","user":{"login":"ericLemanissier","id":1926390,"node_id":"MDQ6VXNlcjE5MjYzOTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1926390?v=4","gravatar_id":"","url":"https://api.github.com/users/ericLemanissier","html_url":"https://github.com/ericLemanissier","followers_url":"https://api.github.com/users/ericLemanissier/followers","following_url":"https://api.github.com/users/ericLemanissier/following{/other_user}","gists_url":"https://api.github.com/users/ericLemanissier/gists{/gist_id}","starred_url":"https://api.github.com/users/ericLemanissier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericLemanissier/subscriptions","organizations_url":"https://api.github.com/users/ericLemanissier/orgs","repos_url":"https://api.github.com/users/ericLemanissier/repos","events_url":"https://api.github.com/users/ericLemanissier/events{/privacy}","received_events_url":"https://api.github.com/users/ericLemanissier/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T09:48:43Z","updated_at":"2018-09-25T09:48:43Z","author_association":"CONTRIBUTOR","body":"I'm don't think virtualrunenv would work, because environment variable cannot solve the problem.\r\nA custom generator seems the best option, I'll try that. By the way, I could not find any documentation on variables available inside a generator, the link you uses deps_build_info, would that be the same as ConanFile.deps_cpp_info ?"}}
{"actor":{"display_login":"ericLemanissier"}}