-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
sh: xindy: not found #32
Comments
This seems to be an issue of TeXLive that it does not offer xindy binaries for Linux musl environment. The package Could you try the following workaround? - uses: xu-cheng/latex-action@v2
with:
pre_compile: |
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/xindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/xindy
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/texindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/texindy
root_file: main.tex |
How about: - uses: xu-cheng/latex-action@v2
with:
pre_compile: |
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/xindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/xindy
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/texindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/texindy
wget https://sourceforge.net/projects/xindy/files/xindy-source-components/2.4/xindy-kernel-3.0.tar.gz
tar xf xindy-kernel-3.0.tar.gz
cd xindy-kernel-3.0/src
apk add make
apk add clisp --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
make
cp -f xindy.mem /opt/texlive/texdir/bin/x86_64-linuxmusl/
cd ../../
root_file: main.tex |
The root issue is that |
@xu-cheng It seems we forgot to cd to the working directory so cannot test yet. Feel free to submit an issue to TeXLive : It is the middle of the night in my timezone (and the Morpheus' arms are close) ^^ |
You can just cd it back in the end of precompile script. I don’t use xindy by myself. So I will close this issue for now. |
I now added a mention to this in the README. I will not report an issue to TeXLive or Alpine, but you are free to do so. |
@xu-cheng I send them an issue : let's see how it goes. workflow.yml: steps:
- name: Set up Git repository
uses: actions/checkout@v2
# For weird reasons, xindy binaries are not available in Tex Live (xindy.x86_64-linuxmusl)
# Github Actions set-output/set-env truncates Multiline Strings so ...
# https://github.com/xu-cheng/latex-action/issues/32#issuecomment-626086551
# https://git.luolix.topmunity/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/td-p/37870
- name: Workaround script for xindy
run: |
content="$(tail -n +3 .github/workflows/texlive_workaround.sh)"
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
echo "::set-env name=TEXLIVE_WORKAROUND::$content"
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
pre_compile: |
${{ env.TEXLIVE_WORKAROUND }}
root_file: main.tex texlive_workaround.sh : #!/bin/sh
set -e
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/xindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/xindy
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/texindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/texindy
wget https://sourceforge.net/projects/xindy/files/xindy-source-components/2.4/xindy-kernel-3.0.tar.gz
tar xf xindy-kernel-3.0.tar.gz
cd xindy-kernel-3.0/src
apk add make
apk add clisp --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
make
cp -f xindy.mem /opt/texlive/texdir/bin/x86_64-linuxmusl/
cd ../.. |
The workaround results in the following error for me:
|
@goerz Here was the answer I received from TeXLive team. Maybe it will help you ... |
Thanks! I'm not really sure what to do with that, though. I worked around the problem by avoiding Wouldn't it be easier to switch the Docker image from Alpine Linux to some other Linux distribution that's fully supported by texlive (using the standard GNU stdlib)? |
@goerz Please try the updated workaround. The issue is caused due to
It should be able to disable xindy in latexmk by creating a
The reason Alpine is used is because its smaller size. Unfortunately, we cannot easily change the image without causing breakage to existing workflows. |
Hello,
Thanks for your good Github Actions : I have a problem when using xindy with glossaries (I need that to sort my glossary entries with accents) with your action ( I have no problem with that in local with MiKTeX)
For my .latexmkrc, I use the glossary_latexmkrc from https://www.ctan.org/tex-archive/support/latexmk/example_rcfiles.
I checked and in Tex Live, xindy is installed but it seems makeglossaries use perl (which one cannot find it)
Any ideas ?
The text was updated successfully, but these errors were encountered: