From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Thu, 2 Jan 2020 12:53:36 +0100 From: Roland Hieber Message-ID: <20200102115336.qk5trtwu3zaz5wb4@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] How to express a dependency that can be satisfied by alternative packages List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: Guillermo Rodriguez Garcia Cc: ptxdist@pengutronix.de On Mon, Dec 16, 2019 at 07:23:13PM +0100, Guillermo Rodriguez Garcia wrote: > Hi all, > > Let's say I have a package that requires a specific cmd line utility > (e.g. openvt). > This can be provided by two different packages (e.g. busybox or kbd) > How to express that dependency in the .in file of my package ? PTXdist (or rather kconfig) does not have a notion of "provides" or metapackages. I think is currently no way other than making a choice option that selects the one or the other, or letting your config option deoend on BUSYBOX_OPENVT || KBD_OPENVT. In the latter case it is probably good to add a comment above it that depends on the opposite value notifying the user that neither one of them is selected (see the comment above IPTABLES_INSTALL_IPTABLES_APPLY in iptables.in for example). - Roland -- Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de