From nobody Sat Dec 17 11:19:35 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZ3Qg6s8Xzt6Sq for ; Sat, 17 Dec 2022 11:19:39 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from echo.brtsvcs.net (echo.brtsvcs.net [IPv6:2607:f740:c::4ae]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZ3Qg4DvJz4Sm1 for ; Sat, 17 Dec 2022 11:19:39 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Authentication-Results: mx1.freebsd.org; none Received: from chombo.houseloki.net (65-100-43-2.dia.static.qwest.net [65.100.43.2]) by echo.brtsvcs.net (Postfix) with ESMTPS id 5545438D2C; Sat, 17 Dec 2022 11:19:37 +0000 (UTC) Received: from [10.26.25.100] (ivy.pas.ds.pilgrimaccounting.com [10.26.25.100]) by chombo.houseloki.net (Postfix) with ESMTPSA id E840F312FB; Sat, 17 Dec 2022 03:19:36 -0800 (PST) Subject: Re: How do I depend on a port regardless of its flavor? To: Tatsuki Makino , freebsd-ports@freebsd.org References: <93d4c94a-c8dd-f4e6-b910-619f07e61ae2@bluerosetech.com> From: Mel Pilgrim Message-ID: Date: Sat, 17 Dec 2022 03:19:35 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4NZ3Qg4DvJz4Sm1 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:2607:f740:c::/48, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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.