Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2012 19:44:33 +0100
From:      Chris Rees <utisoft@gmail.com>
To:        Li-Wen Hsu <lwhsu@freebsd.org>
Cc:        Dmitry Sivachenko <demon@freebsd.org>, python@freebsd.org, Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Subject:   Re: bin/python3 symlink for python3X ports
Message-ID:  <CADLo83-YjPfDQ8BQSFB34g1WdDOuJVZyWihaM%2BwjotmVPeFn3g@mail.gmail.com>
In-Reply-To: <20121001173946.GB4939@FreeBSD.cs.nctu.edu.tw>
References:  <5062AAEA.4000401@FreeBSD.org> <CADLo838ZysqxVHPuj6_M223ohanPWRoqc2mwePNeBYbGa2OfRQ@mail.gmail.com> <5062C5CB.4060109@yandex.ru> <5062C769.6090305@FreeBSD.org> <5062C8CE.701@yandex.ru> <5062E478.8020000@FreeBSD.org> <CAKBkRUxThcF3amNLBazkkdd2s9ce73u_J=q3o2EvpyLhL4GnfQ@mail.gmail.com> <506436DB.90408@FreeBSD.org> <20121001173946.GB4939@FreeBSD.cs.nctu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1 October 2012 18:39, Li-Wen Hsu <lwhsu@freebsd.org> wrote:
> On Thu, Sep 27, 2012 at 15:22:03 +0400, Dmitry Sivachenko wrote:
>> On 26.09.2012 17:00, Li-Wen Hsu wrote:
>> >
>> > I think this patch is good.  And I am thinking about also modifying
>> > other lang/python{2,3}X ports, thus we may need to beware of
>> > confliction on bin/python{2,3} between lang/python2X or lang/python3X
>> > ports.  It is not so common but still possible to have more then one
>> > lang/python2X or lang/python3X ports installed.  Maybe we can use the
>> > same logic of bin/python installation (first wins).
>> >
>>
>> I beleive that the vast majority of python[23] users will be fine with the
>> latest version of the relevant branch.
>> Considered that and also not to over complicate things I propose to make
>> python2/python3 symlink only for the latest version: python2 -> python2.7
>> and python3 -> python3.2 for now.
>>
>> And leave python31, python25, python26 untouched.  Users who really need older
>> versions of python should explicitly require python version during startup.
>>
>> If it is OK for you, I can work out the final patch.
>
> I think it's OK, and one more this might be helpful in the future is
> adding a condition like:
>
> .if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
>
> then install the symlink.
>

Yes.  It means that a deliberate decision by the user has been made
that that particular version is there.

However, it is still possible to have the "first installed wins" logic
using a pkg-install script instead of in the Makefile, this would
solve the package problems.  Are you interested if I were to implement
that?

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83-YjPfDQ8BQSFB34g1WdDOuJVZyWihaM%2BwjotmVPeFn3g>