source: general/prog/lua.xml@ abf8d12

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 abf8d12 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 8.3 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 lua-download-http "https://www.lua.org/ftp/lua-&lua-version;.tar.gz">
8 <!ENTITY lua-download-ftp " ">
9 <!ENTITY lua-md5sum "ef63ed2ecfb713646a7fcc583cf5f352">
10 <!ENTITY lua-size "352 KB">
11 <!ENTITY lua-buildsize "5.8 MB (with Basic tests)">
12 <!ENTITY lua-time "less than 0.1 SBU (with Basic tests)">
13
14 <!ENTITY lua-tests-download-http "https://www.lua.org/tests/lua-&lua-version;-tests.tar.gz">
15 <!ENTITY lua-tests-download-ftp " ">
16 <!ENTITY lua-tests-md5sum "4afc92b7e45fc0687c686a470bc8072a">
17 <!ENTITY lua-tests-size "132 KB">
18]>
19
20<sect1 id="lua" xreflabel="Lua-&lua-version;">
21 <?dbhtml filename="lua.html"?>
22
23 <sect1info>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>Lua-&lua-version;</title>
28
29 <indexterm zone="lua">
30 <primary sortas="a-Lua">Lua</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Lua</title>
35
36 <para>
37 <application>Lua</application> is a powerful light-weight programming
38 language designed for extending applications. It is also frequently used
39 as a general-purpose, stand-alone language. <application>Lua</application>
40 is implemented as a small library of C functions, written in ANSI C, and
41 compiles unmodified in all known platforms. The implementation goals are
42 simplicity, efficiency, portability, and low embedding cost. The result is
43 a fast language engine with small footprint, making it ideal in embedded
44 systems too.
45 </para>
46
47 &lfs101_checked;
48
49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
52 <para>
53 Download (HTTP): <ulink url="&lua-download-http;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download (FTP): <ulink url="&lua-download-ftp;"/>
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download MD5 sum: &lua-md5sum;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Download size: &lua-size;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated disk space required: &lua-buildsize;
74 </para>
75 </listitem>
76 <listitem>
77 <para>
78 Estimated build time: &lua-time;
79 </para>
80 </listitem>
81 </itemizedlist>
82
83 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
84 <itemizedlist spacing="compact">
85 <listitem>
86 <para>
87 Required patch:
88 <ulink url="&patch-root;/lua-&lua-version;-shared_library-1.patch"/>
89 </para>
90 </listitem>
91 <listitem>
92 <para>
93 Optional Test Suite Download (HTTP): <ulink url="&lua-tests-download-http;"/>
94 </para>
95 </listitem>
96 <listitem>
97 <para>
98 Optional Test Suite Download (FTP): <ulink url="&lua-tests-download-ftp;"/>
99 </para>
100 </listitem>
101 <listitem>
102 <para>
103 Optional Test Suite Download MD5 sum: &lua-tests-md5sum;
104 </para>
105 </listitem>
106 <listitem>
107 <para>
108 Optional Test Suite Download size: &lua-tests-size;
109 </para>
110 </listitem>
111 </itemizedlist>
112
113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/lua"/>
115 </para>
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of Lua</title>
120
121 <para>
122 Some packages check for the <application>pkg-config</application> file
123 for <application>Lua</application>, which is created with:
124 </para>
125
126<screen><userinput>cat &gt; lua.pc &lt;&lt; "EOF"
127<literal>V=5.4
128R=&lua-version;
129
130prefix=/usr
131INSTALL_BIN=${prefix}/bin
132INSTALL_INC=${prefix}/include
133INSTALL_LIB=${prefix}/lib
134INSTALL_MAN=${prefix}/share/man/man1
135INSTALL_LMOD=${prefix}/share/lua/${V}
136INSTALL_CMOD=${prefix}/lib/lua/${V}
137exec_prefix=${prefix}
138libdir=${exec_prefix}/lib
139includedir=${prefix}/include
140
141Name: Lua
142Description: An Extensible Extension Language
143Version: ${R}
144Requires:
145Libs: -L${libdir} -llua -lm -ldl
146Cflags: -I${includedir}</literal>
147EOF</userinput></screen>
148
149 <para>
150 Install <application>Lua</application> by running the following
151 commands:
152 </para>
153
154<screen><userinput>patch -Np1 -i ../lua-&lua-version;-shared_library-1.patch &amp;&amp;
155make linux</userinput></screen>
156<!-- make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
157 The MYCFLAGS="" part was brought into the patch since optimization had to
158 be turned off.
159 The LUA_ROOT change also has been merged into the patch.-->
160
161 <para>
162 To test the results, issue: <command>make test</command>.
163 <quote>This will run the interpreter and print its version</quote>.
164 More comprehensive tests can be performed if you downloaded the "Test
165 suite" tarball. Those tests need to be executed after the package is
166 installed, thus we defer to the description below.
167 </para>
168
169 <para>
170 Now, as the <systemitem class="username">root</systemitem> user:
171 </para>
172
173<screen role="root"><userinput>make INSTALL_TOP=/usr \
174 INSTALL_DATA="cp -d" \
175 INSTALL_MAN=/usr/share/man/man1 \
176 TO_LIB="liblua.so liblua.so.5.4 liblua.so.&lua-version;" \
177 install &amp;&amp;
178
179mkdir -pv /usr/share/doc/lua-&lua-version; &amp;&amp;
180cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version; &amp;&amp;
181
182install -v -m644 -D lua.pc /usr/lib/pkgconfig/lua.pc</userinput></screen>
183
184 <para>
185 Here we describe only the "Basic tests". Untar the tarball and
186 change to the
187 <filename class="directory">lua-&lua-version;-tests</filename> directory,
188 then issue
189 <command>lua -e "_U=true" all.lua</command>. If the tests finish without
190 error, you will see a message containing the string "final OK".
191 </para>
192
193 <!-- The optimization problem fixed in the patch was identified by running
194 the test suite, and ultimately culminated in a SIGBUS error. -->
195 </sect2>
196
197 <!-- Brought into the patch, unneeded
198 <sect2 role="commands">
199 <title>Command Explanations</title>
200
201 <para>
202 <command>sed -i ... src/luaconf.h</command>: This command changes the
203 <application>Lua</application> search path to match the install path.
204 </para>
205
206 <para>
207 <envar>MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1"</envar>: This
208 environment variable includes compatibility layers with Lua 5.1 and 5.2
209 in the build.
210 </para>
211
212 </sect2>
213 -->
214
215 <sect2 role="content">
216 <title>Contents</title>
217
218 <segmentedlist>
219 <segtitle>Installed Programs</segtitle>
220 <segtitle>Installed Library</segtitle>
221 <segtitle>Installed Directories</segtitle>
222
223 <seglistitem>
224 <seg>
225 lua and luac
226 </seg>
227 <seg>
228 liblua.so
229 </seg>
230 <seg>
231 /usr/{lib,share}/lua and
232 /usr/share/doc/lua-&lua-version;
233 </seg>
234 </seglistitem>
235 </segmentedlist>
236
237 <variablelist>
238 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
239 <?dbfo list-presentation="list"?>
240 <?dbhtml list-presentation="table"?>
241
242 <varlistentry id="lua-prog">
243 <term><command>lua</command></term>
244 <listitem>
245 <para>
246 is the standalone Lua interpreter
247 </para>
248 <indexterm zone="lua lua-prog">
249 <primary sortas="b-lua">lua</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="luac">
255 <term><command>luac</command></term>
256 <listitem>
257 <para>
258 is the Lua compiler
259 </para>
260 <indexterm zone="lua luac">
261 <primary sortas="b-luac">luac</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="liblua">
267 <term><filename class="libraryfile">liblua.so</filename></term>
268 <listitem>
269 <para>
270 contains the <application>Lua</application> API functions
271 </para>
272 <indexterm zone="lua liblua">
273 <primary sortas="c-liblua">liblua.so</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 </variablelist>
279
280 </sect2>
281
282</sect1>
Note: See TracBrowser for help on using the repository browser.