source: chapter08/mpc.xml@ c9aabf1

11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since c9aabf1 was c9aabf1, checked in by Bruce Dubbs <bdubbs@…>, 17 months ago

Package updates and a minor fix.
Ensure a gawk hard link is updated in Chapter 8.
Update to iana-etc-20221209.
Update to vim-9.0.1060.
Update to iproute2-6.1.0.
Update to xz-5.4.0.
Update to bash-5.2.15.
Update to psmisc-23.6.
Update to mpc-1.3.0.
Update to python3-3.11.1.
Update to procps-ng-4.0.2.

  • Property mode set to 100644
File size: 3.1 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-mpc" role="wrap">
9 <?dbhtml filename="mpc.html"?>
10
11 <sect1info condition="script">
12 <productname>mpc</productname>
13 <productnumber>&mpc-version;</productnumber>
14 <address>&mpc-url;</address>
15 </sect1info>
16
17 <title>MPC-&mpc-version;</title>
18
19 <indexterm zone="ch-system-mpc">
20 <primary sortas="a-MPC">MPC</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The MPC package contains a library for the arithmetic of complex
27 numbers with arbitrarily high precision and correct rounding of the
28 result.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&mpc-fin-sbu;</seg>
36 <seg>&mpc-fin-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of MPC</title>
44
45 <para>First, make a fix identified upstream:</para>
46
47<screen><userinput remap="pre">sed -i '273{ h; d; }; 274,286 { H; d; }; 287 G' src/mpc.h</userinput></screen>
48
49 <note>
50 <para>This sed is a little complex and needs some explanation. It holds
51 the line 273 in a buffer, adds lines 274-286 to it. It then writes the
52 buffer out after line 287 is read. The result is that the line 287 is
53 moved upwards from an incorrect location to its correct location in an
54 #ifdef block.</para>
55 </note>
56
57 <para>Prepare MPC for compilation:</para>
58
59<screen><userinput remap="configure">./configure --prefix=/usr \
60 --disable-static \
61 --docdir=/usr/share/doc/mpc-&mpc-version;</userinput></screen>
62
63 <para>Compile the package and generate the HTML documentation:</para>
64
65<screen><userinput remap="make">make
66make html</userinput></screen>
67
68 <para>To test the results, issue:</para>
69
70<screen><userinput remap="test">make check</userinput></screen>
71
72 <para>Install the package and its documentation:</para>
73
74<screen><userinput remap="install">make install
75make install-html</userinput></screen>
76
77 </sect2>
78
79
80 <sect2 id="contents-mpc" role="content">
81 <title>Contents of MPC</title>
82
83 <segmentedlist>
84 <segtitle>Installed Libraries</segtitle>
85 <segtitle>Installed Directory</segtitle>
86
87 <seglistitem>
88 <seg>libmpc.so</seg>
89 <seg>/usr/share/doc/mpc-&mpc-version;</seg>
90 </seglistitem>
91 </segmentedlist>
92
93 <variablelist>
94 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
95 <?dbfo list-presentation="list"?>
96 <?dbhtml list-presentation="table"?>
97
98 <varlistentry id="libmpc">
99 <term><filename class="libraryfile">libmpc</filename></term>
100 <listitem>
101 <para>Contains complex math functions</para>
102 <indexterm zone="ch-system-mpc libmpc">
103 <primary sortas="c-libmpc">libmpc</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 </variablelist>
109
110 </sect2>
111
112</sect1>
Note: See TracBrowser for help on using the repository browser.