summaryrefslogtreecommitdiff
path: root/games-engines/box2d/files/box2d-2.4.2-sandbox-error.patch
blob: 7960c12e8ed334d83fe503ee6c3953739a14bf49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Fix WARN_LOGFILE path

The BOX2D_BINARY_DIR variable does not appear to be set, resulting in a
Doxygen file that attempts to write to /docs/, outside the sandbox,
resulting in a sandbox violation.  Replace with the CMAKE_BINARY_DIR
variable, which seems to result in putting the warnings in a
semi-sensible location.

Alternative fix:  Set WARN_LOGFILE to a blank value, which results in
the warnings being written to the build log instead.

https://bugs.gentoo.org/show_bug.cgi?id=907072

diff --git a/docs/Doxyfile.in b/docs/Doxyfile.in
index 0123456..0123456 100644
--- a/docs/Doxyfile.in
+++ b/docs/Doxyfile.in
@@ -817,7 +817,7 @@ WARN_FORMAT            = "$file:$line: $text"
 # messages should be written. If left blank the output is written to standard
 # error (stderr).
 
-WARN_LOGFILE           = "@BOX2D_BINARY_DIR@/docs/warnings.txt"
+WARN_LOGFILE           = "@CMAKE_BINARY_DIR@/docs/warnings.txt"
 
 #---------------------------------------------------------------------------
 # Configuration options related to the input files