FS#20246 - [devtools] Add /dev/{shm,pts} to mkarchroot mounting and unmounting.

Attached to Project: Arch Linux
Opened by Thomas Dziedzic (tomd123) - Wednesday, 21 July 2010, 12:58 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 12 August 2010, 16:27 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


I would like to propose adding the attached patch.

I have recently tried compiling sage-mathematics at http://aur.archlinux.org/packages.php?ID=14429 in a clean chroot.
I encountered a semlock, permission denied error. So I had to enable /dev/shm in the chroot.
Then I encountered a "unable to run gap error" which I later found out that it is caused by not having /dev/pts.
After patching in both, sage-mathematics successfully compiled.

devtools 0.9.7-1
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Thursday, 12 August 2010, 16:27 GMT
Reason for closing:  Implemented
Additional comments about closing:  will be in next devtools release (very soon)
Comment by Thomas Dziedzic (tomd123) - Tuesday, 10 August 2010, 15:09 GMT
Comment by Pierre Schmitz (Pierre) - Tuesday, 10 August 2010, 15:44 GMT
Sorry, didn't had time to look into it. But there will be a new version of devtools as I need other things to add too.

The only thing I wonder is if its wise to share shm and pts between host and chroot.
Comment by Thomas Dziedzic (tomd123) - Thursday, 12 August 2010, 16:04 GMT
It is also possible to mount shm and pts as described here: http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kernfs.html
This wouldn't bind them. But I still couldn't find anything wrong with binding them.

Note: I asked Ghost1227 to apply this patch on his pkgbuild.com server and there haven't been any issues yet.
Patch was applied the day this feature request was opened.