Bug#943423: troubles generating refman.pdf

2020-02-25 Thread Aurelien Jarno
Hi,

On 2020-02-05 15:04, Gordon, Craig A. (GSFC-660.1)[INNOVIM] wrote:
> Hi Paolo,
> 
> It was never intended for end users to have to generate the CCfits manual 
> themselves (nor is it intended to be compatible with all versions of 
> Doxygen).  That's why CCfits-2.5.pdf is included with the stand-alone 
> distribution.  Is there a special reason you're trying to run "make docs"?  
> Because otherwise I wouldn't recommend doing that.

In Debian we have a rule requiring that everything, including
documentation, is rebuild from sources.

I have finally been able to build the documentation with the attached
patch. It fixes two issues:
- Newer versions of doxygen now interpret "" in "KeyData" as an
  the underline HTML command. The patch escapes it so that it is not
  interpreted anymore.
- Newer versions of doxygen have markdown support enabled by default,
  causing indented lines to be interpreted as the verbatim code.

Best regards,
Aurelien Jarno

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net
--- a/Doxyfile.in
+++ b/Doxyfile.in
@@ -1758,3 +1758,13 @@ GENERATE_LEGEND= YES
 # the various graphs.
 
 DOT_CLEANUP= YES
+
+# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
+# according to the Markdown format, which allows for more readable
+# documentation. See https://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you can
+# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
+# case of backward compatibilities issues.
+
+MARKDOWN_SUPPORT   = NO
+
--- a/Keyword.h
+++ b/Keyword.h
@@ -155,7 +155,7 @@ namespace CCfits {
\param val (T) Will be filled with the keyword value, and is also the function return value.
 
Allowed T types: CCfits stores keyword values of type U in a templated subclass of
-   Keyword, KeyData.  Normally U is set when reading the Keyword in from the file, 
+   Keyword, KeyData\.  Normally U is set when reading the Keyword in from the file, 
and is limited to types int, double, string, bool, and complex.
(The exception is when the user has created and added a new Keyword using an
HDU::addKey function, in which case they might have specified other types for U.)  
@@ -180,7 +180,7 @@ namespace CCfits {
\param newValue (T) New value for the Keyword
 
Allowed T types: This must copy newValue to a data member of type U in the
-   Keyword subclass KeyData (see description for Keyword::value (T& val) for more
+   Keyword subclass KeyData\ (see description for Keyword::value (T& val) for more
details).  To avoid compilation errors, it is generally best to provide a newValue
of type T = type U, though the following type conversions will also be handled:
 


signature.asc
Description: PGP signature


Bug#943423: troubles generating refman.pdf

2020-02-05 Thread Gordon, Craig A. (GSFC-660.1)[INNOVIM]
Hi Paolo,

It was never intended for end users to have to generate the CCfits manual 
themselves (nor is it intended to be compatible with all versions of Doxygen).  
That's why CCfits-2.5.pdf is included with the stand-alone distribution.  Is 
there a special reason you're trying to run "make docs"?  Because otherwise I 
wouldn't recommend doing that.

-Craig


From: Paolo Greppi 
Sent: Wednesday, February 5, 2020 6:34 AM
To: ccf...@heasarc.gsfc.nasa.gov 
Cc: 943...@bugs.debian.org <943...@bugs.debian.org>
Subject: troubles generating refman.pdf

Hi,

CCfits fails to generate refman.pdf on Debian unstable with doxygen 1.8.16 and 
pdflatex from texlive-latex-base 2019.20191208.

To reproduce:

  wget https://heasarc.gsfc.nasa.gov/fitsio/CCfits/CCfits-2.5.tar.gz
  tar xf CCfits-2.5.tar.gz
  cd CCfits/
  ./configure
  make docs
  make -C latex

output:

  make: *** [Makefile:8: refman.pdf] Error 1

I attach refman.log

For more background: https://bugs.debian.org/943423

Thanks !

Paolo


Bug#943423: troubles generating refman.pdf

2020-02-05 Thread Paolo Greppi
Hi,

CCfits fails to generate refman.pdf on Debian unstable with doxygen 1.8.16 and 
pdflatex from texlive-latex-base 2019.20191208.

To reproduce:

  wget https://heasarc.gsfc.nasa.gov/fitsio/CCfits/CCfits-2.5.tar.gz
  tar xf CCfits-2.5.tar.gz 
  cd CCfits/
  ./configure
  make docs
  make -C latex

output:

  make: *** [Makefile:8: refman.pdf] Error 1

I attach refman.log

For more background: https://bugs.debian.org/943423

Thanks !

Paolo


refman.log.xz
Description: application/xz