r-lib / xml2

Bindings to libxml2
https://xml2.r-lib.org/
Other
220 stars 82 forks source link

Fix cross compilation issue #437

Closed jeroen closed 10 months ago

jeroen commented 10 months ago

This package cannot be cross compiled, because it tries to evaluate something at install time. Therefore p3m and webr and r-universe need to patch this package, which is a headache, e.g https://github.com/r-wasm/xml2/tree/webr

This PR changes it such that this code is evaluated during CMD build, instead of CMD INSTALL, such that we can cross compile from a source package without having to run anything.

@georgestagg @tylfin