From owner-freebsd-ports@freebsd.org Mon Dec 11 09:13:03 2017 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 E5279E8B4BB for ; Mon, 11 Dec 2017 09:13:03 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout12.t-online.de (mailout12.t-online.de [194.25.134.22]) (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 AB14878ECB for ; Mon, 11 Dec 2017 09:13:03 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd34.aul.t-online.de (fwd34.aul.t-online.de [172.20.26.145]) by mailout12.t-online.de (Postfix) with SMTP id ED92641D5CE7; Mon, 11 Dec 2017 10:12:54 +0100 (CET) Received: from Stefans-MBP-2.fritz.box (S+SbHyZpYh522gU-kluRpjreH8dG5Gu2nJWJHRL05fa0Jrwa6Dykd+FuBnuOhQKQok@[87.151.220.147]) by fwd34.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eOK8m-1FNtKq0; Mon, 11 Dec 2017 10:12:48 +0100 Subject: Re: Flavor part of package origin? To: Kurt Jaeger , Christian Weisgerber Cc: freebsd-ports@freebsd.org References: <20171210202059.GX2827@home.opsec.eu> From: Stefan Esser Message-ID: Date: Mon, 11 Dec 2017 10:12:48 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171210202059.GX2827@home.opsec.eu> Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ID: S+SbHyZpYh522gU-kluRpjreH8dG5Gu2nJWJHRL05fa0Jrwa6Dykd+FuBnuOhQKQok X-TOI-MSGID: cc64b4ef-f959-4b03-a4f0-c71dce7f6e2f 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: Mon, 11 Dec 2017 09:13:04 -0000 Am 10.12.17 um 21:20 schrieb Kurt Jaeger: > Hi! > >> Shouldn't the FLAVOR be part of the package origin? >> >> $ pkg info -o '*setuptools*' >> py27-setuptools-36.5.0 devel/py-setuptools >> py36-setuptools-36.5.0 devel/py-setuptools > > Yes, but it seems this works: > > $ pkg info -o '*setuptools*' > py27-setuptools-36.5.0 devel/py27-setuptools > py34-setuptools-36.5.0 devel/py34-setuptools > py35-setuptools-36.5.0 devel/py35-setuptools > py36-setuptools-36.5.0 devel/py36-setuptools > > with pkg 1.10.99.5 But that output is wrong for a system with ports built after FLAVOR support has been activated. I have already asked portmgr, whether it might be possible, to consider the flavor as a required part of the origin. That should lead to the following output for the first command example: $ pkg info -o '*setuptools*' py27-setuptools-36.5.0 devel/py-setuptools@py27 py36-setuptools-36.5.0 devel/py-setuptools@py36 I'd also like to have a make target "list-pkgname-flavors", which should provide somewhat similar output when run in a port directory: $ cd /usr/ports/devel/py-setuptools $ make list-pkgname-flavors py27-setuptools-36.5.0 py27 py36-setuptools-36.5.0 py36 The purpose is to easily identify the FLAVOR to be passed when building some package with a known name and is the counterpart to querying the FLAVOR of a package from the pkg DB. Regards, STefan