source: chapter08/mpfr.xml@ 1b61cd1

xry111/arm64 xry111/arm64-12.0
Last change on this file since 1b61cd1 was 19f4e4d, checked in by Xi Ruoyao <xry111@…>, 16 months ago

mpfr: Fix a test case

Normally we don't fix test, but see the comment added into the XML file
for the rationale.

Update the number of tests by the way.

  • Property mode set to 100644
File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-mpfr" role="wrap">
9 <?dbhtml filename="mpfr.html"?>
10
11 <sect1info condition="script">
12 <productname>mpfr</productname>
13 <productnumber>&mpfr-version;</productnumber>
14 <address>&mpfr-url;</address>
15 </sect1info>
16
17 <title>MPFR-&mpfr-version;</title>
18
19 <indexterm zone="ch-system-mpfr">
20 <primary sortas="a-MPFR">MPFR</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The MPFR package contains functions for multiple precision
27 math.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&mpfr-fin-sbu;</seg>
35 <seg>&mpfr-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of MPFR</title>
43
44 <!-- https://sympa.inria.fr/sympa/arc/mpfr/2023-01/msg00002.html
45 https://gitlab.inria.fr/mpfr/mpfr/-/commit/5172494c
46
47 Note that it's a different issue from Glibc #30068 we've fixed in
48 chapter08/glibc.xml with a sed. Normally we just document the
49 test failure, but in this case the particular subtest also serves
50 as an additional guard against Glibc #30068. So we apply the
51 upstream fix here. -->
52 <para>Fix a test case based on a bug of old Glibc releases:</para>
53
54<screen><userinput remap="pre">sed -e 's/+01,234,567/+1,234,567 /' \
55 -e 's/13.10Pd/13Pd/' \
56 -i tests/tsprintf.c</userinput></screen>
57
58 <para>Prepare MPFR for compilation:</para>
59
60<screen><userinput remap="configure">./configure --prefix=/usr \
61 --disable-static \
62 --enable-thread-safe \
63 --docdir=/usr/share/doc/mpfr-&mpfr-version;</userinput></screen>
64
65 <para>Compile the package and generate the HTML documentation:</para>
66
67<screen><userinput remap="make">make
68make html</userinput></screen>
69
70 <important>
71 <para>The test suite for MPFR in this section is considered critical.
72 Do not skip it under any circumstances.</para>
73 </important>
74
75 <para>Test the results and ensure that all 197 tests passed:</para>
76
77<screen><userinput remap="test">make check</userinput></screen>
78
79 <para>Install the package and its documentation:</para>
80
81<screen><userinput remap="install">make install
82make install-html</userinput></screen>
83
84 </sect2>
85
86
87 <sect2 id="contents-mpfr" role="content">
88 <title>Contents of MPFR</title>
89
90 <segmentedlist>
91 <segtitle>Installed Libraries</segtitle>
92 <segtitle>Installed directory</segtitle>
93
94 <seglistitem>
95 <seg>libmpfr.so</seg>
96 <seg>/usr/share/doc/mpfr-&mpfr-version;</seg>
97 </seglistitem>
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="libmpfr">
106 <term><filename class="libraryfile">libmpfr</filename></term>
107 <listitem>
108 <para>Contains multiple-precision math functions</para>
109 <indexterm zone="ch-system-mpfr libmpfr">
110 <primary sortas="c-libmpfr">libmpfr</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 </variablelist>
116
117 </sect2>
118
119</sect1>
Note: See TracBrowser for help on using the repository browser.