source: networking/netlibs/curl.xml@ d47699d

11.0 11.1 11.2 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d47699d was 42d1ab6, checked in by Tim Tassonis <stuff@…>, 3 years ago

Upgrade to curl-7.77.0.

  • Property mode set to 100644
File size: 16.5 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 curl-download-http "https://curl.se/download/curl-&curl-version;.tar.xz">
8 <!ENTITY curl-download-ftp " ">
9 <!ENTITY curl-md5sum "d7df02d3b78b625fee4dd765808a6eb6">
10 <!ENTITY curl-size "2.4 MB">
11 <!ENTITY curl-buildsize "103 MB (add 17 MB for tests)">
12 <!ENTITY curl-time "0.3 SBU (add 14 SBU for tests)">
13]>
14
15<sect1 id="curl" xreflabel="cURL-&curl-version;">
16 <?dbhtml filename="curl.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>cURL-&curl-version;</title>
23
24 <indexterm zone="curl">
25 <primary sortas="a-cURL">cURL</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to cURL</title>
30
31 <para>
32 The <application>cURL</application> package contains an utility
33 and a library used for transferring files with URL syntax to any of
34 the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
35 TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
36 and upload files can be incorporated into other programs to support
37 functions like streaming media.
38 </para>
39
40 &lfs101_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&curl-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&curl-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &curl-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &curl-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &curl-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &curl-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch:
81 <ulink url="&patch-root;/curl-&curl-version;-function_naming-1.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
85
86 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
87
88 <bridgehead renderas="sect4">Recommended</bridgehead>
89 <para role="recommended">
90 <xref role="runtime" linkend="make-ca"/> (runtime)
91 </para>
92
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional">
95 <xref linkend="brotli"/>,
96 <xref linkend="c-ares"/>,
97 <xref linkend="gnutls"/>,
98 <xref linkend="libidn2"/>,
99 <xref linkend="libpsl"/>,
100 <xref linkend="libssh2"/>,
101 <xref linkend="mitkrb"/>,
102 <xref linkend="nghttp2"/>,
103 <xref linkend="openldap"/>,
104 <xref linkend="samba"/>,
105 <ulink url="https://www.secureauth.com/labs/open-source-tools/impacket/">impacket</ulink>,
106 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
107 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
108 <ulink url="https://github.com/ngtcp2/ngtcp2/">ngtcp2</ulink>,
109 <!--<ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
110 PolarSSL), and -->
111 <!-- mbedTLS/PolarSSL support was removed in 7.65.1 -->
112 <ulink url="https://github.com/cloudflare/quiche">quiche</ulink>, and
113 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
114 </para>
115
116 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
117 <para role="optional">
118 <!-- stunnel is still listed in the docs as required, but 7.58.0
119 tests completed happily without it, although the test for unit1323
120 reported that the tool set in the test case does not exist - ken -->
121 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
122 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
123 </para>
124
125 <para condition="html" role="usernotes">User Notes:
126 <ulink url="&blfs-wiki;/curl"/>
127 </para>
128 </sect2>
129
130 <sect2 role="installation">
131 <title>Installation of cURL</title>
132
133 <para>
134 First, adapt the tests to python3:
135 </para>
136
137<screen><userinput remap="pre">grep -rl '#!.*python$' | xargs sed -i '1s/python/&amp;3/'</userinput></screen>
138
139 <para>
140 Install <application>cURL</application> by running the following
141 commands:
142 </para>
143
144<screen><userinput>./configure --prefix=/usr \
145 --disable-static \
146 --with-openssl \
147 --enable-threaded-resolver \
148 --with-ca-path=/etc/ssl/certs &amp;&amp;
149make</userinput></screen>
150
151<!--
152 For version 7.54.1 I got:
153 TESTDONE: 869 tests out of 869 reported OK: 100%
154 TESTDONE: 1092 tests were considered during 1080 seconds
155
156 <para>
157 Running the test suite is optional. About 2% of the tests fail. Increase
158 in test time by each failed test is about 10%. Tests SBU above was
159 obtained disabling failing tests, with:
160 </para>
161
162 2017-10-29 - bdubbs
163 For version 7.56.1 I had a lot of test failures which included long
164 timeouts. Could not determine the cause of the timeouts or failures,
165 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
166 external packages.
167
168 2017-12-01 - bdubbs
169 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
170 installed this time. Best guess is that servers are not available.
171
172 2018-08-01 - renodr
173 No test failures, but I didn't have any of the optional dependencies except
174 for c-ares and libidn2. I might re-run this test suite before release with
175 all of the optional deps, but right now, it isn't a priority - rather
176 the security fix is.
177-->
178
179 <para>
180 To run the test suite, issue: <command>make test</command>.
181 <!-- Three tests, 1700, 1701, and 1702, are known to fail due to
182 missing executables from the nghttp2 package.-->
183 </para>
184<!-- Two (of 857) tests
185fail for unknown reasons, and all tests fail is valgrind is installed. Moving
186valgrind out of $PATH is recommended if you wish to run the test suite while
187it is installed.
188
189Added by Pierre for curl-7.59.0:
190no stunnel, no valgrind, no options
191Warning: smb server unexpectedly alive
192Warning: dict server unexpectedly alive
193TESTDONE: 950 tests out of 951 reported OK: 99%
194TESTFAIL: These test cases failed: 1148
195TESTDONE: 1189 tests were considered during 362 seconds.
196__________
197
198 if stunnel and valgrind are not installed, and also most options
199 (I had rtmpdump), the tests complete without problems.
200Warning: smb server unexpectedly alive
201Warning: dict server unexpectedly alive
202TESTDONE: 938 tests out of 938 reported OK: 100%
203TESTDONE: 1175 tests were considered during 355 seconds.
204 and no. I don't have smb - so commenting the rest of this:
205 To run the test suite, issue: <command>make test</command>. Many tests
206 may fail that depend on optional dependencies that may not be installed
207 or upstream servers that may not be available, especially for tests
208 numbered 700 and above.
209 Test time may be significantly increase due to hanging tests that fail.
210__________
211Added by Bruce for curl-7.60.0:
212TESTDONE: 957 tests out of 959 reported OK: 99%
213TESTFAIL: These test cases failed: 1139 1140
214TESTDONE: 1196 tests were considered during 1184 seconds.
215From the logs, both appear to be ipv6 releated.
216
217==========
218Added by Douglas for curl-7.61.0:
219TESTDONE: 961 tests out of 961 reported OK: 100%
220TESTDONE: 1202 tests were considered during 338 seconds.
221I only have c-ares and libidn2 installed, I will likely try before release
222with all optional dependencies in the book installed.
223
224=========
2257.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
226It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
227c-ares, libpsl, and libidn1/2 installed. - Doug
228
229========
2307.62.0: All tests passed. libpsl, c-ares, libssh2, libidn2 installed.
231All 1098 tests report OK.
232
233=======
234Added by Douglas for curl-7.64.0:
235TESTDONE: 1022 tests out of 1023 reported OK: 99%
236TESTFAIL: These tests cases failed: 323
237TESTDONE: 1235 tests were considered during 1279 seconds.
238For dependencies, I had c-ares, gnutls, libidn2, libpsl, krb5, libssh2, nghttp2,
239OpenLDAP, Samba, stunnel, and Valgrind installed.
240=======
241Added by bdubbs for curl-7.64.1:
242TESTDONE: 1022 tests out of 1025 reported OK: 99%
243TESTFAIL: These test cases failed: 323 1139 1140
244TESTDONE: 1242 tests were considered during 1483 seconds
245
246=======
247Added by renodr for curl-7.65.1:
248TESTDONE: 996 tests out of 997 reported OK: 99%
249TESTFAIL: These test cases failed: 1560
250TESTDONE: 1249 tests were considered during 1091 seconds.
251All dependencies except for externals installed.
252=======
253Added by bdubbs for curl-7.65.2:
254TESTDONE: 1034 tests out of 1036 reported OK: 99%
255TESTFAIL: These test cases failed: 323 1560
256TESTDONE: 1254 tests were considered during 1362 seconds.
257Time above does not include test build time.
258All dependencies except for externals installed.
259=======
260Added by bdubbs for curl-7.65.3:
261TESTDONE: 1031 tests out of 1036 reported OK: 99%
262TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
263TESTDONE: 1254 tests were considered during 1364 seconds.
264
265The tests that fail seem to be somewhat random. What happened between
266yesterday and today that that tests 1139 1140 1173 now fail?
267
268=======
269Added by bdubbs for curl-7.68.0:
270TESTDONE: 1066 tests out of 1071 reported OK: 99%
271TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
272TESTDONE: 1290 tests were considered during 1515 seconds.
273
274=======
275Added by bdubbs for curl-7.69.0:
276TESTDONE: 074 tests out of 1079 reported OK: 99%
277TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
278TESTDONE: 1320 tests were considered during 1514 seconds.
279
280For curl-7.69.1, 1082 tests out of 1086 reported OK. 1560 now passes.
2811330 tests were considered during 1528 seconds.
282
283======
284Added by renodr for curl-7.70.0:
285TESTDONE: 1062 tests out of 1062 reported OK: 100%
286TESTDONE: 1352 tests were considered during 1218 seconds.
287Tests were ran with all dependencies present except for stunnel.
288impacket only seems to add one extra test to the mix as well.
289
290======
291Added by renodr for curl-7.71.0:
292TESTDONE: 1072 tests out of 1072 reported OK: 100%
293TESTDONE: 1364 tests were considered during 1202 seconds.
294Tests were run similarly to 7.70.0 - all deps except for stunnel.
295
296======
297Added by renodr for curl-7.71.1:
298TESTDONE: 1076 tests out of 1076 reported OK: 100%
299TESTDONE: 1368 tests were considered during 1207 seconds.
300Tests were run similarly to 7.71.0, including impacket, but no stunnel.
301
302======
303Added by renodr for curl-7.72.0:
304TESTDONE: 1094 tests out of 1097 reported OK: 99%
305TESTFAIL: These test cases failed: 1700 1701 1702
306TESTDONE: 1374 tests were considered during 1285 seconds.
307Tests have all BLFS dependencies with the exception of stunnel;
308and the optional impacket python module was installed.
309Tests seem to be failing due to a missing 'nghttpx' executable
310used to start a test server.
311
312======
313Added by renodr for curl-7.73.0:
314TESTDONE: 1121 tests out of 1121 reported OK: 100%
315TESTDONE: 1387 tests were considered during 1303 seconds.
316Tests have all BLFS dependencies installed with the exception of stunnel,
317as well as the optional impacket installed.
318
319======
320Added by renodr for curl-7.74.0:
321TESTDONE: 1119 tests out of 1119 reported OK: 100%
322TESTDONE: 1388 tests were considered during 1370 seconds.
323Tests have all BLFS dependencies installed, as well as impacket.
324stunnel not installed.
325-->
326
327 <para>
328 Now, as the <systemitem class="username">root</systemitem>
329 user:
330 </para>
331
332<screen role="root"><userinput>make install &amp;&amp;
333
334rm -rf docs/examples/.deps &amp;&amp;
335
336find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
337
338install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
339cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
340
341 <para>
342 Simple tests to the new installed <command>curl</command>:
343 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
344 and
345 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
346 Inspect the locally created trace files <filename>debugdump.txt</filename>
347 and <filename>d.txt</filename>, which contain version downloaded
348 files information, etc. One file has the time for each action logged.
349 </para>
350 </sect2>
351
352 <sect2 role="commands">
353 <title>Command Explanations</title>
354
355 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
356 href="../../xincludes/static-libraries.xml"/>
357
358 <para>
359 <parameter>--enable-threaded-resolver</parameter>: This switch enables
360 <application>cURL</application>'s builtin threaded DNS resolver.
361 </para>
362
363 <para>
364 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
365 switch sets the location of the BLFS Certificate Authority store.
366 </para>
367
368 <para>
369 <option>--with-openssl</option>: This parameter chooses
370 <application>OpenSSL</application> as SSL/TLS implemtation.
371 This seems mandadory now.
372 </para>
373
374 <para>
375 <option>--with-gssapi</option>: This parameter adds
376 <application>Kerberos 5</application> support to
377 <filename class="libraryfile">libcurl</filename>.
378 </para>
379
380 <para>
381 <option>--without-ssl --with-gnutls</option>: Use to
382 build with <application>GnuTLS</application> support
383 instead of <application>OpenSSL</application> for SSL/TLS.
384 </para>
385
386 <para>
387 <option>--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</option>: Use
388 this switch instead of <parameter>--with-ca-path</parameter> if
389 building with <application>GnuTLS</application> support
390 instead of <application>OpenSSL</application> for SSL/TLS.
391 </para>
392
393 <para>
394 <option>--with-libssh2</option>: This paramater adds
395 <application>SSH</application> support to cURL. This is disabled
396 by default.
397 </para>
398
399 <para>
400 <option>--enable-ares</option>: This paramater adds
401 support for DNS resolution through the c-ares library. It is disabled
402 by default, but does speed up DNS resolution queries.
403 </para>
404
405 <para>
406 <command>find docs ... -exec rm {} \;</command>: This command removes
407 <filename>Makefiles</filename> and man files from the documentation
408 directory that would otherwise be installed by the commands that follow.
409 </para>
410
411 </sect2>
412
413 <sect2 role="content">
414 <title>Contents</title>
415
416 <segmentedlist>
417 <segtitle>Installed Programs</segtitle>
418 <segtitle>Installed Library</segtitle>
419 <segtitle>Installed Directories</segtitle>
420
421 <seglistitem>
422 <seg>
423 curl and curl-config
424 </seg>
425 <seg>
426 libcurl.so
427 </seg>
428 <seg>
429 /usr/include/curl and
430 /usr/share/doc/curl-&curl-version;
431 </seg>
432 </seglistitem>
433 </segmentedlist>
434
435 <variablelist>
436 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
437 <?dbfo list-presentation="list"?>
438 <?dbhtml list-presentation="table"?>
439
440 <varlistentry id="curl-prog">
441 <term><command>curl</command></term>
442 <listitem>
443 <para>
444 is a command line tool for transferring files with URL syntax
445 </para>
446 <indexterm zone="curl curl-prog">
447 <primary sortas="b-curl">curl</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
452 <varlistentry id="curl-config">
453 <term><command>curl-config</command></term>
454 <listitem>
455 <para>
456 prints information about the last compile, like libraries
457 linked to and prefix setting
458 </para>
459 <indexterm zone="curl curl-config">
460 <primary sortas="b-curl-config">curl-config</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="libcurl">
466 <term><filename class="libraryfile">libcurl.so</filename></term>
467 <listitem>
468 <para>
469 provides the API functions required by
470 <command>curl</command> and other programs
471 </para>
472 <indexterm zone="curl libcurl">
473 <primary sortas="c-libcurl">libcurl.so</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
478 </variablelist>
479
480 </sect2>
481
482</sect1>
Note: See TracBrowser for help on using the repository browser.