From owner-freebsd-ports@freebsd.org Wed Jan 10 20:59:29 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF32DE76941 for ; Wed, 10 Jan 2018 20:59:29 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 857056C3ED; Wed, 10 Jan 2018 20:59:29 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd17.aul.t-online.de (fwd17.aul.t-online.de [172.20.27.64]) by mailout03.t-online.de (Postfix) with SMTP id CC4064271C8B; Wed, 10 Jan 2018 21:59:20 +0100 (CET) Received: from Stefans-MBP.fritz.box (V+UQroZrwhfUoOenvdjQoJ1SVm49F00EdTq5721fVeS+QORjJM6QGTUQ9Nk3vesgGq@[87.151.219.126]) by fwd17.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eZNSy-1HMX9E0; Wed, 10 Jan 2018 21:59:20 +0100 Subject: Re: Why portmaster try to install python 3.6 when I have 3.4 set in /etc/make.conf? From: Stefan Esser To: lev@FreeBSD.org, freebsd-ports@freebsd.org References: <55707b9f-3d02-2982-2aa8-3570724608ac@FreeBSD.org> Message-ID: Date: Wed, 10 Jan 2018 21:59:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-ID: V+UQroZrwhfUoOenvdjQoJ1SVm49F00EdTq5721fVeS+QORjJM6QGTUQ9Nk3vesgGq X-TOI-MSGID: ff92075d-640a-4223-8796-29eddfa73e51 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 20:59:29 -0000 Am 10.01.18 um 21:30 schrieb Stefan Esser: > Am 10.01.18 um 17:29 schrieb Lev Serebryakov: >> I have system with pre-FLAVORed ports installed, and try to update >> ports with new version of "portmaster". My "/etc/make.conf" contains: >> >> DEFAULT_VERSIONS+= python2=2.7 >> DEFAULT_VERSIONS+= python3=3.4 >> DEFAULT_VERSIONS+= python=3.4 >> >> But "portmaster -a" try to install python 3.6: >> >> ===>>> All >> py34-pip-9.0.1 (12/12) >> ===>>> The devel/py3-pip port moved to devel/py-pip@py36 >> ===>>> Reason: Moved to a flavored, generic, version >> [...] >> ===>>> All >> py34-pip-9.0.1 >> devel/py-setuptools@py36 >> >> lang/python36 (14/14) > > Another example that the FLAVOR feature is not well designed :( > > The entry in /usr/ports/MOVED maps devel/py3-pip to devel/py-pip@py36 > even though building that port with FLAVOR=py34 builds the correct > version with the expected dependency on Python-3.4. > > If at least the output of "make pretty-flavors-package-names" did hint > at the existence of a package for FLAVOR=py34, I could make portmaster > override the wrong FLAVOR obtained from the MOVED file. > > But the output of that command is: > > $ cd /usr/ports/devel/py-py > $ make pretty-flavors-package-names > py27: py27-py-1.5.2 > py36: py36-py-1.5.2 I have just checked, that the ports infrastructure already kind of supports this case. With PYTHON3_DEFAULT=3.4 set in /etc/make.conf, it is possible to determine the flavor that corresponds to the package to be upgraded: $ PYTHON3_DEFAULT=3.4 make pretty-flavors-package-names py27: py27-py-1.5.2 py34: py34-py-1.5.2 I'll try to get this feature implemented in portmaster, but it may take a few days ... Regards, STefan