From owner-freebsd-python@FreeBSD.ORG Wed Jan 8 14:23:52 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B404323; Wed, 8 Jan 2014 14:23:52 +0000 (UTC) Received: from mail-qa0-x22d.google.com (mail-qa0-x22d.google.com [IPv6:2607:f8b0:400d:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 091E21E6F; Wed, 8 Jan 2014 14:23:51 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id j5so1675045qaq.32 for ; Wed, 08 Jan 2014 06:23:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F24GYKIUmd2tmfJ8NLv4ydS2ud1bRU1VXN2RHB6wpgA=; b=CsWChBMBs1J616LzCtnKIqDZOcXQoAI1idHdcJkptmuLlPN0WkcZgtFtgF5my8z4/s x1z0fm6Oq0ug8sXKtu/SQYZlpzeN9HQg8AVEK2Tlo/rdKI3Zl+qq/ww9NMvQl7l/NYEL FGtSDh0zHT+oVCNSYlMKtiBtO57phuDANcFJtxCcJJf9ymXff2bVYJH7S5xNE/6mrqfb nLwuiEKrtjznrgM20xLN6Env7+/38lNHUZ1YFL4DgLBgQakICUHG6SyZEeM83x3ZsAno yXf0ctjNCxh5mXLikwu4dR4HXZS2GCeOLmDoHE/oWmzPdJTV0WGaHo9AYc4Q1yH3uaKP zT5Q== MIME-Version: 1.0 X-Received: by 10.49.75.10 with SMTP id y10mr211979541qev.56.1389191031137; Wed, 08 Jan 2014 06:23:51 -0800 (PST) Received: by 10.140.81.199 with HTTP; Wed, 8 Jan 2014 06:23:51 -0800 (PST) In-Reply-To: <20140108105819.M77522@martymac.org> References: <20140108105819.M77522@martymac.org> Date: Wed, 8 Jan 2014 14:23:51 +0000 Message-ID: Subject: Re: Egginfo plist handling and PREFIX From: William Grzybowski To: Ganael LAPLANCHE Content-Type: text/plain; charset=ISO-8859-1 Cc: William Grzybowski , python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jan 2014 14:23:52 -0000 Hi, Well thats strange, was your python compiled for different LOCALBASE as well? This var is extracted from python binary.. On Wed, Jan 8, 2014 at 1:04 PM, Ganael LAPLANCHE wrote: > Hi, > > We may have a bug in r336553 > (http://svnweb.freebsd.org/ports?view=revision&revision=336553) within > the add-plist-egginfo target regarding PREFIX handling. > > It is no more possible to install e.g. sysutils/dvdvideo or > sysutils/brebis with a custom PREFIX : > > # cd /usr/ports/sysutils/brebis > # make PREFIX=/files/Down/brebis-test install > [...] > ===> Registering installation for brebis-0.8 > pkg-static: > lstat(/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/files/Down/brebis-test/lib/python3.3/site-packages/brebis-0.8-py3.3.egg-info/PKG-INFO): > No such file or directory > pkg-static: > lstat(/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/files/Down/brebis-test/lib/python3.3/site-packages/brebis-0.8-py3.3.egg-info/SOURCES.txt): > No such file or directory > pkg-static: > lstat(/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/files/Down/brebis-test/lib/python3.3/site-packages/brebis-0.8-py3.3.egg-info/dependency_links.txt): > No such file or directory > pkg-static: > lstat(/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/files/Down/brebis-test/lib/python3.3/site-packages/brebis-0.8-py3.3.egg-info/top_level.txt): > No such file or directory > pkg-static: > lstat(/tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/files/Down/brebis-test//tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/files/Down/brebis-test/lib/python3.3/site-packages/brebis-0.8-py3.3.egg-info/): > No such file or directory > *** Error code 74 > > Before installation, egginfo files are staged here : > > /tmp/wrkdirs/files/Ports/ports/sysutils/brebis/work/stage/files/Down/brebis-test/lib/python3.3/site-packages/brebis-0.8-py3.3.egg-info > > wich corresponds to ${STAGEDIR}${PREFIX}[...], not > ${STAGEDIR}${PYTHONBASE}[...]. > > Replacing ${PYTHONBASE} by ${PREFIX} within Mk/bsd.python.mk with this > patch : > > 8<------------------ > --- Mk/bsd.python.mk.orig 2014-01-08 11:39:35.869744772 +0100 > +++ Mk/bsd.python.mk 2014-01-08 11:42:47.999731061 +0100 > @@ -515,23 +515,23 @@ > add-plist-egginfo: > .if !defined(PYDISTUTILS_NOEGGINFO) && \ > !defined(PYDISTUTILS_AUTOPLIST) && \ > (defined(INSTALLS_EGGINFO) || \ > (defined(USE_PYDISTUTILS) && \ > ${USE_PYDISTUTILS} != "easy_install")) && \ > defined(PYTHON_REL) > . for egginfo in ${PYDISTUTILS_EGGINFO} > if [ -d "${PYDISTUTILS_EGGINFODIR}/${egginfo}" ]; then \ > ${LS} ${PYDISTUTILS_EGGINFODIR}/${egginfo} | while read > f; do \ > - ${ECHO_CMD} > ${PYDISTUTILS_EGGINFODIR:S;^${STAGEDIR}${PYTHONBASE}/;;}/${egginfo}/$${f} >> > ${TMPPLIST}; \ > + ${ECHO_CMD} > ${PYDISTUTILS_EGGINFODIR:S;^${STAGEDIR}${PREFIX}/;;}/${egginfo}/$${f} >> > ${TMPPLIST}; \ > done; \ > - ${ECHO_CMD} "@unexec rmdir > \"%D/${PYDISTUTILS_EGGINFODIR:S;${STAGEDIR}${PYTHONBASE}/;;}/${egginfo}\" 2>/dev/null > || true" >> ${TMPPLIST}; \ > + ${ECHO_CMD} "@unexec rmdir > \"%D/${PYDISTUTILS_EGGINFODIR:S;${STAGEDIR}${PREFIX}/;;}/${egginfo}\" > 2>/dev/null || true" >> ${TMPPLIST}; \ > fi; > . endfor > .else > @${DO_NADA} > .endif > > .if defined(PYDISTUTILS_AUTOPLIST) && defined(USE_PYDISTUTILS) > _RELSITELIBDIR= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} > _RELLIBDIR= ${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} > > 8<------------------ > > fixes the problem, but I am not sure it is the way to go. I may be > missing something here. > > Any help would be greatly appreciated. Can you tell me what you think > about that ? > > Thanks in advance, > Best regards, > > -- > Ganael LAPLANCHE > http://www.martymac.org | http://contribs.martymac.org > FreeBSD: martymac , http://www.FreeBSD.org -- William Grzybowski ------------------------------------------ Curitiba/PR - Brasil