source: networking/textweb/lynx.xml@ a96719e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 a96719e was a96719e, checked in by Pierre Labastie <pieere@…>, 7 years ago

Patch Lynx to build with openssl-1.1

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18879 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.8 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 lynx-download-http "http://lynx.isc.org/lynx&lynx-version;/lynx&lynx-version;.tar.bz2">
8 <!ENTITY lynx-download-ftp " ">-->
9 <!ENTITY lynx-download-http "http://invisible-mirror.net/archives/lynx/tarballs/lynx&lynx-version;.tar.bz2">
10 <!ENTITY lynx-download-ftp " ">
11 <!ENTITY lynx-md5sum "b231c2aa34dfe7ca25681ef4e55ee7e8">
12 <!ENTITY lynx-size "2.5 MB">
13 <!ENTITY lynx-buildsize "31 MB">
14 <!ENTITY lynx-time "0.3 SBU">
15]>
16
17<sect1 id="lynx" xreflabel="Lynx-&lynx-version;">
18 <?dbhtml filename="lynx.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>Lynx-&lynx-version;</title>
26
27 <indexterm zone="lynx">
28 <primary sortas="a-Lynx">Lynx</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to Lynx</title>
33
34 <para><application>Lynx</application> is a text based web browser.</para>
35
36 &lfs80_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&lynx-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&lynx-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &lynx-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &lynx-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &lynx-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &lynx-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing="compact">
62 <listitem>
63 <para>
64 Optional patch to build with openssl-1.1:
65 <ulink url="&patch-root;/lynx-&lynx-version;-openssl_1.1.0-1.patch"/>
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Lynx Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Optional</bridgehead>
73 <para role="optional">
74 <xref linkend="openssl"/> or
75 <xref linkend="gnutls"/> (experimental),
76 <xref linkend="zip"/>,
77 <xref linkend="unzip"/>,
78 an <xref linkend="server-mail"/> (that provides a <command>sendmail</command> command), and
79 <xref linkend='sharutils'/> (for a <command>uudecode</command> program)
80 </para>
81
82<!-- Attempt to utilize S-Lang (- -with-screen=slang) leads to a build failure -->
83
84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/Lynx"/></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Lynx</title>
91 <para>
92 If you want to build <application>Lynx</application> with openssl-1.1,
93 issue:
94 </para>
95
96<screen><userinput>patch -p1 -i lynx-&lynx-version;-openssl_1.1.0-1.patch</userinput></screen>
97
98 <para>Install <application>Lynx</application> by running the following
99 commands:</para>
100
101<screen><userinput>./configure --prefix=/usr \
102 --sysconfdir=/etc/lynx \
103 --datadir=/usr/share/doc/lynx-&lynx-version; \
104 --with-zlib \
105 --with-bzlib \
106 --with-screen=ncursesw \
107 --enable-locale-charset &amp;&amp;
108make</userinput></screen>
109
110 <para>This package does not come with a test suite.</para>
111
112 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
113
114<screen role='root'><userinput>make install-full &amp;&amp;
115chgrp -v -R root /usr/share/doc/lynx-&lynx-version;/lynx_doc</userinput></screen>
116
117 </sect2>
118
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <para><parameter>--sysconfdir=/etc/lynx</parameter>: This parameter is
123 used so that the configuration files are located in
124 <filename class="directory">/etc/lynx</filename> instead of
125 <filename class="directory">/usr/etc</filename>.</para>
126
127 <para><parameter>--datadir=/usr/share/doc/lynx-&lynx-version;</parameter>:
128 This parameter is used so that the documentation files are installed into
129 <filename class="directory">/usr/share/doc/lynx-&lynx-version;</filename>
130 instead of
131 <filename class="directory">/usr/share/lynx_{doc,help}</filename>.</para>
132
133 <para><parameter>--with-zlib</parameter>: This enables support for
134 linking <filename class="libraryfile">libz</filename> into
135 <application>Lynx</application>.</para>
136
137 <para><parameter>--with-bzlib</parameter>: This enables support for
138 linking <filename class="libraryfile">libbz2</filename> into
139 <application>Lynx</application>.</para>
140
141 <para><parameter>--with-screen=ncursesw</parameter>: This switch enables
142 the use of advanced wide-character support present in the system
143 <application>NCurses</application> library. This is needed for
144 proper display of characters and line wrapping in multibyte locales.</para>
145
146 <para><parameter>--enable-locale-charset</parameter>: This switch allows
147 <application>Lynx</application> to deduce the proper character encoding
148 for terminal output from the current locale.
149 A configuration step is still needed (see below), but
150 unlike the situation without this switch, the configuration step becomes
151 the same for all users (without the switch one must specify the
152 display character set explicitly). This is important for environments such
153 as a LiveCD, where the amount of system-specific configuration steps has
154 to be reduced to the minimum.</para>
155
156 <para><option>--enable-nls</option>: This switch allows
157 <application>Lynx</application> to print translated messages (such as
158 questions about cookies and SSL certificates).</para>
159
160 <para><option>--with-ssl</option>: This enables support for
161 linking SSL into <application>Lynx</application>.</para>
162
163 <!-- Fixed at version 2.8.8
164 <note><para>Due to an error in the <command>configure</command>
165 process, building with <application>openssl</application> also requires
166 running the following before running <command>make</command>.
167
168 <screen><userinput>echo "#define USE_OPENSSL_INCL 1" >> lynx_cfg.h</userinput></screen>
169 </para></note>
170 -->
171
172 <para><option>--with-gnutls</option>: This enables experimental support
173 for linking <application>GnuTLS</application> into
174 <application>Lynx</application>.</para>
175
176 <para><command>make install-full</command>: In addition to the standard
177 installation, this target installs the documentation and help files.</para>
178
179 <para><command>chgrp -v -R root
180 /usr/share/doc/lynx-&lynx-version;/lynx_doc</command>:
181 This command corrects the improper group ownership of installed
182 documentation files.</para>
183
184 <!-- This was fixed in the 2.8.6 release, though it still could
185 be considered an issue by some
186 <note>
187 <para>There has been a security vulnerability identified if you enable
188 support for CGI links by passing the <option>-enable-cgi-links</option>
189 parameter to <command>configure</command>. See <ulink
190 url="http://seclists.org/lists/vulnwatch/2005/Oct-Dec/0041.html"/> for
191 details.</para>
192 </note>
193 -->
194
195 </sect2>
196
197 <sect2 role="configuration">
198 <title>Configuring Lynx</title>
199
200 <sect3 id="lynx-config">
201 <title>Config Files</title>
202
203 <para><filename>/etc/lynx/lynx.cfg</filename></para>
204
205 <indexterm zone="lynx lynx-config">
206 <primary sortas="e-etc-lynx-lynx.cfg">/etc/lynx/lynx.cfg</primary>
207 </indexterm>
208
209 </sect3>
210
211 <sect3>
212 <title>Configuration Information</title>
213
214 <para>The proper way to get the display character set is to examine the
215 current locale. However, <application>Lynx</application> does not do
216 this by default. As the <systemitem class="username">root</systemitem>
217 user, change this setting:</para>
218
219<screen role="root"><userinput>sed -e '/#LOCALE/ a LOCALE_CHARSET:TRUE' \
220 -i /etc/lynx/lynx.cfg</userinput></screen>
221
222 <para>The built-in editor in <application>Lynx</application>
223 <xref linkend="locale-wrong-multibyte-characters"/>. This issue manifests
224 itself in multibyte locales, e.g., as the Backspace key not erasing
225 non-ASCII characters properly, and as incorrect data being sent to the
226 network when one edits the contents of text areas. The only solution
227 to this problem is to configure <application>Lynx</application> to
228 use an external editor (bound to the <quote>Ctrl+X e</quote> key
229 combination by default). Still as the
230 <systemitem class="username">root</systemitem> user:</para>
231<screen role="root"><userinput>sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' \
232 -i /etc/lynx/lynx.cfg</userinput></screen>
233
234 <para><application>Lynx</application> handles the following values of
235 the DEFAULT_EDITOR option specially by adding cursor-positioning
236 arguments: <quote>emacs</quote>, <quote>jed</quote>,
237 <quote>jmacs</quote>, <quote>joe</quote>, <quote>jove</quote>,
238 <quote>jpico</quote>, <quote>jstar</quote>, <quote>nano</quote>,
239 <quote>pico</quote>, <quote>rjoe</quote>, <quote>vi</quote> (but not
240 <quote>vim</quote>: in order to position the cursor in
241 <xref linkend="vim"/>, set this option to <quote>vi</quote>).</para>
242
243 <para>By default, <application>Lynx</application> doesn't save cookies
244 between sessions. Again as the
245 <systemitem class="username">root</systemitem> user, change this
246 setting:</para>
247<screen role="root"><userinput>sed -e '/#PERSIST/ a PERSISTENT_COOKIES:TRUE' \
248 -i /etc/lynx/lynx.cfg</userinput></screen>
249
250 <para>Many other system-wide settings such as proxies can also be set
251 in the <filename>/etc/lynx/lynx.cfg</filename> file.</para>
252
253 </sect3>
254
255 </sect2>
256
257 <sect2 role="content">
258 <title>Contents</title>
259
260 <segmentedlist>
261 <segtitle>Installed Program</segtitle>
262 <segtitle>Installed Libraries</segtitle>
263 <segtitle>Installed Directories</segtitle>
264
265 <seglistitem>
266 <seg>lynx</seg>
267 <seg>None</seg>
268 <seg>/etc/lynx and /usr/share/doc/lynx-&lynx-version;</seg>
269 </seglistitem>
270 </segmentedlist>
271
272 <variablelist>
273 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
274 <?dbfo list-presentation="list"?>
275 <?dbhtml list-presentation="table"?>
276
277 <varlistentry id="lynx-prog">
278 <term><command>lynx</command></term>
279 <listitem>
280 <para>is a general purpose, text-based, distributed information
281 browser for the World Wide Web.</para>
282 <indexterm zone="lynx lynx-prog">
283 <primary sortas="b-lynx">lynx</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 </variablelist>
289
290 </sect2>
291
292</sect1>
Note: See TracBrowser for help on using the repository browser.