{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/36","repository_url":"https://api.github.com/repos/xamarin/xamarin-android","labels_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/36/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/36/events","html_url":"https://github.com/xamarin/xamarin-android/pull/36","id":154350902,"number":36,"title":"[mono-runtimes] Rebuild mono when mono changes.","user":{"login":"jonpryor","id":155958,"avatar_url":"https://avatars.githubusercontent.com/u/155958?v=3","gravatar_id":"","url":"https://api.github.com/users/jonpryor","html_url":"https://github.com/jonpryor","followers_url":"https://api.github.com/users/jonpryor/followers","following_url":"https://api.github.com/users/jonpryor/following{/other_user}","gists_url":"https://api.github.com/users/jonpryor/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpryor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpryor/subscriptions","organizations_url":"https://api.github.com/users/jonpryor/orgs","repos_url":"https://api.github.com/users/jonpryor/repos","events_url":"https://api.github.com/users/jonpryor/events{/privacy}","received_events_url":"https://api.github.com/users/jonpryor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xamarin/xamarin-android/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T21:48:57Z","updated_at":"2016-05-11T22:05:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xamarin/xamarin-android/pulls/36","html_url":"https://github.com/xamarin/xamarin-android/pull/36","diff_url":"https://github.com/xamarin/xamarin-android/pull/36.diff","patch_url":"https://github.com/xamarin/xamarin-android/pull/36.patch"},"body":"The `mono-runtimes` project isn't resilient to mono changes, in large\r\npart because of the `_Autogen` task: it only executes if `autogen.sh`\r\nis newer than `configure`, and if it *doesn't* run, *nothing else*\r\nis re-executed either.\r\n\r\nMeaning if mono is bumped, e.g. in commit cebaba20, the \"newly\r\nupdated\" mono isn't necessarily rebuilt, because as far as the\r\n`_Autogen` target is concerned, nothing has changed (unless there is a\r\ncommit which just happened to touch `autogen.sh`...which is a fairly\r\ninfrequent occurrence).\r\n\r\nAdd a new `_GetMonoTimestamp` target which *always* touch(1)es\r\n`autogen.sh` to contain the timestamp of the most recent commit.\r\nTHat way, if (when) mono is updated, the timestamp of `autogen.sh`\r\nwill be updated to match, allowing mono to be properly rebuilt.\r\nIf mono *isn't* updated, the timestamp will be set to what it\r\npreviously was, and no rebuild will occur."},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/comments/218604446","html_url":"https://github.com/xamarin/xamarin-android/pull/36#issuecomment-218604446","issue_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/36","id":218604446,"user":{"login":"jonpryor","id":155958,"avatar_url":"https://avatars.githubusercontent.com/u/155958?v=3","gravatar_id":"","url":"https://api.github.com/users/jonpryor","html_url":"https://github.com/jonpryor","followers_url":"https://api.github.com/users/jonpryor/followers","following_url":"https://api.github.com/users/jonpryor/following{/other_user}","gists_url":"https://api.github.com/users/jonpryor/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpryor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpryor/subscriptions","organizations_url":"https://api.github.com/users/jonpryor/orgs","repos_url":"https://api.github.com/users/jonpryor/repos","events_url":"https://api.github.com/users/jonpryor/events{/privacy}","received_events_url":"https://api.github.com/users/jonpryor/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T22:05:01Z","updated_at":"2016-05-11T22:05:01Z","body":"hold off on merging; it's not working quite right."}}