File: fix-pdflatex-invocation.diff

package info (click to toggle)
doxygen 1.9.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,864 kB
  • sloc: cpp: 214,147; lex: 40,502; python: 31,110; ansic: 17,177; xml: 11,891; javascript: 2,630; yacc: 580; php: 441; perl: 377; makefile: 185; sh: 26; objc: 14; cs: 5; f90: 4; java: 1
file content (44 lines) | stat: -rw-r--r-- 2,029 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Fix pdflatex invocation
 In /usr/share/texlive/texmf-dist/web2c/texmf.cnf, openout_any is set to p
 (paranoid), so that LaTeX does not allow to write out of the current
 directory and its sub-directories.
 .
 Override that in the pdflatex invocation to avoid error:
 Not writing to ../html/examples/group/latex//group__group2.aux
Forwarded: https://github.com/doxygen/doxygen/issues/8226
Author: Paolo Greppi <paolo.greppi@libpf.com>
Last-Update: 2020-12-05

Index: doxygen/doc/CMakeLists.txt
===================================================================
--- doxygen.orig/doc/CMakeLists.txt
+++ doxygen/doc/CMakeLists.txt
@@ -201,9 +201,9 @@ add_custom_target(doxygen_pdf
         COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_BINARY_DIR}/doc/doxygen_manual.tex  .
         COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_BINARY_DIR}/doc/manual.sty  .
         COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/doc/doxygen_logo.pdf  .
-        COMMAND ${PDFLATEX}  -shell-escape doxygen_manual.tex
+        COMMAND ${PDFLATEX}  -cnf-line="openout_any=r" -shell-escape doxygen_manual.tex
         COMMAND ${MAKEINDEX} doxygen_manual.idx
-        COMMAND ${PDFLATEX}  -shell-escape doxygen_manual.tex
+        COMMAND ${PDFLATEX}  -cnf-line="openout_any=r" -shell-escape doxygen_manual.tex
         DEPENDS run_doxygen
         WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/latex
 )
Index: doxygen/doc/Makefile.latex
===================================================================
--- doxygen.orig/doc/Makefile.latex
+++ doxygen/doc/Makefile.latex
@@ -16,10 +16,10 @@ all: doxygen_manual.pdf
 
 doxygen_manual.pdf: doxygen_manual.tex doxygen.sty
 	echo "Running latex..."
-	pdflatex doxygen_manual.tex 
+	pdflatex -cnf-line="openout_any=r" doxygen_manual.tex
 	echo "Running makeindex..."
 	makeindex doxygen_manual.idx
 	echo "Rerunning latex...."
-	pdflatex doxygen_manual.tex
+	pdflatex -cnf-line="openout_any=r" doxygen_manual.tex
 clean:
 	rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log doxygen_manual.pdf