From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RuUjw-0003OV-BC for ptxdist@pengutronix.de; Mon, 06 Feb 2012 21:00:40 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1RuUjw-0003aY-AA for ptxdist@pengutronix.de; Mon, 06 Feb 2012 21:00:40 +0100 Date: Mon, 6 Feb 2012 21:00:40 +0100 From: Michael Olbrich Message-ID: <20120206200040.GC32645@pengutronix.de> References: <4F2F0022.2090104@erwinrol.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4F2F0022.2090104@erwinrol.com> Subject: Re: [ptxdist] How to deal with "alternatives" Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Sun, Feb 05, 2012 at 11:18:10PM +0100, Erwin Rol wrote: > I was wondering how I can deal with "alternatives" packages? > I have a nVidia BLOB driver for Tegra 2 OpenGL ES. That drivers > brings the OpenGL libs that are needed by 3d programs. But those > programs all "select" MESALIB which brings the opensource OpenGL > libraries. > > So how can I deal with two (or more) packages that offer feature XYZ > that is needed by other packages? There is no generic solution for this. In your case I'd suggest a dummy mesalib package, that redirects the dependency to your OpenGL package: A makefile with just "PACKAGES-$(PTXCONF_MESALIB) += mesalib" and an in-file that selects your package. However, this won't generate any ipkg dependencies. A solution for this is on the todo list, but so far not implemented. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de