source: networking/netlibs/serf.xml@ 17fe56e1

11.3 12.0 12.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 xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 17fe56e1 was 48771ae, checked in by David Bryant <davidbryant@…>, 19 months ago

Unless it's a directory name, or something like that, "test suite"
should be spelled as two words.

  • Property mode set to 100644
File size: 6.0 KB
RevLine 
[299d5c54]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
[d5cddad]7 <!ENTITY serf-download-http "https://archive.apache.org/dist/serf/serf-&serf-version;.tar.bz2">
[299d5c54]8 <!ENTITY serf-download-ftp " ">
[ba8f1a8]9 <!ENTITY serf-md5sum "370a6340ff20366ab088012cd13f2b57">
10 <!ENTITY serf-size "144 KB">
[30f98dc]11 <!ENTITY serf-buildsize "3.2 MB">
12 <!ENTITY serf-time "less than 0.1 SBU">
[299d5c54]13]>
14
15<sect1 id="serf" xreflabel="Serf-&serf-version;">
16 <?dbhtml filename="serf.html"?>
17
18
19 <title>Serf-&serf-version;</title>
20
21 <indexterm zone="serf">
22 <primary sortas="a-Serf">Serf</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Serf</title>
27
28 <para>
29 The <application>Serf</application> package contains a C-based HTTP client
30 library built upon the Apache Portable Runtime (APR) library. It
31 multiplexes connections, running the read/write communication asynchronously.
32 Memory copies and transformations are kept to a minimum to provide high
33 performance operation.
34 </para>
35
[8b225938]36 &lfs112_checked;
[299d5c54]37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&serf-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&serf-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &serf-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &serf-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &serf-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &serf-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
[3d50d36]72 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
73 <itemizedlist spacing="compact">
74 <listitem>
75 <para>
76 Required patch:
77 <ulink url="&patch-root;/serf-&serf-version;-openssl3_fixes-1.patch"/>
78 </para>
79 </listitem>
80 </itemizedlist>
81
[299d5c54]82 <bridgehead renderas="sect3">Serf Dependencies</bridgehead>
83
84 <bridgehead renderas="sect4">Required</bridgehead>
85 <para role="required">
[94b42903]86 <xref linkend="apr-util"/> and
[1b35ce63]87 <xref linkend="scons"/>
[299d5c54]88 </para>
89
[d0b65e4]90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="mitkrb"/>, for the GSSAPI
93 </para>
94
[299d5c54]95 <para condition="html" role="usernotes">
96 User Notes: <ulink url="&blfs-wiki;/serf"/>
97 </para>
98 </sect2>
99
100 <sect2 role="installation">
101 <title>Installation of Serf</title>
102
[3d50d36]103 <para>
104 First, fix an issue that causes compilation issues in other packages
105 when using OpenSSL-3:
106 </para>
107
108<screen><userinput remap="pre">patch -Np1 -i ../serf-&serf-version;-openssl3_fixes-1.patch</userinput></screen>
109
[299d5c54]110 <para>
111 Install <application>Serf</application> by running the following
112 commands:
113 </para>
114
[fabeff7]115<screen><userinput>sed -i "/Append/s:RPATH=libdir,::" SConstruct &amp;&amp;
116sed -i "/Default/s:lib_static,::" SConstruct &amp;&amp;
117sed -i "/Alias/s:install_static,::" SConstruct &amp;&amp;
118sed -i "/ print/{s/print/print(/; s/$/)/}" SConstruct &amp;&amp;
[440647ab]119sed -i "/get_contents()/s/,/.decode()&amp;/" SConstruct &amp;&amp;
[fabeff7]120
[46491e5]121scons PREFIX=/usr</userinput></screen>
[299d5c54]122
[ba8f1a8]123<!-- I did not find this to be needed as of 1.3.9 -renodr
[299d5c54]124 <para>
[7f08245]125 If you wish to run the test suite, fix one file:
126 </para>
127
128<screen><userinput>sed -i test/test_buckets.c \
129 -e 's://\( buf_size = orig_len + (orig_len / 1000) + 12;\):/\*\1\ */:'</userinput></screen>
[ba8f1a8]130-->
[7f08245]131
[440647ab]132<!-- With Python 3, check.py is broken. It could be fixed, but since the
[48771ae]133 test suite hangs anyway...
[7f08245]134 <para>
[45f8102]135 To test the results, issue: <command>scons check</command>.
136 The tests currently will cause a hang.
[440647ab]137 </para>
138-->
139
140 <para>
[48771ae]141 This package does not come with a functional test suite.
[299d5c54]142 </para>
143
144 <para>
145 Now, as the <systemitem class="username">root</systemitem> user:
146 </para>
147
[b26bc4c]148<screen role="root"><userinput>scons PREFIX=/usr install</userinput></screen>
[1b35ce63]149
[299d5c54]150 </sect2>
151
152 <sect2 role="commands">
153 <title>Command Explanations</title>
154
[1b35ce63]155 <para>
[5bff14ac]156 <command>sed -i "..."</command>: The first command removes the runtime
[9c93f095]157 path from a shared library and the next two commands disable building and
[8558044]158 installing of the static library. The fourth command corrects for
[440647ab]159 changes in scons-3.x. The last command allows to use <application>
160 Python 3</application>.
[f3429309]161 </para>
[299d5c54]162
[d0b65e4]163 <para>
164 <option>GSSAPI=/usr</option>: Use this switch if you have installed a
165 GSSAPI library and you want <application>serf</application> to use it.
166 </para>
167
[299d5c54]168 </sect2>
169
170 <sect2 role="content">
171 <title>Contents</title>
172
173 <segmentedlist>
174 <segtitle>Installed Programs</segtitle>
175 <segtitle>Installed Library</segtitle>
176 <segtitle>Installed Directory</segtitle>
177
178 <seglistitem>
179 <seg>
180 None
181 </seg>
182 <seg>
183 libserf-1.so
184 </seg>
185 <seg>
186 /usr/include/serf-1
187 </seg>
188 </seglistitem>
189 </segmentedlist>
190
191 <variablelist>
192 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
193 <?dbfo list-presentation="list"?>
194 <?dbhtml list-presentation="table"?>
195
196 <varlistentry id="libserf-1">
197 <term><filename class="libraryfile">libserf-1.so</filename></term>
198 <listitem>
199 <para>
[4c24eb0a]200 contains the <application>Serf</application> API functions
[299d5c54]201 </para>
202 <indexterm zone="serf libserf-1">
203 <primary sortas="c-libserf-1">libserf-1.so</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 </variablelist>
209
210 </sect2>
211
212</sect1>
Note: See TracBrowser for help on using the repository browser.