Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2018 23:08:54 +0800
From:      Ben Woods <woodsb02@gmail.com>
To:        Mathieu Arnold <mat@freebsd.org>
Cc:        =?UTF-8?B?UGF3ZcWCIFDEmWthbGE=?= <pawel@freebsd.org>,  "ports-committers@FreeBSD.org" <ports-committers@freebsd.org>, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r458161 - head/textproc/meld
Message-ID:  <CAOc73CAevX0GR2rZunt6KReTLfogttV2yH1U2D9JYuMntRHsgQ@mail.gmail.com>
In-Reply-To: <d08f1451-9fad-23db-1fe5-30515614bb5b@FreeBSD.org>
References:  <201801051817.w05IHfJY013765@repo.freebsd.org> <CAOc73CC3ukRqG9uccirfGQzvScYSDGuyaR11cRrTVuM_WGPVzA@mail.gmail.com> <20180108000931.44eb67e1@FreeBSD.org> <CAOc73CDbEac8JMDhJF1VnuzmGW8hBqJ9_vqybegqjffXhK_a3Q@mail.gmail.com> <07138fee-8470-9d43-7a6a-6b77e0a0b163@FreeBSD.org> <CAOc73CC%2BX3e3ikjqq%2BZceKvpLtb6MnRAK8M6-twtTy2CEkeMvQ@mail.gmail.com> <d08f1451-9fad-23db-1fe5-30515614bb5b@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9 January 2018 at 21:48, Mathieu Arnold <mat@freebsd.org> wrote:

> Le 09/01/2018 =C3=A0 14:07, Ben Woods a =C3=A9crit :
> > On 8 January 2018 at 23:02, Mathieu Arnold <mat@freebsd.org
> > <mailto:mat@freebsd.org>> wrote:
> >
> >     Also, flavors only build py27 and py36 flavors anyway. (Unless you
> >     have
> >     BUILD_ALL_PYTHON_FLAVORS defined, in which case it will build every
> >     version available.)
> >
> >
> >
> > Thanks for the clarification - I understand now. Even with flavors,
> > the official FreeBSD pkg repo is only providing pre-built packages for
> > 2 python flavors - the default python2 and the default python3.
> >
> > Given that meld only supports python 3, there is no point in the meld
> > port using python flavors.
>
> It's not really the point you should get from this.
>
> Basically, the rule is this:
>
> A Python application (that is, something that some other thing runs
> directly, but will never import with python) MAY have flavors but it is
> OPTIONAL, because as long as the script runs, nobody really cares about
> what Python version is used to make it run.
> A Python library (so, something that other stuff will import, which may
> contain scripts) MUST have flavors because something else can depend on i=
t.
>
> For example, if a library works with Python 3.4+ then it MUST have
> flavors, because someone (like me) may have defined
> BUILD_ALL_PYTHON_FLAVORS because of some of their customers needs, and
> will need to have that library for, say, Python 3.5. The fact that the
> package builders only build the Python 3.6 version is irrelevant.
>
> --
> Mathieu Arnold
>


Yes, understood.

My initial confusion came from the fact that I thought
BUILD_ALL_PYTHON_FLAVORS was the default behaviour, and therefore users
could choose which version of python3 to install from the default FreeBSD
package repo.
If that was the case, but installing meld brought in python36 as a
dependency, then that would be sub-optimal.

But my assumption was wrong - BUILD_ALL_PYTHON_FLAVORS is not the default
behaviour, and the only python3 package therefore provided by the default
FreeBSD package repo is python36.
End users cannot opt to use a different version of python3 without
rebuilding their own packages.

I realise this is a different point to yours, but it was the original
reason for my question.

Regards,
Ben

--
From: Benjamin Woods
woodsb02@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CAevX0GR2rZunt6KReTLfogttV2yH1U2D9JYuMntRHsgQ>