{"action":"created","issue":{"url":"https://api.github.com/repos/nijel/enca/issues/11","repository_url":"https://api.github.com/repos/nijel/enca","labels_url":"https://api.github.com/repos/nijel/enca/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/nijel/enca/issues/11/comments","events_url":"https://api.github.com/repos/nijel/enca/issues/11/events","html_url":"https://github.com/nijel/enca/issues/11","id":52951069,"number":11,"title":"Support cross-compilation","user":{"login":"lachs0r","id":652892,"avatar_url":"https://avatars.githubusercontent.com/u/652892?v=3","gravatar_id":"","url":"https://api.github.com/users/lachs0r","html_url":"https://github.com/lachs0r","followers_url":"https://api.github.com/users/lachs0r/followers","following_url":"https://api.github.com/users/lachs0r/following{/other_user}","gists_url":"https://api.github.com/users/lachs0r/gists{/gist_id}","starred_url":"https://api.github.com/users/lachs0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lachs0r/subscriptions","organizations_url":"https://api.github.com/users/lachs0r/orgs","repos_url":"https://api.github.com/users/lachs0r/repos","events_url":"https://api.github.com/users/lachs0r/events{/privacy}","received_events_url":"https://api.github.com/users/lachs0r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nijel/enca/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2014-12-27T07:39:17Z","updated_at":"2016-09-16T12:45:28Z","closed_at":null,"body":"To support cross-compilation, enca’s build system must not depend on executables built for the host system. This includes the `make_hash` tool and `iconvcap`. Since this depends on the host iconv, it isn’t just a matter of convincing the build system to do the right thing (though even that would be slightly non-trivial with automake)—ideally, these tools should not exist in the first place.\r\n\r\nI just had a quick look at things and it seems to me like the following happens:\r\n\r\n* `configure` builds and runs `iconvcap` to generate `iconvenc.h`, which then contains a number of `#define`s which don’t seem to be used directly anywhere (can’t tell for sure, just grepping things)\r\n* a make rule runs sed on that file, to generate a sed script\r\n* that sed script is run on `encodings.dat` in the source tree\r\n* its output is passed through `make_hash` to generate `encodings.h`\r\n\r\nExcuse my rudeness. Maybe there is a reason to do it this way. But as an outsider, I sure had a WTF moment just now. If possible at all, I think this should be done at runtime.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7306091-support-cross-compilation?utm_campaign=plugin&utm_content=tracker%2F253384&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F253384&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nijel/enca/issues/comments/247591446","html_url":"https://github.com/nijel/enca/issues/11#issuecomment-247591446","issue_url":"https://api.github.com/repos/nijel/enca/issues/11","id":247591446,"user":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T12:45:28Z","updated_at":"2016-09-16T12:45:28Z","body":"Caching it could be option, though so far enca is absolutely stateless and does not store any configuration on the disk.\r\n\r\nOn the other side, there is also question whether anybody actually uses enca on systems which do use non standard encoding names in iconv...\r\n\r\nIn the end I'm not really opposed to patch which would change do_iconv_open to iterate over possible charsets when doing iconv_open. I don't think the perfromance hit would be major here and it will probably make it work more as expected..."}}
{"actor":{"display_login":"nijel"}}