aboutsummaryrefslogtreecommitdiffstats
path: root/xincludes
diff options
context:
space:
mode:
authorKen Moffat <ken@linuxfromscratch.org>2020-04-01 01:34:37 +0000
committerKen Moffat <ken@linuxfromscratch.org>2020-04-01 01:34:37 +0000
commit5b0a978e5d9c65837d7fe23ee7023fc5000c0ae3 (patch)
treefe106b024ce1d9cabb267a422a188690e8085b11 /xincludes
parentb1fb2a9b4c2e7e70988a768423d7af3402c653ea (diff)
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
Diffstat (limited to 'xincludes')
-rw-r--r--xincludes/mozconfigure.xml18
-rw-r--r--xincludes/mozmach.xml18
-rw-r--r--xincludes/mozshm.xml26
3 files changed, 62 insertions, 0 deletions
diff --git a/xincludes/mozconfigure.xml b/xincludes/mozconfigure.xml
new file mode 100644
index 0000000000..11ab211fa5
--- /dev/null
+++ b/xincludes/mozconfigure.xml
@@ -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>
+
diff --git a/xincludes/mozmach.xml b/xincludes/mozmach.xml
new file mode 100644
index 0000000000..fc8d7d0b96
--- /dev/null
+++ b/xincludes/mozmach.xml
@@ -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>
+
diff --git a/xincludes/mozshm.xml b/xincludes/mozshm.xml
new file mode 100644
index 0000000000..f5a577a465
--- /dev/null
+++ b/xincludes/mozshm.xml
@@ -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 -->