source: general/genlib/libbytesize.xml@ 7b20b74

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 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 7b20b74 was 7b20b74, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Tags -- mostly General Libraries

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

  • Property mode set to 100644
File size: 5.4 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 libbytesize-download-http "https://github.com/storaged-project/libbytesize/releases/download/&libbytesize-version;/libbytesize-&libbytesize-version;.tar.gz">
8 <!ENTITY libbytesize-download-ftp " ">
9 <!ENTITY libbytesize-md5sum "aa9bd5a04546873714da2adbaaa9f283">
10 <!ENTITY libbytesize-size "404 KB">
11 <!ENTITY libbytesize-buildsize "4.6 MB">
12 <!ENTITY libbytesize-time "less than 0.1 SBU">
13]>
14
15<sect1 id="libbytesize" xreflabel="libbytesize-&libbytesize-version;">
16 <?dbhtml filename="libbytesize.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>libbytesize-&libbytesize-version;</title>
24
25 <indexterm zone="libbytesize">
26 <primary sortas="a-libbytesize">libbytesize</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to libbytesize</title>
31
32 <para>
33 The <application>libbytesize</application> package is a library
34 facilitates the common operations with sizes in bytes.
35 </para>
36
37 &lfs84_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&libbytesize-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&libbytesize-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &libbytesize-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &libbytesize-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &libbytesize-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &libbytesize-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">libbytesize Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
77 <xref linkend="pcre"/>
78 </para>
79
80 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional">
82 <xref linkend="gtk-doc"/>,
83 <xref linkend="python2"/>,
84 <xref linkend="six"/> (needed for tests and python bindings),
85 <ulink url="https://github.com/rhinstaller/pocketlint/releases">pocketlint</ulink> (python module for one test), and
86 <ulink url="https://pypi.python.org/pypi/polib">polib</ulink> (python module for one test)
87 </para>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/libbytesize"/>
91 </para>
92
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of libbytesize</title>
97
98 <para>
99 Install <application>libbytesize</application> by running the following
100 commands:
101 </para>
102
103<screen><userinput>./configure --prefix=/usr &amp;&amp;
104make</userinput></screen>
105
106 <para>
107 If you have the optional python modules installed, the regression
108 tests can be run with: <command>make check</command>. If only
109 <application>Python 3</application> is installed, one test has to be
110 fixed with <command>
111 sed -i 's/python/&amp;3/' tests/lbs_py_override_unittest.py</command>.
112 <phrase revision='sysv'>Another test needs to be fixed if systemd
113 is not installed, with:<command>
114 sed -i '/busctl/s/=.*$/=lfs/' tests/canary_tests.sh</command>.</phrase>
115 </para>
116
117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
120
121<screen role="root"><userinput>make install</userinput></screen>
122
123 </sect2>
124
125 <sect2 role="commands">
126 <title>Command Explanations</title>
127
128 <para>
129 <option>--without-python2</option>: If
130 <application>Python 2</application> is installed, use this switch to
131 prevent the use of <application>Python 2</application>. This may be
132 required to run the tests, if some of the needed python modules have been
133 installed for <application>Python 3</application> only.
134 </para>
135 </sect2>
136
137 <sect2 role="content">
138 <title>Contents</title>
139
140 <segmentedlist>
141 <segtitle>Installed Programs</segtitle>
142 <segtitle>Installed Library</segtitle>
143 <segtitle>Installed Directories</segtitle>
144
145 <seglistitem>
146 <seg>
147 None
148 </seg>
149 <seg>
150 libbytesize.so
151 </seg>
152 <seg>
153 /usr/include/bytesize,
154 /usr/share/gtk-doc/html/libbytesize, and
155 /usr/lib/python{2.7,3.6}/site-packages/bytesize
156 </seg>
157 </seglistitem>
158 </segmentedlist>
159<!--
160 <variablelist>
161 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
162 <?dbfo list-presentation="list"?>
163 <?dbhtml list-presentation="table"?>
164
165 <varlistentry id="libbytesize-lib">
166 <term><filename class='libraryfile'>libbytesize.so</filename></term>
167 <listitem>
168 <para>
169 contains the ATA S.M.A.R.T API functions.
170 </para>
171 <indexterm zone="libbytesize libbytesize-lib">
172 <primary sortas="c-libbytesize">libbytesize.so</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 </variablelist>
178-->
179 </sect2>
180
181</sect1>
Note: See TracBrowser for help on using the repository browser.