[6eb166fa] | 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 |
|
---|
[c92ba3b] | 7 | <!ENTITY libuv-download-http "https://dist.libuv.org/dist/v&libuv-version;/libuv-v&libuv-version;.tar.gz">
|
---|
[6eb166fa] | 8 | <!ENTITY libuv-download-ftp " ">
|
---|
[0b64dc8] | 9 | <!ENTITY libuv-md5sum "fa56dafe664d21f9568adebc428d2d64">
|
---|
[b905a81] | 10 | <!ENTITY libuv-size "1.2 MB">
|
---|
[0ce4fca] | 11 | <!ENTITY libuv-buildsize "14 MB (add 14 MB for tests)">
|
---|
| 12 | <!ENTITY libuv-time "less than 0.1 SBU (add 0.5 SBU for tests)">
|
---|
[6eb166fa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libuv" xreflabel="libuv-&libuv-version;">
|
---|
| 16 | <?dbhtml filename="libuv.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libuv-&libuv-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libuv">
|
---|
| 22 | <primary sortas="a-libuv">libuv</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libuv</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
[8558044] | 29 | The <application>libuv</application> package is a
|
---|
[ac4d403] | 30 | multi-platform support library with a focus on asynchronous I/O.
|
---|
[6eb166fa] | 31 | </para>
|
---|
| 32 |
|
---|
[ed345e7] | 33 | &lfs120_checked;
|
---|
[6eb166fa] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&libuv-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libuv-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &libuv-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &libuv-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &libuv-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &libuv-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 | <!--
|
---|
| 69 | <bridgehead renderas="sect3">libuv Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
[8558044] | 73 | <xref linkend="???"/>
|
---|
[6eb166fa] | 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
| 78 | <xref linkend="???"/>
|
---|
| 79 | </para>
|
---|
| 80 | -->
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of libuv</title>
|
---|
| 85 |
|
---|
| 86 | <para>
|
---|
| 87 | Install <application>libuv</application> by running the following
|
---|
| 88 | commands:
|
---|
| 89 | </para>
|
---|
[e05831c9] | 90 |
|
---|
| 91 | <caution>
|
---|
| 92 | <para>
|
---|
| 93 | The <command>sh autogen.sh</command> command below fails if the ACLOCAL
|
---|
| 94 | environment variable is set as specified in <xref linkend="xorg7"/>.
|
---|
| 95 | If it is used, ACLOCAL needs to be unset for this package and then
|
---|
| 96 | reset for other packages.
|
---|
| 97 | </para>
|
---|
| 98 | </caution>
|
---|
| 99 |
|
---|
[a1b1e9d4] | 100 | <!--
|
---|
| 101 | Don't use cmake here to avoid circular dependency
|
---|
[6eb166fa] | 102 |
|
---|
[fe80e96] | 103 | <screen><userinput>sed -i "/TARGETS uv_a ARCHIVE/d" CMakeLists.txt &&
|
---|
| 104 |
|
---|
| 105 | mkdir build &&
|
---|
| 106 | cd build &&
|
---|
| 107 |
|
---|
| 108 | cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
|
---|
[a1b1e9d4] | 109 | make </userinput></screen>
|
---|
| 110 | -->
|
---|
| 111 |
|
---|
| 112 | <screen><userinput>sh autogen.sh &&
|
---|
| 113 | ./configure --prefix=/usr --disable-static &&
|
---|
[fe80e96] | 114 | make </userinput></screen>
|
---|
[e3885b4] | 115 | <!--
|
---|
[6eb166fa] | 116 | <para>
|
---|
[fe80e96] | 117 | If you want to run the tests, add -DBUILD_TESTING=true to
|
---|
[8558044] | 118 | the cmake line above and after building run:
|
---|
[fe80e96] | 119 | <command>make test</command>.
|
---|
[6eb166fa] | 120 | </para>
|
---|
[e3885b4] | 121 | -->
|
---|
| 122 | <para>
|
---|
[9c7363e] | 123 | If you want to run the tests, run: <command>make check</command> as
|
---|
| 124 | a non-root user. <!-- the test suite refuses to run as root -->
|
---|
[e3885b4] | 125 | </para>
|
---|
[6eb166fa] | 126 | <para>
|
---|
| 127 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
[a1b1e9d4] | 134 | <!--
|
---|
[6eb166fa] | 135 | <sect2 role="commands">
|
---|
| 136 | <title>Command Explanations</title>
|
---|
| 137 |
|
---|
[fe80e96] | 138 | <para>
|
---|
| 139 | <command>sed ...</command>: This command disables installation
|
---|
| 140 | of the static library.
|
---|
| 141 | </para>
|
---|
[8558044] | 142 |
|
---|
[6eb166fa] | 143 | </sect2>
|
---|
[a1b1e9d4] | 144 | -->
|
---|
[6eb166fa] | 145 | <sect2 role="content">
|
---|
| 146 | <title>Contents</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed Programs</segtitle>
|
---|
| 150 | <segtitle>Installed Library</segtitle>
|
---|
[5a66d6ac] | 151 | <segtitle>Installed Directory</segtitle>
|
---|
[6eb166fa] | 152 |
|
---|
| 153 | <seglistitem>
|
---|
| 154 | <seg>
|
---|
| 155 | None
|
---|
| 156 | </seg>
|
---|
| 157 | <seg>
|
---|
| 158 | libuv.so
|
---|
| 159 | </seg>
|
---|
| 160 | <seg>
|
---|
[5a66d6ac] | 161 | /usr/include/uv
|
---|
[6eb166fa] | 162 | </seg>
|
---|
| 163 | </seglistitem>
|
---|
| 164 | </segmentedlist>
|
---|
[5a66d6ac] | 165 |
|
---|
[6eb166fa] | 166 | <variablelist>
|
---|
| 167 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 168 | <?dbfo list-presentation="list"?>
|
---|
| 169 | <?dbhtml list-presentation="table"?>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="libuv.so">
|
---|
| 172 | <term><filename class="libraryfile">libuv.so</filename></term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <para>
|
---|
[5a66d6ac] | 175 | contains API functions for asynchronous I/O operations
|
---|
[6eb166fa] | 176 | </para>
|
---|
| 177 | <indexterm zone="libuv libuv.so">
|
---|
| 178 | <primary sortas="c-libuv.so">libuv.so</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | </variablelist>
|
---|
[5a66d6ac] | 184 |
|
---|
[6eb166fa] | 185 | </sect2>
|
---|
| 186 |
|
---|
| 187 | </sect1>
|
---|