{"action":"created","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/1035","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/1035/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/1035/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/1035/events","html_url":"https://github.com/mesonbuild/meson/issues/1035","id":188951587,"number":1035,"title":"gtkdoc function doesn't set CC environment variable before running commands","user":{"login":"lantw44","id":3016644,"avatar_url":"https://avatars.githubusercontent.com/u/3016644?v=3","gravatar_id":"","url":"https://api.github.com/users/lantw44","html_url":"https://github.com/lantw44","followers_url":"https://api.github.com/users/lantw44/followers","following_url":"https://api.github.com/users/lantw44/following{/other_user}","gists_url":"https://api.github.com/users/lantw44/gists{/gist_id}","starred_url":"https://api.github.com/users/lantw44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lantw44/subscriptions","organizations_url":"https://api.github.com/users/lantw44/orgs","repos_url":"https://api.github.com/users/lantw44/repos","events_url":"https://api.github.com/users/lantw44/events{/privacy}","received_events_url":"https://api.github.com/users/lantw44/received_events","type":"User","site_admin":false},"labels":[{"id":99546085,"url":"https://api.github.com/repos/mesonbuild/meson/labels/bug","name":"bug","color":"fc2929","default":true},{"id":251967616,"url":"https://api.github.com/repos/mesonbuild/meson/labels/compilers","name":"compilers","color":"c7def8","default":false},{"id":251967366,"url":"https://api.github.com/repos/mesonbuild/meson/labels/gnome","name":"gnome","color":"006b75","default":false},{"id":439797805,"url":"https://api.github.com/repos/mesonbuild/meson/labels/gstreamer","name":"gstreamer","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-13T04:28:36Z","updated_at":"2016-11-13T09:43:21Z","closed_at":null,"body":"```\r\nBuilding documentation for gstreamer\r\nTraceback (most recent call last):\r\n  File \"/path/to/meson/meson.py\", line 26, in <module>\r\n    sys.exit(main())\r\n  File \"/path/to/meson/meson.py\", line 23, in main\r\n    return mesonmain.run(launcher, sys.argv[1:])\r\n  File \"/path/to/meson/mesonbuild/mesonmain.py\", line 249, in run\r\n    sys.exit(run_script_command(args[1:]))\r\n  File \"/path/to/meson/mesonbuild/mesonmain.py\", line 239, in run_script_command\r\n    return cmdfunc(cmdargs)\r\n  File \"/path/to/meson/mesonbuild/scripts/gtkdochelper.py\", line 183, in run\r\n    options.ignore_headers.split('@@') if options.ignore_headers else [])\r\n  File \"/path/to/meson/mesonbuild/scripts/gtkdochelper.py\", line 104, in build_gtkdoc\r\n    gtkdoc_run_check(scanobjs_cmd, abs_out)\r\n  File \"/path/to/meson/mesonbuild/scripts/gtkdochelper.py\", line 55, in gtkdoc_run_check\r\n    raise MesonException('\\n'.join(err_msg))\r\nmesonbuild.mesonlib.MesonException: 'gtkdoc-scangobj' failed with status 127\r\nsh: gcc: not found\r\nCompilation of scanner failed:\r\n```\r\n\r\n`gtkdoc-scangobj` defaults to `gcc` when `CC` environment variable is not set. To avoid external commands from using their own ways to detect the compiler, meson should always set `CC` environment variable before running commands."},"comment":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/comments/260175928","html_url":"https://github.com/mesonbuild/meson/issues/1035#issuecomment-260175928","issue_url":"https://api.github.com/repos/mesonbuild/meson/issues/1035","id":260175928,"user":{"login":"nirbheek","id":75801,"avatar_url":"https://avatars.githubusercontent.com/u/75801?v=3","gravatar_id":"","url":"https://api.github.com/users/nirbheek","html_url":"https://github.com/nirbheek","followers_url":"https://api.github.com/users/nirbheek/followers","following_url":"https://api.github.com/users/nirbheek/following{/other_user}","gists_url":"https://api.github.com/users/nirbheek/gists{/gist_id}","starred_url":"https://api.github.com/users/nirbheek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirbheek/subscriptions","organizations_url":"https://api.github.com/users/nirbheek/orgs","repos_url":"https://api.github.com/users/nirbheek/repos","events_url":"https://api.github.com/users/nirbheek/events{/privacy}","received_events_url":"https://api.github.com/users/nirbheek/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T09:43:21Z","updated_at":"2016-11-13T09:43:21Z","body":"Yes, and we already use it for `CustomTarget`s when we want to get the output of a command, so it's not too difficult."}}
{"actor":{"display_login":"nirbheek"}}