source: postlfs/filesystems/parted.xml@ 2f3e3de9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2f3e3de9 was 2f3e3de9, checked in by Pierre Labastie <pieere@…>, 5 years ago

Another round of adding remap="doc". jhalfs should be soon updated to
use them

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21900 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.7 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 <!ENTITY parted-download-http "&gnu-http;/parted/parted-&parted-version;.tar.xz">
8 <!ENTITY parted-download-ftp "&gnu-ftp;/parted/parted-&parted-version;.tar.xz">
9 <!ENTITY parted-md5sum "0247b6a7b314f8edeb618159fa95f9cb">
10 <!ENTITY parted-size "1.6 MB">
11 <!ENTITY parted-buildsize "27 MB (additional 2 MB for the tests and additional 1 MB for optional PDF and Postscript documentation)">
12 <!ENTITY parted-time "0.4 SBU (additional 0.6 SBU for the tests)">
13]>
14
15<sect1 id="parted" xreflabel="parted-&parted-version;">
16 <?dbhtml filename="parted.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>parted-&parted-version;</title>
24
25 <indexterm zone="parted">
26 <primary sortas="a-parted">Parted</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to parted</title>
31
32 <para>
33 The <application>Parted</application> package is a disk partitioning and
34 partition resizing tool.
35 </para>
36
37 &lfs84_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&parted-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&parted-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &parted-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &parted-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &parted-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &parted-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>
65 Optional, to fix build without device mapper support:
66 <ulink url="&patch-root;/parted-&parted-version;-devmapper-1.patch"/>
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Parted Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Recommended</bridgehead>
74 <para role="recommended">
75 <xref linkend="lvm2"/> (device-mapper, required if building
76 <application>udisks</application>)
77 </para>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional">
81 <xref linkend="pth"/> and
82 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
83 </para>
84
85 <para condition="html" role="usernotes">
86 User Notes: <ulink url="&blfs-wiki;/parted"/>
87 </para>
88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of parted</title>
92
93 <para>
94 If you want to build without device mapper support, a fix is necessary:
95 </para>
96
97<screen><userinput>patch -Np1 -i ../parted-&parted-version;-devmapper-1.patch</userinput></screen>
98
99 <para>
100 Install <application>Parted</application> by running the following
101 commands:
102 </para>
103
104<screen><userinput>sed -i '/utsname.h/a#include &lt;sys/sysmacros.h&gt;' libparted/arch/linux.c &amp;&amp;
105
106./configure --prefix=/usr --disable-static &amp;&amp;
107make &amp;&amp;
108
109make -C doc html &amp;&amp;
110makeinfo --html -o doc/html doc/parted.texi &amp;&amp;
111makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
112
113 <para>If you have <xref linkend="texlive"/> installed and wish to create
114 PDF and Postcript documentation issue the following commands:</para>
115
116<screen remap="doc"><userinput>texi2pdf -o doc/parted.pdf doc/parted.texi &amp;&amp;
117texi2dvi -o doc/parted.dvi doc/parted.texi &amp;&amp;
118dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
119
120 <para>If you wish to run the test suite, first remove a test that normally
121 fails in BLFS (because it needs a locale C.UTF-8):</para>
122
123<screen remap="test"><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile</userinput></screen>
124
125 <para>
126 To test the results, issue, as the <systemitem
127 class="username">root</systemitem> user:
128 </para>
129
130<screen role="root" remap="test"><userinput>make check</userinput></screen>
131
132 <note>
133 <para>
134 Many tests are skipped if not run as the <systemitem
135 class="username">root</systemitem> user.
136 </para>
137 </note>
138
139 <para>
140 Now, as the <systemitem class="username">root</systemitem> user:
141 </para>
142
143<screen role="root"><userinput>make install &amp;&amp;
144install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &amp;&amp;
145install -v -m644 doc/html/* \
146 /usr/share/doc/parted-&parted-version;/html &amp;&amp;
147install -v -m644 doc/{FAT,API,parted.{txt,html}} \
148 /usr/share/doc/parted-&parted-version;</userinput></screen>
149
150 <para>Install the optional PDF and Postscript documentation by issuing
151 the following command as the <systemitem class="username">root</systemitem>
152 user:</para>
153
154<screen role="root"
155 remap="doc"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
156 /usr/share/doc/parted-&parted-version;</userinput></screen>
157 </sect2>
158
159 <sect2 role="commands">
160 <title>Command Explanations</title>
161
162 <para>
163 <command>sed ...</command>: Add a header to allow building with glibc-2.28
164 or later.
165 </para>
166
167 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
168 href="../../xincludes/static-libraries.xml"/>
169
170 <para>
171 <option>--disable-device-mapper</option>: This option disables device
172 mapper support. Add this parameter if you have not installed
173 <application>LVM2</application>.
174 </para>
175 </sect2>
176
177 <sect2 role="content">
178 <title>Contents</title>
179
180 <segmentedlist>
181 <segtitle>Installed Programs</segtitle>
182 <segtitle>Installed Libraries</segtitle>
183 <segtitle>Installed Directories</segtitle>
184
185 <seglistitem>
186 <seg>
187 parted and
188 partprobe
189 </seg>
190 <seg>
191 libparted.so and
192 libparted-fs-resize.so</seg>
193 <seg>
194 /usr/include/parted and
195 /usr/share/doc/parted-&parted-version;</seg>
196 </seglistitem>
197 </segmentedlist>
198
199 <variablelist>
200 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
201 <?dbfo list-presentation="list"?>
202 <?dbhtml list-presentation="table"?>
203
204 <varlistentry id="parted-prog">
205 <term><command>parted</command></term>
206 <listitem>
207 <para>is a partition manipulation program.</para>
208 <indexterm zone="parted parted-prog">
209 <primary sortas="b-parted">parted</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="partprobe">
215 <term><command>partprobe</command></term>
216 <listitem>
217 <para>informs the OS of partition table changes.</para>
218 <indexterm zone="parted partprobe">
219 <primary sortas="b-partprobe">partprobe</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="libparted">
225 <term><filename class='libraryfile'>libparted.so</filename></term>
226 <listitem>
227 <para>
228 contains the <application>Parted</application> API functions.
229 </para>
230 <indexterm zone="parted libparted">
231 <primary sortas="c-libparted">libparted.so</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235 </variablelist>
236 </sect2>
237</sect1>
Note: See TracBrowser for help on using the repository browser.