2017-06-22 05:49:37 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2018-04-22 00:08:40 +08:00
|
|
|
<!ENTITY libbytesize-download-http "https://github.com/storaged-project/libbytesize/releases/download/&libbytesize-version;/libbytesize-&libbytesize-version;.tar.gz">
|
2017-06-22 05:49:37 +08:00
|
|
|
<!ENTITY libbytesize-download-ftp " ">
|
2021-02-01 10:29:44 +08:00
|
|
|
<!ENTITY libbytesize-md5sum "ab94377166b97d662a2434cf79380fd0">
|
|
|
|
<!ENTITY libbytesize-size "432 KB">
|
|
|
|
<!ENTITY libbytesize-buildsize "4.1 MB">
|
2020-02-02 00:55:16 +08:00
|
|
|
<!ENTITY libbytesize-time "less than 0.1 SBU (including tests)">
|
2017-06-22 05:49:37 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="libbytesize" xreflabel="libbytesize-&libbytesize-version;">
|
|
|
|
<?dbhtml filename="libbytesize.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>libbytesize-&libbytesize-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="libbytesize">
|
|
|
|
<primary sortas="a-libbytesize">libbytesize</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to libbytesize</title>
|
|
|
|
|
|
|
|
<para>
|
2020-05-17 10:44:00 +08:00
|
|
|
The <application>libbytesize</application> package is a library which
|
2017-06-22 05:49:37 +08:00
|
|
|
facilitates the common operations with sizes in bytes.
|
|
|
|
</para>
|
|
|
|
|
2021-02-20 14:13:48 +08:00
|
|
|
&lfs101_checked;
|
2017-06-22 05:49:37 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&libbytesize-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&libbytesize-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &libbytesize-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &libbytesize-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &libbytesize-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &libbytesize-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">libbytesize Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2021-02-10 16:01:19 +08:00
|
|
|
<xref linkend="pcre2"/>
|
2017-06-22 05:49:37 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="gtk-doc"/>,
|
2019-01-23 21:08:32 +08:00
|
|
|
<xref linkend="six"/> (needed for tests and python bindings),
|
2017-09-18 04:57:59 +08:00
|
|
|
<ulink url="https://github.com/rhinstaller/pocketlint/releases">pocketlint</ulink> (python module for one test), and
|
|
|
|
<ulink url="https://pypi.python.org/pypi/polib">polib</ulink> (python module for one test)
|
2017-06-22 05:49:37 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/libbytesize"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of libbytesize</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>libbytesize</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2017-10-02 09:25:36 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
2017-06-22 05:49:37 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2017-09-18 04:57:59 +08:00
|
|
|
If you have the optional python modules installed, the regression
|
2019-05-01 03:04:02 +08:00
|
|
|
tests can be run with: <command>make check</command>.
|
2017-06-22 05:49:37 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2019-05-01 03:04:02 +08:00
|
|
|
<!--
|
2017-11-04 05:43:40 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
2019-05-01 03:04:02 +08:00
|
|
|
<option>-i -without-python2</option>: If
|
2019-01-23 21:08:32 +08:00
|
|
|
<application>Python 2</application> is installed, use this switch to
|
|
|
|
prevent the use of <application>Python 2</application>. This may be
|
|
|
|
required to run the tests, if some of the needed python modules have been
|
|
|
|
installed for <application>Python 3</application> only.
|
2017-11-04 05:43:40 +08:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2019-05-01 03:04:02 +08:00
|
|
|
-->
|
2017-06-22 05:49:37 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2019-07-06 07:34:32 +08:00
|
|
|
bscalc
|
2017-06-22 05:49:37 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libbytesize.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2017-10-02 09:25:36 +08:00
|
|
|
/usr/include/bytesize,
|
|
|
|
/usr/share/gtk-doc/html/libbytesize, and
|
2020-03-16 10:04:26 +08:00
|
|
|
/usr/lib/python&python3-majorver;/site-packages/bytesize
|
2017-06-22 05:49:37 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2020-05-17 10:44:00 +08:00
|
|
|
|
2017-06-22 05:49:37 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2020-05-17 10:44:00 +08:00
|
|
|
<varlistentry id="bscalc">
|
|
|
|
<term><command>bscalc</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
converts from a larger unit, such as MB or TB,
|
2021-02-19 23:20:16 +08:00
|
|
|
back to a value in bytes
|
2020-05-17 10:44:00 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libbytesize bscalc">
|
|
|
|
<primary sortas="b-bscalc">bscalc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2017-06-22 05:49:37 +08:00
|
|
|
<varlistentry id="libbytesize-lib">
|
2021-02-19 23:20:16 +08:00
|
|
|
<term><filename class="libraryfile">libbytesize.so</filename></term>
|
2017-06-22 05:49:37 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2020-05-17 10:44:00 +08:00
|
|
|
contains functions used to handle common read/write operations
|
2021-02-19 23:20:16 +08:00
|
|
|
with sizes in bytes
|
2017-06-22 05:49:37 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libbytesize libbytesize-lib">
|
|
|
|
<primary sortas="c-libbytesize">libbytesize.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
2020-05-17 10:44:00 +08:00
|
|
|
|
2017-06-22 05:49:37 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|