From owner-freebsd-ports@freebsd.org Tue May 15 08:29:44 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7333BEE8D64 for ; Tue, 15 May 2018 08:29:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 098796821E for ; Tue, 15 May 2018 08:29:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.202.132.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 01F338941 for ; Tue, 15 May 2018 08:29:41 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/01F338941; dkim=none; dkim-atps=neutral Subject: Re: sysutils/ansible and FLAVOR (Python 3.6 support) To: freebsd-ports@freebsd.org References: <20180515150248.63b852a6@gmail.com> From: Matthew Seaman Message-ID: <88740074-42f3-436b-eb2b-a59bb1def5f9@FreeBSD.org> Date: Tue, 15 May 2018 09:29:35 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180515150248.63b852a6@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 08:29:44 -0000 On 15/05/2018 08:02, Christopher Hall wrote: > Hello everyone, > > I am looking at which is the best way to modify the sysutils/ansible > port so that it will use Python3.6. Currently it has the "noflavors" > option in the USE_PYTHON line son only a single packages with > Python2.7 exists in the pkg repo. > > > Should it be renamed to sysutils/py-ansible and "noflavors" removed? > To produce both py27-ansible and py36-ansible packages in repo, > allowing a choice of Python version > > Alternatively, is it better to keep the name as sysutils/ansible and > just change the "USES=python" to "USES=python:3.6+". However this would > make it a Python3 only package. > > Any suggestions as to which approach would be preferable? > Having python-3.6 versions of ansible avaialbe in the default package repos is a good idea -- it's already easy enough to build-you-own ansible packages against python-3.6 and that works fine. It's also fine to use that python-3.6-ized ansible against a host with only python-2.7 installed. Take a look at eg. the databases/phpmyadmin port for an example of a flavoured port that doesn't have a language dependent (in this case php-) prefix. Just add PKGNAMESUFFIX and take away the noflavors from USES, plus add flavour markers to any dependencies that need them. You'll end up with packages called ansible-py27 and ansible-py36. Cheers, Matthew