Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 2021 15:27:51 -0700
From:      Mel Pilgrim <list_freebsd@bluerosetech.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: How do I depend on a python port without caring about flavor
Message-ID:  <187d5043-13ba-d845-b324-9bd49aefef9d@bluerosetech.com>
In-Reply-To: <891c5f92-0859-dafc-3356-2d2a08fcfc3c@bluerosetech.com>
References:  <891c5f92-0859-dafc-3356-2d2a08fcfc3c@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-08-19 0:28, Mel Pilgrim wrote:
> I need to add a dependency to a port, but the dependency uses python. My 
> port doesn't use python itself, it just needs a python-using pkg 
> installed.  But when I try to depend on that package with a line like this:
> 
> RUN_DEPENDS+= py-certbot>=0:security/py-certbot
> 
> I get a poudriere error like this:
> 
> Error: local/basecfg dependency on security/py-certbot has wrong PKGNAME 
> of 'py-certbot' but should be 'py38-certbot'

Also, I would point out that this error indicates something was able to 
figure out the correct PKGNAME based on the default flavour.  Since it 
can do that, why not have ports automatically choose the default flavour 
when a port lists an unflavoured dependency on a flavoured port?

Is there a technical reason to not assume the default flavour if one 
isn't specified?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?187d5043-13ba-d845-b324-9bd49aefef9d>