pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
FYI: building python packages in chroot environment on linux
Hello!
When building packages in a chroot environment on linux, I have found
that parallel/py-billiard fails in semaphore code. The problem is caused
by broken python27 package: in absence of /dev/shm python's build system
misdetects semaphore support as missing or broken.
You can check, if you have hit this problem, by looking into
include/python2.7/pyconfig.h
In problematic case you see the following definitions:
#define HAVE_BROKEN_SEM_GETVALUE 1
#define POSIX_SEMAPHORES_NOT_ENABLED 1
The solution is to mount /dev/shm, e.g.:
mount -t tmpfs -o rw,nosuid,nodev tmpfs ${jail}/dev/shm
and rebuild lang/python27 with everything that depends on it.
--
HE CE3OH...
Home |
Main Index |
Thread Index |
Old Index