{"action":"created","issue":{"url":"https://api.github.com/repos/ESMCI/cime/issues/326","repository_url":"https://api.github.com/repos/ESMCI/cime","labels_url":"https://api.github.com/repos/ESMCI/cime/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/ESMCI/cime/issues/326/comments","events_url":"https://api.github.com/repos/ESMCI/cime/issues/326/events","html_url":"https://github.com/ESMCI/cime/issues/326","id":169001991,"number":326,"title":"CIMEROOT in your environment confuses scripts in CESM checkout","user":{"login":"mnlevy1981","id":4297161,"avatar_url":"https://avatars.githubusercontent.com/u/4297161?v=3","gravatar_id":"","url":"https://api.github.com/users/mnlevy1981","html_url":"https://github.com/mnlevy1981","followers_url":"https://api.github.com/users/mnlevy1981/followers","following_url":"https://api.github.com/users/mnlevy1981/following{/other_user}","gists_url":"https://api.github.com/users/mnlevy1981/gists{/gist_id}","starred_url":"https://api.github.com/users/mnlevy1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnlevy1981/subscriptions","organizations_url":"https://api.github.com/users/mnlevy1981/orgs","repos_url":"https://api.github.com/users/mnlevy1981/repos","events_url":"https://api.github.com/users/mnlevy1981/events{/privacy}","received_events_url":"https://api.github.com/users/mnlevy1981/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"quantheory","id":1740206,"avatar_url":"https://avatars.githubusercontent.com/u/1740206?v=3","gravatar_id":"","url":"https://api.github.com/users/quantheory","html_url":"https://github.com/quantheory","followers_url":"https://api.github.com/users/quantheory/followers","following_url":"https://api.github.com/users/quantheory/following{/other_user}","gists_url":"https://api.github.com/users/quantheory/gists{/gist_id}","starred_url":"https://api.github.com/users/quantheory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantheory/subscriptions","organizations_url":"https://api.github.com/users/quantheory/orgs","repos_url":"https://api.github.com/users/quantheory/repos","events_url":"https://api.github.com/users/quantheory/events{/privacy}","received_events_url":"https://api.github.com/users/quantheory/received_events","type":"User","site_admin":false},"assignees":[{"login":"quantheory","id":1740206,"avatar_url":"https://avatars.githubusercontent.com/u/1740206?v=3","gravatar_id":"","url":"https://api.github.com/users/quantheory","html_url":"https://github.com/quantheory","followers_url":"https://api.github.com/users/quantheory/followers","following_url":"https://api.github.com/users/quantheory/following{/other_user}","gists_url":"https://api.github.com/users/quantheory/gists{/gist_id}","starred_url":"https://api.github.com/users/quantheory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantheory/subscriptions","organizations_url":"https://api.github.com/users/quantheory/orgs","repos_url":"https://api.github.com/users/quantheory/repos","events_url":"https://api.github.com/users/quantheory/events{/privacy}","received_events_url":"https://api.github.com/users/quantheory/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-08-02T22:15:14Z","updated_at":"2016-08-10T04:51:04Z","closed_at":null,"body":"(I assume this is pertinent to ACME checkouts as well, hence the issue here instead of [CESM-Development/cime](https://github.com/CESM-Development/cime))\r\n\r\nI have `$CIMEROOT` set in my environment, pointing at my local clone of the stand-alone CIME repository. This confuses `create_newcase` and the other scripts, because it looks for the active components in `$CIMEROOT/../components` instead of `$PWD/../../components`; if I unset the environment variable then the scripts appear to fall back to the desired `$PWD/../../components` because everything works as expected.\r\n\r\nI think I set this variable so that `machines/configure` would run correctly; @jedwards4b sent out an email in April 2015 where said\r\n\r\n```\r\nI've just updated the machines/configure file to the new cime directory structure and added a couple of new options/ features:\r\n\r\n-cimeroot :  you can provide the cime root directory with a command line argument, if\r\n                    not provided it will look for CIMEROOT in the environment if nether is present                     it will fail.\r\n\r\n​-output_format:   Can be make or cmake, defaults to make which produces the original                                       Makefile Macros file - if set to cmake it will produce a Macros file \r\n                            suitable for use with cmake\r\n\r\n\r\n\r\nWe should make sure that all auxiliary tools in the cesm distribution know how to use a\r\nconfigure generated Macros file to build.   If you need any help to do this with a particular tool please ask.\r\n```\r\n\r\nThere are several mapping tools (`tools/mapping`) that depend on the `Macros` file to build correctly.\r\n\r\n---\r\n\r\nSo basically there's a conflict between needing to have `$CIMEROOT` set when building some tools and needing to have `$CIMEROOT` NOT set when creating CESM (and potentially ACME) cases.\r\n\r\nOne possible fix would be to add using the `-cimeroot` option when calling `configure` to the mapping tool install directions, but that seems like a band-aid rather than a fix given that there are probably plenty of other tools that also call `configure`. Another would be to change the behavior of the scripts (to not look for `$CIMEROOT` from the environment) and / or `configure` (to not \"require\" having `$CIMEROOT` set). I'm not terribly familiar with either the scripts or `configure` so I don't know if those options are palatable, but maybe someone else can come up with a fix that works for everything?"},"comment":{"url":"https://api.github.com/repos/ESMCI/cime/issues/comments/238765318","html_url":"https://github.com/ESMCI/cime/issues/326#issuecomment-238765318","issue_url":"https://api.github.com/repos/ESMCI/cime/issues/326","id":238765318,"user":{"login":"rljacob","id":947068,"avatar_url":"https://avatars.githubusercontent.com/u/947068?v=3","gravatar_id":"","url":"https://api.github.com/users/rljacob","html_url":"https://github.com/rljacob","followers_url":"https://api.github.com/users/rljacob/followers","following_url":"https://api.github.com/users/rljacob/following{/other_user}","gists_url":"https://api.github.com/users/rljacob/gists{/gist_id}","starred_url":"https://api.github.com/users/rljacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rljacob/subscriptions","organizations_url":"https://api.github.com/users/rljacob/orgs","repos_url":"https://api.github.com/users/rljacob/repos","events_url":"https://api.github.com/users/rljacob/events{/privacy}","received_events_url":"https://api.github.com/users/rljacob/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T04:51:04Z","updated_at":"2016-08-10T04:51:04Z","body":"I misread the history. Re-opening"}}
{"actor":{"display_login":"rljacob"}}