Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for arm64, Pandoc >=2.12 #24

Open
tyfried opened this issue Sep 2, 2022 · 2 comments
Open

Support for arm64, Pandoc >=2.12 #24

tyfried opened this issue Sep 2, 2022 · 2 comments

Comments

@tyfried
Copy link

tyfried commented Sep 2, 2022

What would it take to create an arm64 executable of this filter? IE something that will run on apple silicon? I am a haskell novice and can't seem to get a handle on this question.

Backstory: I was previously using this filter (which is awesome by the way!) in a project which I was developing on an intel-based mac, and I recently made the jump to apple silicon. Unfortunately this caused Pandoc and this filter to break. One solution is to use the Rosetta emulator, but I'm using docker and when I tried this approach I discovered that running Pandoc in a container using rosetta emulation is prohibitively slow.

I was able to solve the speed issue by ditching emulation and bumping my Pandoc version to 2.12, the earliest release that supports arm64, but I still have the problem that I can't use this filter. Any ideas? Since it's possible for Pandoc to support arm64, it should in theory also be possible here. But for example when I tried to build a Pandoc 2.1 executable from source using stack on my apple silicon machine, it still created an amd64 binary, so I'm assuming the same is true here. Please let me know your thoughts.

Also, on a related note, what it would take to bump support for this filter to Pandoc 2.12 or later? You mention in the README about updating the stack build manifest...I'm assuming that refers to either stack.yaml or package.yaml, but what changes need to be made?

@tyfried tyfried changed the title Support for arm64, Pandoc 2.12 Support for arm64, Pandoc >=2.12 Sep 2, 2022
@alexkreidler
Copy link

I re-built this with the latest GHC and pandoc-types and it works with my Pandoc 3.0 on Ubuntu, except not when I add pandoc-citeproc.

@p3palazzo
Copy link
Contributor

With pandoc 3.0 you have to use --citeproc rather than --filter=pandoc-citeproc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants