Date: Fri, 20 Nov 2015 09:16:09 +1100 From: Kubilay Kocak <koobs@FreeBSD.org> To: Jan Beich <jbeich@vfemail.net>, Muhammad Moinur Rahman <bofh@FreeBSD.org> Cc: "svn-ports-head@freebsd.org" <svn-ports-head@freebsd.org>, "svn-ports-all@freebsd.org" <svn-ports-all@freebsd.org>, "ports-committers@freebsd.org" <ports-committers@freebsd.org> Subject: Re: svn commit: r401923 - in head/devel: . py-pytz py-pytz3 Message-ID: <564E4A29.1080200@FreeBSD.org> In-Reply-To: <y4dt-52uh-wny@vfemail.net> References: <201511190954.tAJ9seJB090415@repo.freebsd.org> <564D9D9C.6080703@FreeBSD.org> <CA%2BnPUkzTzLgrjeiQUdDcC0kfFxfFB0HDLmBywmbM874Nqk___A@mail.gmail.com> <564DA3A4.60106@FreeBSD.org> <CA%2BnPUkwJm5Vh-sv=t5OEhWQyrgmoRwR-_nKYbdzPJu9SHmomqw@mail.gmail.com> <y4dt-52uh-wny@vfemail.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20/11/2015 4:13 AM, Jan Beich wrote: > Muhammad Moinur Rahman <bofh@FreeBSD.org> writes: > >> On Thu, Nov 19, 2015 at 4:25 PM, Kubilay Kocak <koobs@freebsd.org> wrote: >> >>> On 19/11/2015 9:08 PM, Muhammad Moinur Rahman wrote: >>>> In bsd.default-versions.mk <http://bsd.default-versions.mk> >>>> PYTHON_DEFAULT=2.7 Whereas I need one from version 3 hence I have used >>>> PYTHON3_DEFAULT=3.4. Advice please ? >>>> >>>> On Thu, Nov 19, 2015 at 3:59 PM, Kubilay Kocak <koobs@freebsd.org >>>> <mailto:koobs@freebsd.org>> wrote: >>>> >>>> On 19/11/2015 8:54 PM, Muhammad Moinur Rahman wrote: >>>> > +PYTHON_VERSION= python${PYTHON3_DEFAULT} >>>> >>>> This should probably be a different PYTHON_* variable too. >>>> >>>> The mechanism in bsd.default-versions.mk >>>> <http://bsd.default-versions.mk> ends up setting the correct >>>> "PYTHON_VERSION" variable (I believe, please check), which should be >>>> used instead. >>>> >>>> >>> >>> I believe USES=python:3 is the way it's already being done: >>> >>> >>> https://svnweb.freebsd.org/ports/head/audio/py3-pylast/Makefile?revision=376731&view=markup#l17 >>> >>> https://svnweb.freebsd.org/ports/head/accessibility/py3-atspi/Makefile?revision=401900&view=markup#l20 >>> >>> https://svnweb.freebsd.org/ports/head/multimedia/py3-gstreamer1/Makefile?revision=397984&view=markup#l20 >>> >>> https://svnweb.freebsd.org/ports/head/textproc/py3-libxml2/Makefile?revision=391332&view=markup#l19 >>> >>> Don't forget to rename :) >> >> I believe in that case I cannot use SLAVE port anymore and I should move to >> an individual port. > > koobs' examples aren't very convincing. For py2 vs. py3 it could be: In a better world, we won't need py3-* versions of ports. > # py-foo, master > USES?= python > USES+= tar:bzip2 > USE_PYTHON= py3kplist > > # py3-foo, slave > USES= python:3 > > # py2-foo, slave (when python3 by default) > USES= python:2 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?564E4A29.1080200>