commit:     93a409d4eb7f22d1bc4644b02a93af2bf3c017b0
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 15:52:42 2016 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 15:58:08 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93a409d4

app-doc/doxygen: Avoid a sandbox violation with (bug #564944)

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 | 6 ++++--
 app-doc/doxygen/doxygen-1.8.11.ebuild    | 6 ++++--
 app-doc/doxygen/doxygen-9999.ebuild      | 6 ++++--
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/app-doc/doxygen/doxygen-1.8.10-r1.ebuild 
b/app-doc/doxygen/doxygen-1.8.10-r1.ebuild
index 86e2e32..17b7a1c 100644
--- a/app-doc/doxygen/doxygen-1.8.10-r1.ebuild
+++ b/app-doc/doxygen/doxygen-1.8.10-r1.ebuild
@@ -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} \

diff --git a/app-doc/doxygen/doxygen-1.8.11.ebuild 
b/app-doc/doxygen/doxygen-1.8.11.ebuild
index fefba30..cdc0d9a 100644
--- a/app-doc/doxygen/doxygen-1.8.11.ebuild
+++ b/app-doc/doxygen/doxygen-1.8.11.ebuild
@@ -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} \

diff --git a/app-doc/doxygen/doxygen-9999.ebuild 
b/app-doc/doxygen/doxygen-9999.ebuild
index 6be87bc..24343d4 100644
--- a/app-doc/doxygen/doxygen-9999.ebuild
+++ b/app-doc/doxygen/doxygen-9999.ebuild
@@ -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} \

Reply via email to