Re: How do I depend on a python port without caring about flavor

From: Mel Pilgrim <list_freebsd_at_bluerosetech.com>
Date: Thu, 19 Aug 2021 15:27:51 -0700
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?
Received on Thu Aug 19 2021 - 22:27:51 UTC

Original text of this message