Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2017 16:28:45 +0100
From:      Stefan Esser <se@freebsd.org>
To:        RW <rwmaillists@googlemail.com>, ports@freebsd.org
Subject:   Re: Flavor part of package origin?
Message-ID:  <d685c8ec-b138-8535-3cf6-46531df995ac@freebsd.org>
In-Reply-To: <20171211151037.0d2d4d62@gumby.homeunix.com>
References:  <slrnp2r220.209s.naddy@lorvorc.mips.inka.de> <20171210202059.GX2827@home.opsec.eu> <ba865268-dba2-1cf0-9233-75e817b7dc7f@freebsd.org> <fddefb4f-5b6d-46b2-824e-744cbfbc8af0@FreeBSD.org> <20171211151037.0d2d4d62@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 11.12.17 um 16:10 schrieb RW via freebsd-ports:
> On Mon, 11 Dec 2017 14:38:59 +0100
> Mathieu Arnold wrote:
> 
>> Le 11/12/2017 à 10:12, Stefan Esser a écrit :
>>> $ pkg info -o '*setuptools*'
>>> py27-setuptools-36.5.0         devel/py-setuptools@py27
>>> py36-setuptools-36.5.0         devel/py-setuptools@py36  
>>
>>
>> I really do not like the look of this. The origin always has been a
>> directory name, with this change, it would become some abstract thing.

The origin is used by tools to identify the location in the ports tree that
allows to build a package. With FLAVOR support, knowing the directory is
insufficient to build a package - for that reason the @FLAVOR notation has
been used in a few places already, e.g. in the MOVED file and for dependency
declarations.

> It's not all that abstract if you can simply strip the end part off. 

The directory is /usr/ports/${origin%@*} in that case, and this stripping of
the FLAVOR is already required and used in e.g. bsd.ports.mk.

With origin@flavor, there is an alternate identifier that is equivalent to
the PKGNAME, and this information is used in port management tools, e.g.
when a port is to be rebuilt for a given PKGNAME.

Regards, STefan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d685c8ec-b138-8535-3cf6-46531df995ac>