Le 26/03/2020 à 18:15, Ken Moffat via blfs-dev a écrit :
> On Thu, Mar 26, 2020 at 04:51:59PM +0000, Ken Moffat via blfs-dev wrote:
>> On Thu, Mar 26, 2020 at 01:41:40PM +0000, Ken Moffat via blfs-dev wrote:
>>
>> [snip how, and what, I tested]
>>
> 
> And now the proposal:
> 
> Replace the Note about $SHELL and /dev/shm in firefox with a standard
> copy member. The mount part comes first because OSError 38 comes
> before any eventual failure to determine the shell.
> 
> ----
> Note:
> 
> If you are compiling this package in chroot you must do two things:
> 
> First, as the root user, ensure that /run is mounted:
> 
>  mount -t tmpfs /run

But this _should_ already be done if the commands on the "Preparing the
Virtual Kernel File Systems" page have been run. Mounting before or after
entering chroot does not change anything (it is possible I am wrong with this,
but I need to be able to reproduce this on my systems to be convinced)

And this is not enough if the host does not have /dev/shm->/run/shm, as is the
case on debian and lfs systemd. On those systems, the note about /dev/shm _is_
accurate (well, not quite, it should be "ensure that a tempfs is mounted on
/dev/shm")

> 
> If you do not do this, configuring will fail with a python traceback
> report referencing a /usr/lib/pythonN.N/multiprocessing/synchronize.py
> file and ending 'OSError: [Errno 38] Function not implemented'.
> (this explanation possibly in italics, i.e. emphasis, except for the
> filename markup)

As the starter of this thread, I do not see exactly this error, but rather:

File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 59, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation,
therefore, the required synchronization primitives needed will not function,
see issue 3770.

> 
> Second, as your normal user either set the $SHELL environment
> variable or prepend SHELL=/bin/sh.

Actually, the SHELL variable _is_ set (at least for my systems) for root in
chroot, but not exported. So "export SHELL" is enough. Then when doing su -
<user>, the SHELL is set and exported for the user (note that I have the bash
shell startup files as in the blfs book).

> ----
> 
> I suppose a name like xincludes/mozilla-chroot.xml
> 
> Use in firefox, mozjs60, mozjs68, seamonkey, thunderbird.

Actually, lfs sysv is somewhat weird among distros: it seems to be the only
distro with /dev/shm->/run/shm. All systemd distros have the other way around,
and gentoo and artix do not even have /run/shm.

I know it used to be common that distros had /dev/shm->/run/shm, but nowadays,
it seems to be not used anymore.

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to