conda-forge / tectonic-feedstock

A conda-smithy repository for tectonic.
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

(Trying to) Add support for macos arm64 builds #46

Closed dfm closed 2 years ago

dfm commented 2 years ago

Checklist

It would be useful for my workflow if this recipe could cross compile for osx-arm64. I've followed the steps here https://conda-forge.org/blog/posts/2020-10-29-macos-arm64/, but I'm not sure if that is sufficient!

conda-forge-linter commented 2 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

dfm commented 2 years ago

@conda-forge-admin, please rerender

dfm commented 2 years ago

The arm64 build is failing with the error:

- package harfbuzz-3.0.0-h13b3495_1 requires libglib >=2.68.4,<3.0a0, but none of the providers can be installed

Which doesn't seem like it should be true (all the right versions seem to be available...), so maybe there's something more subtle that I don't understand!

pkgw commented 2 years ago

Thanks for taking a stab at this! Unfortunately I don't really know what to make of this error either, but I'll fiddle around and see what I can figure out ...

dfm commented 2 years ago

Thanks @pkgw! There's no huge rush and I'm also happy to keep poking at it so don't feel obliged to put in a lot of time, but any insights would be welcome!

pkgw commented 2 years ago

mamba, why the heck are you trying to install glib 2.66.2??? Let's try to find out ...

@dfm Well, one of the selling points of Tectonic is that it can be installed where other TeX systems fear to tread, so I'm personally keen to work out the kinks here.

pkgw commented 2 years ago

Aha, we find the key:

     - package libglib-2.70.0-h67e64d8_0 has constraint __osx >=11.0 conflicting with __osx-10.15.7-0
pkgw commented 2 years ago

Looks like a mamba bug, filed as mamba-org/mamba#1229 . If we start using Conda, the osx-arm64 builds are still failing, but for a "better" reason.

dfm commented 2 years ago

Awesome - that looks like an issue with cross-compiling the Rust source? I'm happy to help running tests, but I only have a tiny bit of rust experience so mileage may vary when it comes to actually debugging!

pkgw commented 2 years ago

@dfm The error is one I know well, and likely a one-liner fix ...

dfm commented 2 years ago

🚀

Thanks @pkgw!!