Date: Mon, 18 May 2009 21:08:12 +0200 From: David Naylor <naylor.b.david@gmail.com> To: freebsd-python@freebsd.org Subject: Python PTH+SEM and KDE Message-ID: <200905182108.15834.naylor.b.david@gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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"
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
iEYEABECAAYFAkoRsh8ACgkQUaaFgP9pFrJ1AACfULwkRPLSKAwLtC1Tyl+B3ogO
XCkAnRS4Csi+lQTvPuPNAbgEYkflHy8j
=QzTQ
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905182108.15834.naylor.b.david>
