source: general/genlib/libblockdev.xml@ d260c36e

11.0 11.1 11.2 11.3 12.0 12.1 12.2 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d260c36e was ce8e472, checked in by Xi Ruoyao <xry111@…>, 3 years ago

libblockdev: fix FTBFS with glib-2.68

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

  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[6dcb9e77]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 libblockdev-download-http
[5bffcec7]8 "https://github.com/storaged-project/libblockdev/releases/download/&libblockdev-version;-1/libblockdev-&libblockdev-version;.tar.gz">
[6dcb9e77]9 <!ENTITY libblockdev-download-ftp " ">
[c513d6e6]10 <!ENTITY libblockdev-md5sum "3873d4c97d82121ce86dab745b1862fc">
11 <!ENTITY libblockdev-size "912 KB">
12 <!ENTITY libblockdev-buildsize "14 MB">
[9e629a4]13 <!ENTITY libblockdev-time "0.2 SBU">
[6dcb9e77]14]>
15
16<sect1 id="libblockdev" xreflabel="libblockdev-&libblockdev-version;">
17 <?dbhtml filename="libblockdev.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>libblockdev-&libblockdev-version;</title>
25
26 <indexterm zone="libblockdev">
27 <primary sortas="a-libblockdev">libblockdev</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to libblockdev</title>
32
33 <para>
[0ecaac7]34 libblockdev is a C library supporting GObject Introspection for
[6dcb9e77]35 manipulation of block devices. It has a plugin-based architecture where
36 each technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a
37 separate plugin, possibly with multiple implementations (e.g. using LVM
38 CLI or the new LVM DBus API).
39 </para>
40
[9029db2]41 &lfs101_checked;
[6dcb9e77]42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&libblockdev-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&libblockdev-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &libblockdev-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &libblockdev-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &libblockdev-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &libblockdev-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">libblockdev Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
81 <xref linkend="gobject-introspection"/>,
[66d9ef8]82 <xref linkend="libbytesize"/>,
[b738ceb]83 <xref linkend="libyaml"/>,
84 <xref linkend="parted"/>, and
85 <xref linkend="volume_key"/>
[6dcb9e77]86 </para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <xref linkend="btrfs-progs"/>,
91 <xref linkend="gtk-doc"/>,
92 <xref linkend="mdadm"/>,
[c6b192c]93 <ulink url="https://people.redhat.com/~heinzm/sw/dmraid/">dmraid</ulink>,
[8ca7994]94 <ulink url="http://bcachefs.org/">bcachefs</ulink>, and
[16dc2c74]95 <ulink url="https://github.com/pmem/ndctl">ndctl</ulink>
[6dcb9e77]96 </para>
97
98 <para condition="html" role="usernotes">User Notes:
99 <ulink url="&blfs-wiki;/libblockdev"/>
100 </para>
101 </sect2>
102
103 <sect2 role="installation">
104 <title>Installation of libblockdev</title>
105
[ce8e472]106 <para>
107 Fix the usage of a glib function deprecated for security:
108 </para>
109
110<screen><userinput>sed 's/g_memdup/&amp;2/' -i \
111 src/lib/plugin_apis/vdo.{c,api} \
112 src/plugins/vdo.c</userinput></screen>
113
[6dcb9e77]114 <para>
115 Install <application>libblockdev</application> by running
116 the following commands:
117 </para>
118
[60ddbaf]119<screen><userinput>./configure --prefix=/usr \
[ce794256]120 --sysconfdir=/etc \
[66d9ef8]121 --with-python3 \
122 --without-gtk-doc \
[16dc2c74]123 --without-nvdimm \
[ce794256]124 --without-dm &amp;&amp;
[6dcb9e77]125make</userinput></screen>
126
127 <para>
[453073a8]128 This package does not come with a working test suite.
[6dcb9e77]129 </para>
130
131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
134
135<screen role="root"><userinput>make install</userinput></screen>
136
137 </sect2>
138<!--
139 <sect2 role="commands">
140 <title>Command Explanations</title>
141
142
143 </sect2>
144-->
145 <sect2 role="content">
146 <title>Contents</title>
147
148 <segmentedlist>
149 <segtitle>Installed Programs</segtitle>
150 <segtitle>Installed Libraries</segtitle>
151 <segtitle>Installed Directories</segtitle>
152
153 <seglistitem>
154 <seg>
[4163b584]155 lvm-cache-stats
[6dcb9e77]156 </seg>
157 <seg>
158 libbd_btrfs.so,
159 libbd_crypto.so,
160 libbd_fs.so,
161 libbd_kbd.so,
162 libbd_loop.so,
163 libbd_lvm.so,
164 libbd_lvm-dbus.so,
165 libbd_mdraid.so,
166 libbd_mpath.so,
167 libbd_part.so,
168 libbd_part_err.so,
169 libbd_swap.so,
[4163b584]170 libbd_utils.so,
171 libbd_vdo.so, and
[6dcb9e77]172 libblockdev.so
173 </seg>
174 <seg>
[fa30d84]175 /etc/libblockdev,
176 /usr/include/blockdev, and
177 /usr/share/gtk-doc/html/libblockdev
[6dcb9e77]178 </seg>
179 </seglistitem>
180 </segmentedlist>
[4163b584]181
[6dcb9e77]182 <variablelist>
183 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
184 <?dbfo list-presentation="list"?>
185 <?dbhtml list-presentation="table"?>
186
[4163b584]187 <varlistentry id="lvm-cache-stats">
188 <term><command>lvm-cache-stats</command></term>
[6dcb9e77]189 <listitem>
190 <para>
[4c24eb0a]191 prints statistics on caches on LVM Logical Volumes
[6dcb9e77]192 </para>
[4163b584]193 <indexterm zone="libblockdev lvm-cache-stats">
194 <primary sortas="b-lvm-cache-stats">lvm-cache-stats</primary>
[6dcb9e77]195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 </variablelist>
[4163b584]200
[6dcb9e77]201 </sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.