{"action":"opened","issue":{"url":"https://api.github.com/repos/kraftwagen/kraftwagen/issues/51","labels_url":"https://api.github.com/repos/kraftwagen/kraftwagen/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/kraftwagen/kraftwagen/issues/51/comments","events_url":"https://api.github.com/repos/kraftwagen/kraftwagen/issues/51/events","html_url":"https://github.com/kraftwagen/kraftwagen/issues/51","id":114586152,"number":51,"title":"It is not possible to add a local patch to build.make.tpl","user":{"login":"PatrickScheffer","id":7130640,"avatar_url":"https://avatars.githubusercontent.com/u/7130640?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickScheffer","html_url":"https://github.com/PatrickScheffer","followers_url":"https://api.github.com/users/PatrickScheffer/followers","following_url":"https://api.github.com/users/PatrickScheffer/following{/other_user}","gists_url":"https://api.github.com/users/PatrickScheffer/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickScheffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickScheffer/subscriptions","organizations_url":"https://api.github.com/users/PatrickScheffer/orgs","repos_url":"https://api.github.com/users/PatrickScheffer/repos","events_url":"https://api.github.com/users/PatrickScheffer/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickScheffer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T12:38:50Z","updated_at":"2015-11-02T12:38:50Z","closed_at":null,"body":"In a normal makefile it is possible to refer to a local patch, simply by adding:\r\n\r\nprojects[name][patch][] = \"patches/file.patch\"\r\n\r\nHowever, when I tried this in build.make.tpl it generates an error saying that it can't download /tmp/patches/file.patch.\r\n\r\nI found out this happens because build.make.tpl creates a makefile in the tmp folder where it is unaware of any relative files.\r\n\r\nThis means that if we want to apply a patch specificly created for a project, we have to upload it somewhere so it can be referenced in the build.make.tpl. That's pretty awkward."}}