Your message dated Mon, 23 Dec 2019 21:51:33 +0000
with message-id <[email protected]>
and subject line Bug#947121: fixed in doxygen 1.8.16-2
has caused the Debian Bug report #947121,
regarding doxygen: Incorrect invocation of ghostscript (breaks with 9.50)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
947121: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947121
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: doxygen
Version: 1.8.16-1
Severity: important
Tags: patch upstream

Hello,

doxygen incorrectly invokes ghostscript which breaks e.g. building
libvigraimpex:
-----------------------
Transcript written on _formulas.log.
Error: /undefinedfilename in (_form0.ps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:730/1123(ro)(G)--   --dict:0/20(G)--   --dict:76/200(L)--
Current allocation mode is local
Last OS error: Permission denied
GPL Ghostscript 9.50: Unrecoverable error, exit code 1
error: Problem running ghostscript gs -q -g130x104 -r614x614x -sDEVICE=ppmraw 
-sOutputFile=_form0.pnm -dNOPAUSE -dBATCH -- _form0.ps. Check your installation!
-----------------------

This is fixed in upstream GIT, see 
https://github.com/doxygen/doxygen/issues/7290

cu Andreas
diff -Nru doxygen-1.8.16/debian/changelog doxygen-1.8.16/debian/changelog
--- doxygen-1.8.16/debian/changelog	2019-12-10 23:48:20.000000000 +0100
+++ doxygen-1.8.16/debian/changelog	2019-12-21 10:41:35.000000000 +0100
@@ -1,3 +1,11 @@
+doxygen (1.8.16-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Pull fix for https://github.com/doxygen/doxygen/issues/7290 from upstream
+    GIT.
+
+ -- Andreas Metzler <[email protected]>  Sat, 21 Dec 2019 10:41:35 +0100
+
 doxygen (1.8.16-1) unstable; urgency=medium
 
   [ Steve Langasek ]
diff -Nru doxygen-1.8.16/debian/patches/0001-issue-7290-error-Problem-running-ghostscript-gs-q-g5.patch doxygen-1.8.16/debian/patches/0001-issue-7290-error-Problem-running-ghostscript-gs-q-g5.patch
--- doxygen-1.8.16/debian/patches/0001-issue-7290-error-Problem-running-ghostscript-gs-q-g5.patch	1970-01-01 01:00:00.000000000 +0100
+++ doxygen-1.8.16/debian/patches/0001-issue-7290-error-Problem-running-ghostscript-gs-q-g5.patch	2019-12-21 10:41:35.000000000 +0100
@@ -0,0 +1,39 @@
+From f08e87623368134c6541af12995b811ef9aff069 Mon Sep 17 00:00:00 2001
+From: albert-github <[email protected]>
+Date: Tue, 12 Nov 2019 11:42:22 +0100
+Subject: [PATCH] issue #7290 error: Problem running ghostscript gs -q -g562x56
+ -r384x384x -sDEVICE=ppmraw -sOutputFile=_form0.pnm -dNOPAUSE -dBATCH --
+ _form0.ps. Check your installation!
+
+@maehr had a talk with Robin Watts and Ken Sharp at IRC and there seem to be basically 3 different problems:
+* `-r%dx%d` (the dimension for `r` shouldn't be `-r384x384x`, but `-r384x384`),
+* misuse / unnecessary use of `--` and
+* since 9.50 the command needs more control access (that might be worked around by either whitelisting the file via `--permit-file-read=_form0.eps` (only works from 9.50 and upwards) or generally accepting any file with `-dNOSAFER` (works since quite some time). The second option is considered to be unsafe if we would process any file, but in this case we process self produced / controlled files. I don't know if doxygen has any threat model that it assumes. ).
+
+> Ken Sharp: Yeah the %dx is wrong, as Robin says its sheer luck that works
+the -- isn't needed and is what's causing the first problem
+and file control is the new bugbear
+
+The suggestions have been implemented and test / docs works now with old and new version.
+---
+ src/formula.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/formula.cpp b/src/formula.cpp
+index 534f56ac..3d8e6ce1 100644
+--- a/src/formula.cpp
++++ b/src/formula.cpp
+@@ -193,8 +193,8 @@ void FormulaList::generateBitmaps(const char *path)
+       // used.  
+ 
+       char gsArgs[4096];
+-      sprintf(gsArgs,"-q -g%dx%d -r%dx%dx -sDEVICE=ppmraw "
+-                    "-sOutputFile=%s.pnm -dNOPAUSE -dBATCH -- %s.ps",
++      sprintf(gsArgs,"-q -g%dx%d -r%dx%d -sDEVICE=ppmraw "
++                    "-sOutputFile=%s.pnm -dNOPAUSE -dBATCH -dNOSAFER %s.ps",
+                     gx,gy,(int)(scaleFactor*72),(int)(scaleFactor*72),
+                     formBase.data(),formBase.data()
+              );
+-- 
+2.24.0
+
diff -Nru doxygen-1.8.16/debian/patches/series doxygen-1.8.16/debian/patches/series
--- doxygen-1.8.16/debian/patches/series	2019-12-10 19:12:28.000000000 +0100
+++ doxygen-1.8.16/debian/patches/series	2019-12-21 10:41:35.000000000 +0100
@@ -13,3 +13,4 @@
 faketime_pdflatex.diff
 libatomic.diff
 blank-file-patterns.diff
+0001-issue-7290-error-Problem-running-ghostscript-gs-q-g5.patch

--- End Message ---
--- Begin Message ---
Source: doxygen
Source-Version: 1.8.16-2

We believe that the bug you reported is fixed in the latest version of
doxygen, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Paolo Greppi <[email protected]> (supplier of updated doxygen package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 22 Dec 2019 10:17:19 +0100
Source: doxygen
Architecture: source
Version: 1.8.16-2
Distribution: unstable
Urgency: medium
Maintainer: Paolo Greppi <[email protected]>
Changed-By: Paolo Greppi <[email protected]>
Closes: 947121
Changes:
 doxygen (1.8.16-2) unstable; urgency=medium
 .
   * Build-depend on qtbase5-dev version that fixes 947117.
   * Import upstream patch for ghostscript 9.50 invocation. Closes: #947121.
Checksums-Sha1:
 c69c44a3df692029a4fdc08c587ff7a857d98c13 2776 doxygen_1.8.16-2.dsc
 5a36f3f7628be9a67b5f2c5bf4807a9c58412e99 27776 doxygen_1.8.16-2.debian.tar.xz
 feaba89a48ebe40c8ba84272e1b14be7057c7cec 12047 
doxygen_1.8.16-2_source.buildinfo
Checksums-Sha256:
 70ef4131eb7c4d951df6be7e0ed4415feeceb349b57ceb8656e2e72e2c75bb3b 2776 
doxygen_1.8.16-2.dsc
 fdf44312a116b96fb0d3db07d0430d6fe6ac19b1bcbd9ba7e0e4b0ee5c63b93d 27776 
doxygen_1.8.16-2.debian.tar.xz
 dece8c63c6990bb718b1b42ee1bdff88e5630476b9027424c5eef7c931a7df47 12047 
doxygen_1.8.16-2_source.buildinfo
Files:
 a56db7c5dd7a99f95dc82681fc2db77b 2776 devel optional doxygen_1.8.16-2.dsc
 928ecce17658e9fc13964fa55ab87d55 27776 devel optional 
doxygen_1.8.16-2.debian.tar.xz
 fa0e58c887b54744eb4b0fa5d2cde545 12047 devel optional 
doxygen_1.8.16-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJLBAEBCgA1FiEEyTpTRBhTUv5T0mHqIjkMJVxGBPQFAl3/VMEXHHBhb2xvLmdy
ZXBwaUBsaWJwZi5jb20ACgkQIjkMJVxGBPSviBAAvHmQR5qGeapKwIlo6f1945pG
a3n75oD744qTCzs4JaAEdIq9SFl8BBZX0fNZx9T6KGEegqQ5WQ0lYYIiOweyZ8Cc
0+gxs9RByMgxrrlBMvCV0OHvNpy3nSDBE+tHXTjcia/jMIHNb6LjHbbVkmTyPauy
OAAAlrQOYnVbwPnP8siX6LAT6qgXRStBuAp7+A6A44HJTaB+nrYjCq6o5SAXf/aY
+kgvLaVHRZinTeLDM7IdTng372a2npBRJC5unK/JKurJpMULPCMGG8B8Ok4s99rH
8kmBYBJLNPMjc3ircuvk/mxZO9Knk1uRnlNccsQN8tBQMN40yCVBNPTe26Hxp9Au
UvhqZqBaR2DIfjYnl5/L5p9ssIAMr/0bqGuT1cNyUzUdtXymbo9cxh+4hWKcx21X
re9/kDlGnIB04YGhiX9joknr/dogPq8NaWAei72TImFIyCzJxpYtgsgxHfHuGfvP
geqYYzHeMw5xjZZfpLicPNMR/JHVTiIkTmSR8i/g+EC1F2T0UZfji7JzguAwCU3V
35GJWUOp5p8X9Ghww72cmTnNoYSjuwPH/etLEH5HjzBHLCUHilvUe7EPAfnv3nP+
+lD1fbITAkieXpwxdR/70AHq2T5jOc2yrgw2ex8pw6ccFWpXj9Vnaflkg9F2oggz
gJmPQ7UBGzk7sIubgJI=
=U/wm
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to