From owner-freebsd-python@FreeBSD.ORG Mon May 18 19:47:00 2009 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A37391065672 for ; Mon, 18 May 2009 19:47:00 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 301978FC28 for ; Mon, 18 May 2009 19:46:59 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by ewy3 with SMTP id 3so4191063ewy.43 for ; Mon, 18 May 2009 12:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=GSnfgsLWAmM1hA6VGcoDpa2kpxL9QePmiXwo6NJTHlU=; b=avaf7Iz7GTaevX1yPnYyNl2qzoDw8oN9mxRCI5vRT+/Knucgga0mJo30BaFQovideY OCoaaGXN1ILoSLZk4irOq8Jzbf3bg/KS+BKEeyWPrubDR/8A0SPopJ/8mCrsEOXGeXBN QmohoaWTrH/J5Hz1BLqCk9TysQ6bfJkXQi0P8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; b=mbRebQ99EK3dS1f9lhDUmV7Skf1f/fgQynaOT3aURarrBJxW78U1XWTbOVM/t6VGc1 5/CNEqvMXYptHoaAHTb7jXccte0frQaCgaurVV33u/tTFGUm0t6zmDXbUp46RADKoX29 Tv8w36e8jbY3dH3UaO7Tj/VuLXMl0SbLlLGG8= Received: by 10.210.39.8 with SMTP id m8mr1004422ebm.47.1242674409318; Mon, 18 May 2009 12:20:09 -0700 (PDT) Received: from ?172.24.30.50? ([41.208.50.160]) by mx.google.com with ESMTPS id 24sm3664105eyx.53.2009.05.18.12.20.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 May 2009 12:20:08 -0700 (PDT) From: David Naylor Organization: Private To: freebsd-python@freebsd.org Date: Mon, 18 May 2009 21:08:12 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10205984.X4Wc4WJtXJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200905182108.15834.naylor.b.david@gmail.com> Subject: Python PTH+SEM and KDE X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 19:47:01 -0000 --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--