eclass/latex-package.eclass: set VARTEXFONTS inside the sandbox when possibly compili...
authorAlexis Ballier <aballier@gentoo.org>
Wed, 11 May 2016 09:01:55 +0000 (11:01 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 11 May 2016 09:01:55 +0000 (11:01 +0200)
Should help in bugs like #580912

eclass/latex-package.eclass

index a17e5b389f7267f26d17039eef52516c79796609..bfddfadf4d01be29b29a49d5a9f3f7063894d43a 100644 (file)
@@ -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