mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2026-11-30 19:34:31 -06:00
In most cases, there is no need for x32-bit support unless the main architecture being used is x32-bit support, not 64-bit. Please read the x32-bit removal announcement for more information if curious.
168 lines
4.8 KiB
XML
168 lines
4.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
|
|
<sect1 id="ch-system-meson" role="wrap">
|
|
<?dbhtml filename="meson.html"?>
|
|
|
|
<sect1info condition="script">
|
|
<productname>meson</productname>
|
|
<productnumber>&meson-version;</productnumber>
|
|
<address>&meson-url;</address>
|
|
</sect1info>
|
|
|
|
<title>Meson-&meson-version;</title>
|
|
|
|
<indexterm zone="ch-system-meson">
|
|
<primary sortas="a-Meson">Meson</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title/>
|
|
|
|
<para>Meson is an open source build system designed to be both extremely fast
|
|
and as user friendly as possible.</para>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
<seglistitem>
|
|
<seg>&meson-fin-sbu;</seg>
|
|
<seg>&meson-fin-du;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Meson</title>
|
|
|
|
<para>Compile Meson with the following command:</para>
|
|
|
|
<screen><userinput remap="make">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen>
|
|
|
|
<para>The test suite requires some packages outside the scope of LFS.</para>
|
|
|
|
<para>Install the package:</para>
|
|
|
|
<screen><userinput remap="install">pip3 install --no-index --find-links dist meson
|
|
install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson
|
|
install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson</userinput></screen>
|
|
|
|
<variablelist>
|
|
<title>The meaning of the install parameters:</title>
|
|
|
|
<varlistentry>
|
|
<term><parameter>-w dist</parameter></term>
|
|
<listitem>
|
|
<para>Puts the created wheels into the
|
|
<filename class='directory'>dist</filename> directory.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term><parameter>--find-links dist</parameter></term>
|
|
<listitem>
|
|
<para>Installs wheels from the
|
|
<filename class='directory'>dist</filename> directory.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<para>
|
|
When targeting the 32-bit architecture on 64-bit, some packages
|
|
using Meson-based build systems will sometimes use wrong
|
|
architecture-specific settings, bit sizes, and pull in libraries not
|
|
meant for the architecture being targeted. This doesn't happen often but
|
|
requires complex solutions to solve without cross or native files. Errors
|
|
can range from linking and out-of-bounds, to other various cryptic
|
|
output.
|
|
</para>
|
|
|
|
<para>
|
|
Cross and native files specify architecture specific information
|
|
which either honestly and slyly tells Meson what the target or host is so
|
|
it uses correct information and libraries. Create those files now:
|
|
</para>
|
|
|
|
<screen><userinput remap="install">mkdir -pv /usr/share/meson/cross
|
|
mkdir -pv /usr/share/meson/native
|
|
for i in {cross/lib32,native/x86}; do
|
|
cat > /usr/share/meson/$i << "EOF"
|
|
<literal>[binaries]
|
|
c = ['gcc', '-m32']
|
|
cpp = ['g++', '-m32']
|
|
rust = ['rustc', '--target', 'i686-unknown-linux-gnu']
|
|
pkg-config = 'i686-pc-linux-gnu-pkg-config'
|
|
ar = '/usr/bin/ar'
|
|
strip = '/usr/bin/strip'
|
|
cups-config = 'cups-config'
|
|
llvm-config = 'llvm-config'
|
|
exe_wrapper = ''
|
|
|
|
[built-in options]
|
|
libdir = 'lib32'
|
|
|
|
[properties]
|
|
sizeof_void* = 4
|
|
sizeof_long = 4
|
|
|
|
[host_machine]
|
|
system = 'linux'
|
|
subsystem = 'linux'
|
|
kernel = 'linux'
|
|
cpu_family = 'x86'
|
|
cpu = 'i686'
|
|
endian = 'little'</literal>
|
|
EOF
|
|
done</userinput></screen>
|
|
|
|
<note><para>
|
|
These files will be used by default in packages that will use Meson-based
|
|
build systems to reduce any architecture and upgrading issues.
|
|
</para></note>
|
|
|
|
</sect2>
|
|
|
|
<sect2 id="contents-meson" role="content">
|
|
<title>Contents of Meson</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed programs</segtitle>
|
|
<segtitle>Installed directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>meson</seg>
|
|
<seg>
|
|
/usr/lib/python&python-minor;/site-packages/meson-&meson-version;.dist-info and
|
|
/usr/lib/python&python-minor;/site-packages/mesonbuild
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="meson">
|
|
<term><command>meson</command></term>
|
|
<listitem>
|
|
<para>A high productivity build system</para>
|
|
<indexterm zone="ch-system-meson meson">
|
|
<primary sortas="b-meson">meson</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|