diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2025-08-16 20:09:38 +0200 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2025-08-17 00:24:42 +0200 |
commit | c72da75105d438a480b3721e6d94ae68f34ba9d5 (patch) | |
tree | aa78afc6897796d3915bd602da98311a0062c977 /reproduce/analysis/make/paper.mk | |
parent | 5bcbaccadae0353a88ef4510006540bf6b3b68b5 (diff) |
PDF building: pdflatex uses local shell's LD_LIBRARY_PATH
Summary: will not affect existing configuration or analysis.
Until this commit, if the Maneage readline library (used by the shell) did
not match the local readline library, the 'pdflatex' command would crash
when building the template Maneage branch. This was because PGFPlots uses
the local shell and we do not build TeXLive from source within Maneage
yet. Previously, we had added a modification to 'LD_LIBRARY_PATH' before
the 'pdflatex' command to use 'sys_library_sh_path', but the variable was
never initilized (because it was only available within the configuration
phase)!
With this commit, the problem is solved by adding that variable within
'LOCAL.conf' so it is available in the analysis phase of a Maneage'd
project also. In order to do so, the set of commands that set the
'sys_library_sh_path' variable within 'configure.sh' was brought up before
the creation of 'LOCAL.conf'.
In case you have had this problem, the solution is to delete
'.build/software/config/LOCAL.conf' and re-configure your project by
manually setting the necessary directories. In this way, the 'LOCAL.conf'
is created again with the new variable.
This bug was found with the help of Faezeh Bidjarchian.
Diffstat (limited to 'reproduce/analysis/make/paper.mk')
-rw-r--r-- | reproduce/analysis/make/paper.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/reproduce/analysis/make/paper.mk b/reproduce/analysis/make/paper.mk index b1b794c..a399637 100644 --- a/reproduce/analysis/make/paper.mk +++ b/reproduce/analysis/make/paper.mk @@ -164,9 +164,9 @@ $(texbdir)/paper.bbl: tex/src/references.tex $(mtexdir)/dependencies.tex \ # for details. # # We need the modification to 'LD_LIBRARY_PATH' because we do not -# build LaTeX from source and it uses '/bin/sh' (among other -# possible system-wide things). - export LD_LIBRARY_PATH="$(sys_library_sh_path):$$LD_LIBRARY_PATH" +# build LaTeX from source and it (or its packages) may use +# '/bin/sh' (among other possible system-wide things). + export LD_LIBRARY_PATH="$(SYS_LIBRARY_SH_PATH):$$LD_LIBRARY_PATH" pdflatex -shell-escape -halt-on-error "$$p"/paper.tex biber paper fi @@ -198,9 +198,9 @@ paper.pdf: $(mtexdir)/project.tex paper.tex $(texbdir)/paper.bbl # option '-shell-escape'. # # We need the modification to 'LD_LIBRARY_PATH' because we do not -# build LaTeX from source and it uses '/bin/sh' (among other -# possible system-wide things). - export LD_LIBRARY_PATH="$(sys_library_sh_path):$$LD_LIBRARY_PATH" +# build LaTeX from source and it (or its packages) may use +# '/bin/sh' (among other possible system-wide things). + export LD_LIBRARY_PATH="$(SYS_LIBRARY_SH_PATH):$$LD_LIBRARY_PATH" pdflatex -shell-escape -halt-on-error "$$p"/paper.tex # Come back to the top project directory and copy the built PDF |