mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 14:32:13 +08:00
Update notes on building in chroot, for
mozilla packages needing python multiprocessing. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22928 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
b1fb2a9b4c
commit
5b0a978e5d
@ -126,7 +126,15 @@
|
||||
commands:
|
||||
</para>
|
||||
|
||||
&shell-env;
|
||||
<!-- &shell-env;-->
|
||||
|
||||
<note>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozshm.xml"/>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozconfigure.xml"/>
|
||||
</note>
|
||||
|
||||
<screen><userinput>mkdir mozjs-build &&
|
||||
cd mozjs-build &&
|
||||
|
@ -142,7 +142,16 @@
|
||||
commands:
|
||||
</para>
|
||||
|
||||
&shell-env;
|
||||
<!-- &shell-env;-->
|
||||
|
||||
<note>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozshm.xml"/>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozconfigure.xml"/>
|
||||
</note>
|
||||
|
||||
|
||||
<screen><userinput>sed '21,+4d' -i js/moz.configure &&
|
||||
|
||||
|
18
xincludes/mozconfigure.xml
Normal file
18
xincludes/mozconfigure.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
|
||||
|
||||
<!-- $LastChangedBy$
|
||||
$Date$ -->
|
||||
|
||||
<!-- to go inside a NOTE on mozilla packages which need SHELL
|
||||
specified in chroot, following the mozshm include -->
|
||||
|
||||
<para>
|
||||
Second, either as the <systemitem class="username">root</systemitem>
|
||||
user export the <envar>$SHELL</envar> environment variable using
|
||||
<command>export SHELL=/bin/sh</command> or else prepend
|
||||
<envar>SHELL=/bin/sh</envar> when running the
|
||||
<command>configure</command> command.
|
||||
</para>
|
||||
|
18
xincludes/mozmach.xml
Normal file
18
xincludes/mozmach.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
|
||||
|
||||
<!-- $LastChangedBy$
|
||||
$Date$ -->
|
||||
|
||||
<!-- to go inside a NOTE on mozilla packages which need SHELL
|
||||
specified in chroot, following the mozshm include -->
|
||||
|
||||
<para>
|
||||
Second, either as the <systemitem class="username">root</systemitem>
|
||||
user export the <envar>$SHELL</envar> environment variable using
|
||||
<command>export SHELL=/bin/sh</command> or else prepend
|
||||
<envar>SHELL=/bin/sh</envar> when running the
|
||||
<command>./mach</command> commands.
|
||||
</para>
|
||||
|
26
xincludes/mozshm.xml
Normal file
26
xincludes/mozshm.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
|
||||
|
||||
<!-- $LastChangedBy$
|
||||
$Date$ -->
|
||||
|
||||
<!-- to go inside a NOTE on mozilla packages which need shm
|
||||
mounted when configured or similar in chroot.
|
||||
Unfortunately, the DTD says an xinclude can only include
|
||||
one paragraph. -->
|
||||
|
||||
<para>
|
||||
If you are compiling this package in chroot you must do two things.
|
||||
First, as the <systemitem class="username">root</systemitem> user,
|
||||
ensure that <filename>/dev/shm</filename> is mounted. If you do not
|
||||
do this, the <application>Python</application> configury will fail
|
||||
with a traceback report referencing
|
||||
<filename>/usr/lib/pythonN.N/multiprocessing/synchronize.py</filename>.
|
||||
Run:
|
||||
|
||||
<screen role="nodump"><userinput>mountpoint /dev/shm >/dev/null ||
|
||||
mount -t tmpfs devshm /dev/shm</userinput></screen>
|
||||
|
||||
</para>
|
||||
<!-- follow with appropriate text about exporting SHELL -->
|
@ -354,12 +354,15 @@ EOF</userinput></screen>
|
||||
<screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
|
||||
echo "613364a7-9418-4c86-bcee-57e32fd70c23" > mozilla-key</userinput></screen>
|
||||
|
||||
<note><para>
|
||||
If you are compiling <application>Firefox</application> in chroot, make
|
||||
sure you have <envar>$SHELL</envar> environment variable set or prepend
|
||||
<envar>SHELL=/bin/sh</envar>. Also ensure that <filename>/dev/shm</filename>
|
||||
is mounted.
|
||||
</para></note>
|
||||
<note>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozshm.xml"/>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozmach.xml"/>
|
||||
|
||||
</note>
|
||||
<!--
|
||||
<para>
|
||||
If you are building on i686, apply a fix to prevent Internal Compiler
|
||||
|
@ -255,11 +255,19 @@ ac_add_options --with-system-png
|
||||
ac_add_options --with-system-zlib</literal>
|
||||
EOF</userinput></screen>
|
||||
|
||||
<note><para>
|
||||
If you are compiling <application>SeaMonkey</application> in chroot, make
|
||||
sure you have the <envar>SHELL</envar> environment variable set or prepend
|
||||
<envar>SHELL=/bin/sh</envar> to the first make command below.
|
||||
</para></note>
|
||||
<note>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozshm.xml"/>
|
||||
<!-- if this package switches to using ./mach, replace the
|
||||
folliowing by including mozmach.xml -->
|
||||
<para>
|
||||
Second, either as the <systemitem class="username">root</systemitem>
|
||||
user export the <envar>$SHELL</envar> environment variable using
|
||||
<command>export SHELL=/bin/sh</command> or else prepend
|
||||
<envar>SHELL=/bin/sh</envar> when running the first
|
||||
<command>make</command> command.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<para>
|
||||
Apply the patch to allow seamonkey to build with the current version of
|
||||
|
@ -228,10 +228,14 @@ EOF</userinput></screen>
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<note><para>
|
||||
If you are compiling <application>Thunderbird</application> in chroot,
|
||||
prepend <envar>SHELL=/bin/sh</envar> to the build command below.
|
||||
</para></note>
|
||||
<note>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozshm.xml"/>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/mozmach.xml"/>
|
||||
|
||||
</note>
|
||||
<!--
|
||||
<para>
|
||||
First, disable failure caused by undocumented rust macros:
|
||||
|
Loading…
Reference in New Issue
Block a user