Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2022 12:34:01 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        Mel Pilgrim <list_freebsd@bluerosetech.com>, freebsd-ports@freebsd.org
Subject:   Re: How do I depend on a port regardless of its flavor?
Message-ID:  <PSAPR03MB5639635D6DA2E2981C55BE98FAE09@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <ab508f51-3bff-e9e0-9965-3bf29fbaa957@bluerosetech.com>
References:  <ab508f51-3bff-e9e0-9965-3bf29fbaa957@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

Mel Pilgrim wrote on 2022/12/12 02:52:
> But I need to also specify a version spec.  However, if I do this:
> RUN_DEPENDS= foo>=1.2:devel/foo
> That only works if the default flavor is installed.  If one of the non-default flavors is installed, the Ports System doesn't find it and tries to build the port.  Similarly, pkg thinks I need to install the default flavor.
> The flavors aren't part of a framework like Python, so I don't have a set of variables I can use to construct a universal pkg name.
> How do I add a version-limited dependency on a flavored port?

Is this simply about the following?

RUN_DEPENDS= foo>=1.2:devel/foo@nondefaultflavor

The majority of the Python module is like this.

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}foo>0:category/py-foo@${PY_FLAVOR}

PYTHON_PKGNAMEPREFIX is linked to PY_FLAVOR.

It seems that python basically guarantees that only the default FLAVOR is used, so it does not cause problems, but there are some FLAVORs that cause problems.
For example, if your port has:

RUN_DEPENDS= foo>=1.2:devel/foo \
             llvm-devel-lite>0:devel/llvm-devel@lite

And, devel/foo has:
RUN_DEPENDS= llvm-devel>0:devel/llvm-devel@default

Since llvm-devel and llvm-devel-lite are CONFLICTS_INSTALL, they are not considered to work well.
So I dislike non-python FLAVOR :) and I believe that if FLAVORS is to be used, a dynamic method like python should be implemented.

Regards.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAPR03MB5639635D6DA2E2981C55BE98FAE09>