source: networking/textweb/lynx.xml@ 5cd05010

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 5cd05010 was 5cd05010, checked in by Pierre Labastie <pieere@…>, 6 years ago

Patch lynx for building with ncurses-6.1. Fixes ticket 10322

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

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