From owner-freebsd-ports@FreeBSD.ORG  Sun Aug  7 19:14:25 2011
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
Delivered-To: freebsd-ports@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4B2BB106564A;
	Sun,  7 Aug 2011 19:14:25 +0000 (UTC)
	(envelope-from andrey@zonov.org)
Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com
	[209.85.161.54])
	by mx1.freebsd.org (Postfix) with ESMTP id A63298FC12;
	Sun,  7 Aug 2011 19:14:24 +0000 (UTC)
Received: by fxe4 with SMTP id 4so1797393fxe.13
	for <multiple recipients>; Sun, 07 Aug 2011 12:14:23 -0700 (PDT)
Received: by 10.204.3.13 with SMTP id 13mr53672bkl.360.1312744463236;
	Sun, 07 Aug 2011 12:14:23 -0700 (PDT)
Received: from [10.254.254.77] (ppp95-165-146-126.pppoe.spdop.ru
	[95.165.146.126])
	by mx.google.com with ESMTPS id zy5sm865511bkb.31.2011.08.07.12.14.21
	(version=SSLv3 cipher=OTHER); Sun, 07 Aug 2011 12:14:22 -0700 (PDT)
Message-ID: <4E3EE408.8030206@zonov.org>
Date: Sun, 07 Aug 2011 23:14:16 +0400
From: Andrey Zonov <andrey@zonov.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru;
	rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0
MIME-Version: 1.0
To: Volodymyr Kostyrko <c.kworr@gmail.com>
References: <4E3E75D1.7050206@zonov.org> <4E3ED56A.5090108@gmail.com>
In-Reply-To: <4E3ED56A.5090108@gmail.com>
Content-Type: multipart/mixed; boundary="------------080507060703070408030205"
Cc: freebsd-ports@freebsd.org, freebsd-python@freebsd.org
Subject: Re: [patch] always install python's eggs as unpacked files
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 07 Aug 2011 19:14:25 -0000

This is a multi-part message in MIME format.
--------------080507060703070408030205
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

Thank you for you feedback. I've fixed that problem easier.
My point is that I don't want to fix all bad ports. I want to fix them 
all at once, completely.

Tomorrow I want to try to build all 400 python modules that use 
`easy_install' in my tinderbox with this patch.

-- 
Andrey Zonov


07.08.2011 22:11, Volodymyr Kostyrko пишет:
> 07.08.2011 14:24, Andrey Zonov wrote:
>> Hi,
>>
>> I've got two problems with python's eggs installed from ports.
>>
>> As you know, many eggs install from ports as archives and then
>> unprivileged pseudo-user tries to use them, it's got an error about
>> can't creating PYTHON_EGG_CACHE. That's OK, I've just set environment
>> "PYTHON_EGG_CACHE=/var/tmp" and all works quite well. But a week ago I
>> needed to run two daemons that use pymongo and I couldn't do this. The
>> first daemon created PYTHON_EGG_CACHE and unpacked pymongo, but the
>> second couldn't create PYTHON_EGG_CACHE because PYTHON_EGG_CACHE already
>> exists! Even though they both run as "nobody".
>>
>> The second problem with that behaviour is when you're installing some
>> python module from packages you need the Internet connection to get an
>> egg from site and build it on-the-fly.
>>
>> Please, inspect my patch. I think that's a good solution for that 
>> problems.
>
> I second this one, default behavior seems incorrect for me too.
>
> I've tested the patch against devel/py-greenlet an it works for me 
> with minor changes (commenting out PYDISTUTILS_INSTALLARGS).
>

--------------080507060703070408030205
Content-Type: text/plain;
 name="bsd.python.mk.patch.txt"
Content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