From nobody Sat Aug 5 04:45:39 2023 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 4RHqlf04fjz4pb1n for ; Sat, 5 Aug 2023 04:45:49 +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 4RHqlc61Qzz4RYp for ; Sat, 5 Aug 2023 04:45:48 +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 11F4E38D1D; Sat, 5 Aug 2023 04:45:41 +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 A4BEC6F1DD; Fri, 4 Aug 2023 21:45:40 -0700 (PDT) Message-ID: <68131c37-c72d-6e9e-a2ca-ccb37ee4cdd7@bluerosetech.com> Date: Fri, 4 Aug 2023 21:45:39 -0700 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: flavors and fulfilling pkg deps? Content-Language: en-US To: Ronald Klop , freebsd-ports@freebsd.org References: <128028144.7694.1691175987549@localhost> From: list_freebsd@bluerosetech.com In-Reply-To: <128028144.7694.1691175987549@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4RHqlc61Qzz4RYp X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:2607:f740:c::/48, country:US] On 2023-08-04 12:06, Ronald Klop wrote: > I have port mongodb44. I want to create 2 flavors of it > mongodb44@default and mongodb44@armv80a. Unifi7 depends on > mongodb44(@default). If I install mongodb44@armv80a pkg wants to > uninstall mongodb44 and with it unifi7. > > Can I make the 2 flavors to fulfill the pkg dependency of unifi7? So > that it does not matter for unifi7 which mongodb44 pkg is installed as > long as one of them is. No, the flavor becomes part of the pkgname, so you effectively have two unique pkgs: mongodb44-default and mongodb44-armv80a. Ports and pkg haven't yet been taught to allow multiple pkgnames when solving dependencies. FLAVORs should really be a last-resort option. Can the default vs. armv80a decision instead be done automatically based on the value of ARCH?