Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2022 03:19:35 -0800
From:      Mel Pilgrim <list_freebsd@bluerosetech.com>
To:        Tatsuki Makino <tatsuki_makino@hotmail.com>, freebsd-ports@freebsd.org
Subject:   Re: How do I depend on a port regardless of its flavor?
Message-ID:  <d3a21652-a5a7-3070-f1bd-71ed0f66a70b@bluerosetech.com>
In-Reply-To: <PSAPR03MB5639020EA8667DE9B8749FA9FAE79@PSAPR03MB5639.apcprd03.prod.outlook.com>
References:  <ab508f51-3bff-e9e0-9965-3bf29fbaa957@bluerosetech.com> <PSAPR03MB5639635D6DA2E2981C55BE98FAE09@PSAPR03MB5639.apcprd03.prod.outlook.com> <93d4c94a-c8dd-f4e6-b910-619f07e61ae2@bluerosetech.com> <PSAPR03MB5639020EA8667DE9B8749FA9FAE79@PSAPR03MB5639.apcprd03.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-12-16 16:03, Tatsuki Makino wrote:
> Mel Pilgrim wrote on 2022/12/17 06:49:
>> I'm asking because, given this problem was created by the FLAVORS 
>> implementation modifying pkgname, it must be just a matter of 
>> outdated documentation that the Porter's Handbook doesn't say how 
>> to handle this case.
> 
> is there any way to know the FLAVOR of postfix or other
> pre-installed stuff?

No, that's the point I've been getting at: it needs to work regardless 
of the flavor installed.

[Makefile example snipped]
> If that fails, it need to use other methods. Using the same flavors
> as postfix, OPTIONS to choose postfix flavor or split into m@ster and
> sl@ve...

No, that is making it flavor-specific.  It just changes the dependency 
to whatever is installed at build time, not creating a dependency that 
will work with an as-yet-unknown flavour.

We appear to be miscommunicating about this.  The port that depends on 
the flavoured post cannot know ANYTHING about which flavor is or will be 
installed.  Not only is that knowledge is entirely outside the port's 
baliwick, it isn't even knowable yet.  The user needs to be able to swap 
out the flavor at will via pkgs and still have this dependency work 
without manual intervention.

I'm not sure how else to phrase this, so if this still isn't clear 
please do say so.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d3a21652-a5a7-3070-f1bd-71ed0f66a70b>