app-doc/doxygen: Avoid a sandbox violation with (bug #564944)
authorMatthias Maier <tamiko@gentoo.org>
Sun, 28 Feb 2016 15:52:42 +0000 (09:52 -0600)
committerMatthias Maier <tamiko@gentoo.org>
Sun, 28 Feb 2016 15:58:08 +0000 (09:58 -0600)
Export VARTEXFONTS="${T}/fonts" such that kpathsea does not try to write to
/var/cache/fonts/pk/... during doc generation.

Package-Manager: portage-2.2.26

app-doc/doxygen/doxygen-1.8.10-r1.ebuild
app-doc/doxygen/doxygen-1.8.11.ebuild
app-doc/doxygen/doxygen-9999.ebuild

index 86e2e326d463808c256298dd837241ab40394819..17b7a1c66800a89059841affedcfe51290896225 100644 (file)
@@ -139,9 +139,11 @@ src_compile() {
        cmake-utils_src_compile
 
        # generate html and pdf documents. errors here are not considered
-       # fatal, hence the ewarn message TeX's font caching in /var/cache/fonts
-       # causes sandbox warnings, so we allow it.
+       # fatal, hence the ewarn message.
+
        if use doc; then
+               export VARTEXFONTS="${T}/fonts" # bug #564944
+
                if ! use dot; then
                        sed -i -e "s/HAVE_DOT               = YES/HAVE_DOT    = NO/" \
                                {Doxyfile,doc/Doxyfile} \
index fefba30fbd09cd5f627b51950ab8efc64bc6d862..cdc0d9ab9dd50be39b245308787857d9df574256 100644 (file)
@@ -141,9 +141,11 @@ src_compile() {
        cmake-utils_src_compile
 
        # generate html and pdf documents. errors here are not considered
-       # fatal, hence the ewarn message TeX's font caching in /var/cache/fonts
-       # causes sandbox warnings, so we allow it.
+       # fatal, hence the ewarn message.
+
        if use doc; then
+               export VARTEXFONTS="${T}/fonts" # bug #564944
+
                if ! use dot; then
                        sed -i -e "s/HAVE_DOT               = YES/HAVE_DOT    = NO/" \
                                {Doxyfile,doc/Doxyfile} \
index 6be87bcb1ac5b5301b09b1ad5a8142d0a1d07f7f..24343d46489fc19d03700efdc75bc46d9f4f02dc 100644 (file)
@@ -140,9 +140,11 @@ src_compile() {
        cmake-utils_src_compile
 
        # generate html and pdf documents. errors here are not considered
-       # fatal, hence the ewarn message TeX's font caching in /var/cache/fonts
-       # causes sandbox warnings, so we allow it.
+       # fatal, hence the ewarn message.
+
        if use doc; then
+               export VARTEXFONTS="${T}/fonts" # bug #564944
+
                if ! use dot; then
                        sed -i -e "s/HAVE_DOT               = YES/HAVE_DOT    = NO/" \
                                {Doxyfile,doc/Doxyfile} \