Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2010 01:20:09 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Dmitry Pryanishnikov <lynx.ripe@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Using portmaster with different PYTHON_VERSION
Message-ID:  <AANLkTin4BSdumezq-eUg=kkDT_MDtO%2BGS06YoCXDXft3@mail.gmail.com>
In-Reply-To: <AANLkTi=EeLhd6H5v_oJz3FWuHKrY7P=Acv0jV=doq8jd@mail.gmail.com>
References:  <AANLkTi=EeLhd6H5v_oJz3FWuHKrY7P=Acv0jV=doq8jd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 28, 2010 at 1:30 PM, Dmitry Pryanishnikov
<lynx.ripe@gmail.com> wrote:
> Hello!
>
> =A0I'm trying to install Python additional ports (e.g. www/py-httplib2)
> for different Python versions (2.6 and 3.1) in the same system using
> the portmaster. Those packages (py26-httplib2 vs py31-httplib2) do not
> conflict (they may be used simultaneously, don't overwrite each
> other's files etc.). But they have single origin, which seems to
> confuse the portmaster:
>
> PYTHON_VERSION=3Dpython2.6 portmaster www/py-httplib2
> ...
> =3D=3D=3D>>> Installation of www/py-httplib2 (py26-httplib2-0.6.0) comple=
te
>
> Then
>
> PYTHON_VERSION=3Dpython3.1 portmaster www/py-httplib2
> ...
> =3D=3D=3D>>> Upgrade of py26-httplib2-0.6.0 to py31-httplib2-0.6.0 comple=
te
>
> So portmaster thinks that it's an upgrade, and removes py26-httplib2,
> which is not correct - I want to keep both packages:
>
> py26-httplib2-0.6.0 A comprehensive HTTP client library
> py31-httplib2-0.6.0 A comprehensive HTTP client library
>
> Am I missing some portmaster's tunable, or it just doesn't support
> such ports yet?
>
The simplest way to solve this problem is for you to create a
www/py26-httplib2 port:

md /usr/ports/www/py26-httplib2

then create /usr/ports/www/py26-httplib2/Makefile with these contents:

# Local Ports Makefile for: py26-httplib2

PYTHON_VERSION=3Dpython2.6

MASTERDIR=3D ${.CURDIR}/../py-httplib2

.include "${MASTERDIR}/Makefile"

Finally, deinstall your py26-httplib2 install, and re-install from
www/py26-httplib2.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin4BSdumezq-eUg=kkDT_MDtO%2BGS06YoCXDXft3>