I am running a makefile for my employers software that auto-generates documentation through Doxygen. Towards the end of the build formulae are generated to add to the html documentation. The Ghostscript command that appears to process these formulae fails with the following error message:
Error: /invalidfileaccess in --run–
Operand stack:
(_form0.eps) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- run --nostringval-- 2 %sto
pped_push --nostringval-- run run false 1 %stopped_push 1974 1
3 %oparray_pop 1973 1 3 %oparrGPL Ghostscript 9.52: Unrecoverable err
or, exit code 1
ay_pop 1961 1 3 %oparray_pop 1817 1 3 %oparray_pop --nostringv
al-- %errorexec_pop .runexec2 --nostringval-- run --nostringval-- 2
%stopped_push --nostringval-- 1974 1 3 %oparray_pop run
Dictionary stack:
–dict:737/1123(ro)(G)-- --dict:0/20(G)-- --dict:76/200(L)–
Current allocation mode is local
Last OS error: Permission denied
Current file position is 150
error: Problem running ghostscript gs -q -g616x66 -r384x384x -sDEVICE=ppmraw -sO
utputFile=_form0.pnm -dNOPAUSE -dBATCH – _form0.ps. Check your installation!
I have done some research relating to this error and it appears that there is a version incompatibility between ghostscript and Doxygen relating to the file security access feature introduced into ghostscript as of version 9.50.
As far as I have been able to make out this error has been fixed in Doxygen 1.19.x but the versions bundled with Leap 15.2 are
ghostscript 9.52 (this has the file security feature)
doxygen 1.8.14 (this version does not generate the relevant command to allow access to the file to be processed)
I have checked with the Opensuse repositories and it appears that a 1.19.x version of doxygen will not be available in Leap 15.3 so perpetuating the incompatibility. The only 1.19.x version is in the Tumbleweed distribution but installing this is not practical because of potential stability issues.
Do you have any suggestions how I might resolve this issue, I suppose I could revert ghostscript to 9.27 which is the last version that does not have the security issue but again I do not really want to do this. Is it possible to create a Leap 15.2 version of doxygen 1.19.x?