{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/581","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/581/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/581/events","html_url":"https://github.com/lovell/sharp/pull/581","id":178732753,"number":581,"title":"Allow for overriding platform, arch and arm_version","user":{"login":"gigafied","id":849972,"avatar_url":"https://avatars.githubusercontent.com/u/849972?v=3","gravatar_id":"","url":"https://api.github.com/users/gigafied","html_url":"https://github.com/gigafied","followers_url":"https://api.github.com/users/gigafied/followers","following_url":"https://api.github.com/users/gigafied/following{/other_user}","gists_url":"https://api.github.com/users/gigafied/gists{/gist_id}","starred_url":"https://api.github.com/users/gigafied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigafied/subscriptions","organizations_url":"https://api.github.com/users/gigafied/orgs","repos_url":"https://api.github.com/users/gigafied/repos","events_url":"https://api.github.com/users/gigafied/events{/privacy}","received_events_url":"https://api.github.com/users/gigafied/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lovell/sharp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T22:05:04Z","updated_at":"2016-09-23T18:22:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lovell/sharp/pulls/581","html_url":"https://github.com/lovell/sharp/pull/581","diff_url":"https://github.com/lovell/sharp/pull/581.diff","patch_url":"https://github.com/lovell/sharp/pull/581.patch"},"body":"We are using sharp on an embedded platform, and we need to cross compile on Jenkins when we create a debian package. Right now, binding.js reads the host's arch, arm_version and platform, this enables us to specify them as command line args to `npm install` i.e. `npm install --arch=arm --armv=7 --platform=linux`"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/249266453","html_url":"https://github.com/lovell/sharp/pull/581#issuecomment-249266453","issue_url":"https://api.github.com/repos/lovell/sharp/issues/581","id":249266453,"user":{"login":"gigafied","id":849972,"avatar_url":"https://avatars.githubusercontent.com/u/849972?v=3","gravatar_id":"","url":"https://api.github.com/users/gigafied","html_url":"https://github.com/gigafied","followers_url":"https://api.github.com/users/gigafied/followers","following_url":"https://api.github.com/users/gigafied/following{/other_user}","gists_url":"https://api.github.com/users/gigafied/gists{/gist_id}","starred_url":"https://api.github.com/users/gigafied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigafied/subscriptions","organizations_url":"https://api.github.com/users/gigafied/orgs","repos_url":"https://api.github.com/users/gigafied/repos","events_url":"https://api.github.com/users/gigafied/events{/privacy}","received_events_url":"https://api.github.com/users/gigafied/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T18:22:34Z","updated_at":"2016-09-23T18:22:34Z","body":"@lovell Still one issue, but not sure how to overcome. The OS conditionals in binding.gyp still check host platform, i.e. https://github.com/lovell/sharp/blob/master/binding.gyp#L121\r\n\r\nNot sure if there's a way to pass `--platform` to node-gyp, any ideas? \r\n\r\nFor now, not a big issue, since both our build machine and target platform are linux, however it would be nice if I could cross-compile on my laptop (macOS) as well. "}}
{"actor":{"display_login":"gigafied"}}