{"action":"opened","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/4160","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/4160/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/4160/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/4160/events","html_url":"https://github.com/mesonbuild/meson/issues/4160","id":359305781,"node_id":"MDU6SXNzdWUzNTkzMDU3ODE=","number":4160,"title":"install is ignored in configure_file if install_dir is set","user":{"login":"3v1n0","id":345675,"node_id":"MDQ6VXNlcjM0NTY3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/345675?v=4","gravatar_id":"","url":"https://api.github.com/users/3v1n0","html_url":"https://github.com/3v1n0","followers_url":"https://api.github.com/users/3v1n0/followers","following_url":"https://api.github.com/users/3v1n0/following{/other_user}","gists_url":"https://api.github.com/users/3v1n0/gists{/gist_id}","starred_url":"https://api.github.com/users/3v1n0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3v1n0/subscriptions","organizations_url":"https://api.github.com/users/3v1n0/orgs","repos_url":"https://api.github.com/users/3v1n0/repos","events_url":"https://api.github.com/users/3v1n0/events{/privacy}","received_events_url":"https://api.github.com/users/3v1n0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T03:53:46Z","updated_at":"2018-09-12T03:53:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"If I have something like:\r\n\r\n```\r\nforeach pc: [PACKAGE_NAME, PACKAGE_NAME + '-uninstalled']\r\n  configure_file(input: pc + '.pc.in',\r\n    output: pc + '.pc',\r\n    configuration: pc_conf,\r\n    install: not pc.contains('-uninstalled'),\r\n    install_dir: join_paths(libdir, 'pkgconfig'))\r\nendforeach\r\n```\r\n\r\nThe `-uninstalled` file is always installed, although `install` is set to false. The only way not to install it setting `install_dir` to `[]`.\r\n\r\nIn `executable` instead this works as expected, while setting an empty path doesn't work if install is true."}}
{"actor":{"display_login":"3v1n0"}}