Changeset ae5a7024


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

Files:
3 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
  • introduction/welcome/changelog.xml

    r3bd40abd rae5a7024  
    4949      <itemizedlist>
    5050        <listitem>
    51           <para>[krejzi] - Fixed Lua instructions to enable
    52           building of the Lua 5.1 compatibility functions. Fixes
    53           <ulink url="&blfs-ticket-root;7462">#7462</ulink>.</para>
     51          <para>[fernando] - Lua-5.3.2 and VLC-2.2.2 need to be compiled with
     52          Lua compat 5.1. Fixes
     53          <ulink url="&blfs-ticket-root;7462">#7462</ulink> and
     54          <ulink url="&blfs-ticket-root;7465">#7465</ulink>.</para>
    5455        </listitem>
    5556        <listitem>
  • multimedia/videoutils/vlc.xml

    r3bd40abd rae5a7024  
    221221
    222222    <para>
     223      If you wish to avoid thousands of annoying warnings, issue:
     224    </para>
     225
     226<screen><userinput>sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac</userinput></screen>
     227
     228    <para>
    223229      Install <application>VLC</application> by running the following commands:
    224230    </para>
     
    242248
    243249sed -e '/seems to be moved/s/^/#/' \
    244     -i autotools/ltmain.sh libtool &amp;&amp;
    245 
    246 make</userinput></screen>
     250    -i autotools/ltmain.sh libtool &amp;&amp;</userinput></screen>
     251
     252    <para>
     253      In order to build with Lua 5.1 compatiblity, issue:
     254    </para>
     255
     256<screen><userinput>CFLAGS='-fPIC -O2 -Wall -Wextra -DLUA_COMPAT_5_1' make </userinput></screen>
    247257
    248258    <para>
Note: See TracChangeset for help on using the changeset viewer.