From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 22:35:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8BEE16A41A for ; Thu, 10 Jan 2008 22:35:43 +0000 (UTC) (envelope-from gunther.mayer@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 3B7E413C4EA for ; Thu, 10 Jan 2008 22:35:42 +0000 (UTC) (envelope-from gunther.mayer@googlemail.com) Received: by ug-out-1314.google.com with SMTP id y2so517150uge.37 for ; Thu, 10 Jan 2008 14:35:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:from; bh=qRyUy5eqhtATkS6p4FchGiRVMLodngvsuo3Bp4GYUTA=; b=gBtjXuUwkVJmvdJVquKI3NDHJs733uSJP666tSjThvzrblUfKVuVRWfldRsr8tmWxhD/mwOsZmbTRE2V7Rd1OYzUGodLFCmX4wZRvn2+DqZRMeGlf3Ui6drJ4fbCtqd3sFSHjGdTy67IL7vbaLUhr+FYisx3vcPG3HueDEOHASQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=KTMPWx/yNESiatKHoNoQy0MnsAtPlTiQHUJjj0+hm7u5hw946WodP60mo3Y+FJcTBq6I+GpO31z94sGam/3WIhQd49mwOjzBZhU05ccRXa05cz1IDZndUKhgGbhspHpFy4Fvfvcr12PMMWktFZf1oHdGxoZx9YcWGo0vturHJ3Q= Received: by 10.67.21.11 with SMTP id y11mr4048565ugi.10.1200004541542; Thu, 10 Jan 2008 14:35:41 -0800 (PST) Received: from ?172.25.0.144? ( [41.245.160.33]) by mx.google.com with ESMTPS id j2sm3162752ugf.5.2008.01.10.14.35.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Jan 2008 14:35:40 -0800 (PST) Message-ID: <47869DB6.20709@gmail.com> Date: Fri, 11 Jan 2008 00:35:34 +0200 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <80f4f2b20801100731s7ed6b909h774c5ea783c1c664@mail.gmail.com> In-Reply-To: <80f4f2b20801100731s7ed6b909h774c5ea783c1c664@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Gunther Mayer Subject: Re: Python threading - some ports depend on it, others break with it X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 22:35:43 -0000 Jim Stapleton wrote: >> I'm having so much trouble with this. I'm hosting a trac based project >> which is implemented in python and uses an sqlite db backend along with >> its python bindings. Now it turns out that pysqlite breaks badly >> (compiles and installs fine but chokes on import, see >> http://lists.initd.org/pipermail/pysqlite/2006-May/000553.html) if >> python itself is compiled *without threading* support. >> >> However, on the same box I run a postgresql development and testing >> database and we have some triggers and other functions implemented in >> pl/python. Guess what? The compile of postgresql-plpython chokes upon >> configure if python is built *with threading* support. Running it seems >> to work fine, but there's a reason upstream put this check into >> configure because supposedly this is known to break things. >> > ... > >> I need both of these ports on one box and I'm not sure what to do to >> sort out this mess properly. Any ideas? What's up with Python's >> threading support on FreeBSD in any case, why is is broken? >> > > I would suggest framing either some of the programs/libraries with a > few counts of 1st degree murder, and sending it to jail for life, > where it can run for life in a nice little cell with it's own pet > python. > > Would that work? It's probably a bit more work than a desirable > solution, but if you don't need them running in the same "space", it > should work. Or have I completely missed the point (very likely given > me). > It's a good suggestion but I can see that being more trouble than it's worth. I wouldn't want to spend countless hours making sure that all those files, their dependencies, libraries and all that other jazz is in a jail on its own working smoothly, and even if I get it right upgrading components (e.g. security vulnerabilities) will prove to be a nightmare. Getting a second box is out of the question, for now at least, and while I thought virtualization might be the answer I see that FreeBSD only has guest support for Xen :-( Oh well, guess I'll post to freebsd-python to get some solution perhaps. Gunther