source: networking/netlibs/curl.xml@ f761a21

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 f761a21 was f761a21, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Drop unneeded cURL patch

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