Mount /dev/shm in chroots

Fix configure crash when building mozjs60 by mounting tmpfs as /dev/shm
in chroots. This is an important fix, because of this dependency chain,
that is currently broken in armhf and armv7 (see pmaports#244):

postmarketos-base -> networkmanager -> polkit -> mozjs60
This commit is contained in:
Oliver Smith 2019-05-05 16:54:42 +02:00
parent 9bc7236857
commit 8187c66825
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ def mount_dev_tmpfs(args, suffix="native"):
# Create pts, shm folders and device nodes
pmb.helpers.run.root(args, ["mkdir", "-p", dev + "/pts", dev + "/shm"])
pmb.helpers.run.root(args, ["mount", "-t", "tmpfs",
"-o", "nodev,nosuid,noexec",
"tmpfs", dev + "/shm"])
create_device_nodes(args, suffix)