summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-05-11 11:01:55 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-05-11 11:01:55 +0200
commit29c346fe219cc5c367ca23e4dd03a9e0026091b8 (patch)
tree105af29afcba5a5d5d6ac8d4ae47b45e2a72aa2b /eclass/latex-package.eclass
parentdev-ml/js-build-tools: bump to 113.33.04 (diff)
downloadgentoo-29c346fe219cc5c367ca23e4dd03a9e0026091b8.tar.gz
gentoo-29c346fe219cc5c367ca23e4dd03a9e0026091b8.tar.bz2
gentoo-29c346fe219cc5c367ca23e4dd03a9e0026091b8.zip
eclass/latex-package.eclass: set VARTEXFONTS inside the sandbox when possibly compiling latex files.
Should help in bugs like #580912
Diffstat (limited to 'eclass/latex-package.eclass')
-rw-r--r--eclass/latex-package.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
index a17e5b389f72..bfddfadf4d01 100644
--- a/eclass/latex-package.eclass
+++ b/eclass/latex-package.eclass
@@ -96,6 +96,10 @@ latex-package_has_tetex_3() {
# for a TeX installation
latex-package_src_doinstall() {
debug-print function $FUNCNAME $*
+
+ # Avoid generating font cache outside of the sandbox
+ export VARTEXFONTS="${T}/fonts"
+
# This actually follows the directions for a "single-user" system
# at http://www.ctan.org/installationadvice/ modified for gentoo.
[ -z "$1" ] && latex-package_src_install all