Bug#889631: mpfr 4.0 branch fails to build with recent tex

2018-02-05 Thread Vincent Lefevre
On 2018-02-05 08:45:00 +0100, Matthias Klose wrote:
[...]
> Chapter 4 [5] [6] [7] [8] [9] [10] Chapter 5 [11] [12] [13] [14] [15] [16]
> ../../../.././../../doc/mpfr.texi:1577: Undefined control sequence.
> \GMPabs #1->\ensuremath
> {|#1|}

FYI, I had to do the following change since 4.0.0:

Index: doc/mpfr.texi
===
--- doc/mpfr.texi   (revision 12081)
+++ doc/mpfr.texi   (revision 12082)
@@ -123,8 +123,11 @@
 
 @c  Usage: @GMPabs{x}
 @c  Give either |x| in tex, or abs(x) in info or html.
+@c  The \ensuremath is needed because the OT1 encoding is used, where
+@c  the pipe character corresponds to a wide dash:
+@chttps://tex.stackexchange.com/a/1775/58921
 @tex
-\gdef\GMPabs#1{|#1|}
+\gdef\GMPabs#1{\ensuremath{|#1|}}
 @end tex
 @ifnottex
 @macro GMPabs {X}

The \ensuremath is necessary to avoid an incorrect PDF file.
For instance, see "It works with..." for mpfr_ai page 28 in
the current

  /usr/share/doc/libmpfr-doc/mpfr.pdf.gz

If I do a

  cp /usr/share/automake-1.15/texinfo.tex doc/

then I can reproduce the error. So, it seems to be a bug in
automake 1.15, solved by the newer texinfo.tex file provided
in the MPFR tarball.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#889631: mpfr 4.0 branch fails to build with recent tex

2018-02-05 Thread Vincent Lefevre
On 2018-02-05 08:45:00 +0100, Matthias Klose wrote:
> Trying to build the 4.0.0 release candidate 2 in Debian unstable,
> the package fails to build the documentation:
> 
> texlive is version 2017.20180110-1.

If I try to build the PDF manually (make pdf), I can't reproduce the
problem.

> /usr/bin/make -C build pdf info html
> make[1]: Entering directory '/home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/build'
> Making pdf in doc
> make[2]: Entering directory 
> '/home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/build/doc'
> TEXINPUTS="../../doc:$TEXINPUTS" \
> MAKEINFO='/bin/bash /home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/missing makeinfo
> --enable-encoding -I ../../doc' \
> texi2dvi --pdf --batch  --build-dir=mpfr.t2p -o mpfr.pdf  \
> ../../doc/mpfr.texi
> This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) 
> (preloaded
> format=pdfetex)
>  restricted \write18 enabled.
> entering extended mode
> 
> (../../../.././../../doc/mpfr.texi
> (/home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/doc/texinfo.tex
> Loading texinfo [version 2013-02-01.11]: pdf, fonts, markup, glyphs,
   ^

This is strange. It should be:

Loading texinfo [version 2018-01-09.11]: pdf, fonts, markup, glyphs,

Don't the Debian tools corrupt the MPFR archive with an older texinfo
version?

FYI, the version used by MPFR 4 is the one from:

  https://ftp.gnu.org/gnu/texinfo/

i.e.

  https://ftp.gnu.org/gnu/texinfo/texinfo.tex
  https://ftp.gnu.org/gnu/texinfo/texinfo.tex.sig

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#889631: mpfr 4.0 branch fails to build with recent tex

2018-02-04 Thread Matthias Klose
Package: src:mpfr4
Version: 4.0.0-7
Severity: important

Trying to build the 4.0.0 release candidate 2 in Debian unstable, the package
fails to build the documentation:

texlive is version 2017.20180110-1.

/usr/bin/make -C build pdf info html
make[1]: Entering directory '/home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/build'
Making pdf in doc
make[2]: Entering directory '/home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/build/doc'
TEXINPUTS="../../doc:$TEXINPUTS" \
MAKEINFO='/bin/bash /home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/missing makeinfo
--enable-encoding -I ../../doc' \
texi2dvi --pdf --batch  --build-dir=mpfr.t2p -o mpfr.pdf  \
../../doc/mpfr.texi
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded
format=pdfetex)
 restricted \write18 enabled.
entering extended mode

(../../../.././../../doc/mpfr.texi
(/home/packages/gcc/mpfr/mpfr4-4.0.1~rc2/doc/texinfo.tex
Loading texinfo [version 2013-02-01.11]: pdf, fonts, markup, glyphs,
page headings, tables, conditionals, indexing, sectioning, toc, environments,
defuns, macros, cross references, insertions,
(/usr/share/texlive/texmf-dist/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.4 <14 February 2011>
) localization, formatting, and turning on texinfo input format.) [1{/var/lib/t
exmf/fonts/map/pdftex/updmap/pdftex.map}]
Cross reference values unknown; you must run TeX again. [2] [-1] [-2]
(MPFR Copying Conditions) Chapter 1 [1] Chapter 2 [2] [3] Chapter 3 [4]
Chapter 4 [5] [6] [7] [8] [9] [10] Chapter 5 [11] [12] [13] [14] [15] [16]
../../../.././../../doc/mpfr.texi:1577: Undefined control sequence.
\GMPabs #1->\ensuremath
{|#1|}
 0.5\le {}\GMPabs {\var {d}}
  <1
\finishmath #1->#1
  $\endgroup
l.1577 such that @math{0.5@le{}@GMPabs{@var{d}}<1}

[17]
../../../.././../../doc/mpfr.texi:1593: Undefined control sequence.
\GMPabs #1->\ensuremath
{|#1|}
 0.5\le {}\GMPabs {\var {y}}
  <1
\finishmath #1->#1
  $\endgroup
l.1593 such that @math{0.5@le{}@GMPabs{@var{y}}<1}

[18]
../../../.././../../doc/mpfr.texi:1696: \scriptfont 5 is undefined (character b
).
l.1696 ...\log 2 \over \log @var{b}} \right\rceil$
  ,
[19] [20] [21]
../../../.././../../doc/mpfr.texi:1889: Undefined control sequence.
\GMPabs #1->\ensuremath
{|#1|}
 0 < \GMPabs {x}
   < 1
\finishmath #1->#1
  $\endgroup
l.1889 ...s infinity for @math{0 < @GMPabs{x} < 1}
  , and plus zero for @math{...

../../../.././../../doc/mpfr.texi:1889: Undefined control sequence.
\GMPabs #1->\ensuremath
{|#1|}
 \GMPabs {x}
   > 1
\finishmath #1->#1
  $\endgroup
l.1889 ... and plus zero for @math{@GMPabs{x} > 1}
  .
../../../.././../../doc/mpfr.texi:1890: Undefined control sequence.
\GMPabs #1->\ensuremath
{|#1|}
 0 < \GMPabs {x}
   < 1
\finishmath #1->#1
  $\endgroup
l.1890 ... plus zero for @math{0 < @GMPabs{x} < 1}
  , and plus infinity for @m...

../../../.././../../doc/mpfr.texi:1890: Undefined control sequence.
\GMPabs #1->\ensuremath
{|#1|}
 \GMPabs {x}
   > 1
\finishmath #1->#1
  $\endgroup
l.1890 ... plus infinity for @math{@GMPabs{x} > 1}
  .
[22]
../../../.././../../doc/mpfr.texi:1972: \scriptfont 5 is undefined (character e
).
l.1 ...@xeatspaces {@var{op2} @times 2^{@var{e}}}$
  @end tex@empty
\scanmacro ...spaceisspace \scantokens {#1\empty }
  \endgroup
\mxxx ...canmacro {@tex$\xeatspaces {#1}$@end tex}
  \egroup
l.1972 the power @var{e}}
 . Similar as above.
[23] [24]
../../../.././../../doc/mpfr.texi:2122: Undefined control sequence.
@GMPabs #1->@ensuremath
{|#1|}
 ...) = sign(y)*(Pi - atan(@GMPabs {y/x}
  ))
@tclose ...on @rawbackslash @plainfrenchspacing #1
  }@null
@codex #1->@tclose {#1}
   @endgroup
l.2122 ... x) = sign(y)*(Pi - atan(@GMPabs{y/x}))}
  ,
[25]
../../../.././../../doc/mpfr.texi:2212: \scriptfont 5 is undefined (character o
).
l.1 ...{-@int _{t=0}^{@var{op}} @log (1-t)/t@ dt}$
  @end tex@empty
\scanmacro ...spaceisspace \scantokens {#1\empty }
  \endgroup
\mxxx ...canmacro {@tex$\xeatspaces {#1}$@end