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>
next in thread | raw e-mail | index | archive | help
--nextPart10205984.X4Wc4WJtXJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I built Python with PTH and SEM. This fixed a problem I had with a python= =20 script I was using to compile ports. See below for a sample script that=20 triggers a freezes with forked python threads (and something to do with=20 cmake). =20 However some KDE ports failed to compile with the 'new' python. It was una= ble=20 to locate pth.h. I commented out the HAVE_PTH line in python26/pyconfig.h= =20 and it succeeded to compile (if kdeutils finds pth.h it still fails to=20 build). =20 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 - F= rom=20 4.5.0 -> 4.7.3, the PR is close to six months old (with no word from the=20 maintainer). =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The following python script hangs when lang/python26 is not compiled with=20 semaphore support (while waiting on Popen()): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #!/usr/bin/env python from subprocess import Popen, PIPE from threading import Lock, Thread print "Acquiring lock" lock =3D Lock() lock.acquire() def run_make(): print "Waiting on make..." Popen(['make', '-C', '/usr/ports/x11-themes/qtcurve-gtk2', 'clean', 'all'= ], stdin=3DPIPE, stdout=3DPIPE, stderr=3DPIPE).wait() print "Releasing lock" lock.release() print "Starting thread" Thread(target=3Drun_make).start() print "Waiting on lock..." lock.acquire() print "Done" --nextPart10205984.X4Wc4WJtXJ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAkoRsh8ACgkQUaaFgP9pFrJ1AACfULwkRPLSKAwLtC1Tyl+B3ogO XCkAnRS4Csi+lQTvPuPNAbgEYkflHy8j =QzTQ -----END PGP SIGNATURE----- --nextPart10205984.X4Wc4WJtXJ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905182108.15834.naylor.b.david>