diff options
Diffstat (limited to 'chapter06/meson.xml')
-rw-r--r-- | chapter06/meson.xml | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/chapter06/meson.xml b/chapter06/meson.xml index fed402f46..b0410392b 100644 --- a/chapter06/meson.xml +++ b/chapter06/meson.xml @@ -40,6 +40,10 @@ <sect2 role="installation"> <title>Installation of Meson</title> + <para>Make a fix from upstream:</para> + +<screen><userinput remap="pre">sed -i '309 s/os.getcwd/-C, &/' mesonbuild/minstall.py</userinput></screen> + <para>Compile Meson with the following command:</para> <screen><userinput remap="make">python3 setup.py build</userinput></screen> @@ -48,16 +52,33 @@ <para>Install the package:</para> -<screen><userinput remap="install">python3 setup.py install</userinput></screen> - +<screen><userinput remap="install">python3 setup.py install --root=dest +cp -rv dest/* /</userinput></screen> +<!-- <para>At last, move Meson man pages to correct location:</para> <screen><userinput remap="install">mv -v /usr/lib/python&python-minor;/site-packages/meson-&meson-version;-py&python-minor;.egg/share/man/man1/*.1 \ /usr/share/man/man1 rm -r /usr/lib/python&python-minor;/site-packages/meson-&meson-version;-py&python-minor;.egg/share</userinput></screen> +--> - </sect2> + <variablelist> + <title>The meaning of the install parameters:</title> + + <varlistentry> + <term><parameter>--root=dest</parameter></term> + <listitem> + <para>By default <command>python3 setup.py install</command> + installs various files (such as man pages) into Python Eggs. + With a specified root location, <command>setup.py</command> installs + these files into a standard hierarchy. Then we can just copy + the hierarchy so the files will be in the standard location. + </para> + </listitem> + </varlistentry> + </variablelist> + </sect2> <sect2 id="contents-meson" role="content"> <title>Contents of Meson</title> |