Changeset ae5a7024 for general


Ignore:
Timestamp:
02/14/2016 04:24:59 PM (8 years ago)
Author:
Fernando de Oliveira <fernando@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.9, 8.0, 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, nosym, 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
Children:
2db87f5
Parents:
3bd40abd
Message:
  • Lua-5.3.2 and VLC-2.2.2 need to be compiled with Lua compat 5.1

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/lua.xml

    r3bd40abd rae5a7024  
    120120    <title>Installation of Lua</title>
    121121
    122     <para>
    123       Install <application>Lua</application> by running the following
    124       commands:
    125     </para>
    126 
    127 <screen><userinput>patch -Np1 -i ../lua-&lua-version;-shared_library-1.patch &amp;&amp;
    128 
    129 sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &amp;&amp;
    130 
    131 make MYCFLAGS="-DLUA_COMPAT_5_1" linux</userinput></screen>
    132 
    133     <para>
    134       To test the results, issue: <command>make test</command>.
    135       <quote>This will run the interpreter and print its version.</quote>.
    136       More comprehensive tests can be performed if you downloaded the "Test
    137       suite" tarball. Those tests need to be executed after the package is
    138       installed, thus we defer to describe then below.
    139     </para>
    140 
    141     <para>
    142       Now, as the <systemitem class="username">root</systemitem> user:
    143     </para>
    144 
    145 <screen role="root"><userinput>make INSTALL_TOP=/usr TO_LIB="liblua.so liblua.so.5.3 liblua.so.&lua-version;" \
    146      INSTALL_DATA="cp -d" INSTALL_MAN=/usr/share/man/man1 install &amp;&amp;
    147 
    148 mkdir -pv /usr/share/doc/lua-&lua-version; &amp;&amp;
    149 cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version;</userinput></screen>
    150 
    151122    <para>Some packages check for the <application>pkg-config</application> file
    152     for <application>Lua</application>. As the
    153     <systemitem class="username">root</systemitem> user:</para>
    154 
    155 <screen role="root"><userinput>cat &gt; /usr/lib/pkgconfig/lua.pc &lt;&lt; "EOF"
     123    for <application>Lua</application>, wich is created with:</para>
     124
     125<screen role="root"><userinput>cat &gt; lua.pc &lt;&lt; "EOF"
    156126<literal>V=5.3
    157127R=&lua-version;
     
    177147
    178148    <para>
     149      Install <application>Lua</application> by running the following
     150      commands:
     151    </para>
     152
     153<screen><userinput>patch -Np1 -i ../lua-&lua-version;-shared_library-1.patch &amp;&amp;
     154
     155sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &amp;&amp;
     156
     157make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux</userinput></screen>
     158
     159    <para>
     160      To test the results, issue: <command>make test</command>.
     161      <quote>This will run the interpreter and print its version.</quote>.
     162      More comprehensive tests can be performed if you downloaded the "Test
     163      suite" tarball. Those tests need to be executed after the package is
     164      installed, thus we defer to describe then below.
     165    </para>
     166
     167    <para>
     168      Now, as the <systemitem class="username">root</systemitem> user:
     169    </para>
     170
     171<screen role="root"><userinput>make INSTALL_TOP=/usr TO_LIB="liblua.so liblua.so.5.3 liblua.so.&lua-version;" \
     172     INSTALL_DATA="cp -d" INSTALL_MAN=/usr/share/man/man1 install &amp;&amp;
     173
     174mkdir -pv /usr/share/doc/lua-&lua-version; &amp;&amp;
     175cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version; &amp;&amp;
     176
     177install -v -m644 -D lua.pc /usr/lib/pkgconfig/lua.pc</userinput></screen>
     178
     179    <para>
    179180      We are going to describe only the "Basic tests". Untar the tarball and
    180181      change to the
     
    197198
    198199    <para>
    199       <parameter>MYCFLAGS="-DLUA_COMPAT_5_1"</parameter>: This parameter
    200       enables building of the <application>Lua</application> 5.1
    201       functions into the shared library to allow applications which
    202       still require them to function properly.
     200      <envar>MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1"</envar>: This
     201      environment variable includes compatibility layers with Lua 5.1 and 5.2
     202      in the build.
    203203    </para>
    204204
Note: See TracChangeset for help on using the changeset viewer.