Hi, I built Python with PTH and SEM. This fixed a problem I had with a python script I was using to compile ports. See below for a sample script that triggers a freezes with forked python threads (and something to do with cmake).
However some KDE ports failed to compile with the 'new' python. It was unable to locate pth.h. I commented out the HAVE_PTH line in python26/pyconfig.h and it succeeded to compile (if kdeutils finds pth.h it still fails to build). The KDE ports are: misc/kdeedu4 misc/kdeutils4 x11-themes/kdeartwork4 Regards, David P.S. I'm not on the list P.P.S. Please have a look at ports/130412: [UPDATE] databases/py-bsddb3 - From 4.5.0 -> 4.7.3, the PR is close to six months old (with no word from the maintainer). ================== The following python script hangs when lang/python26 is not compiled with semaphore support (while waiting on Popen()): ================== #!/usr/bin/env python from subprocess import Popen, PIPE from threading import Lock, Thread print "Acquiring lock" lock = Lock() lock.acquire() def run_make(): print "Waiting on make..." Popen(['make', '-C', '/usr/ports/x11-themes/qtcurve-gtk2', 'clean', 'all'], stdin=PIPE, stdout=PIPE, stderr=PIPE).wait() print "Releasing lock" lock.release() print "Starting thread" Thread(target=run_make).start() print "Waiting on lock..." lock.acquire() print "Done"
signature.asc
Description: This is a digitally signed message part.