From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bk0-x235.google.com ([2a00:1450:4008:c01::235]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WTTMl-0003Vp-Ug for ptxdist@pengutronix.de; Fri, 28 Mar 2014 10:46:43 +0100 Received: by mail-bk0-f53.google.com with SMTP id r7so869441bkg.26 for ; Fri, 28 Mar 2014 02:46:18 -0700 (PDT) Received: from omega.Speedport_W_921V_1_24_000 (p4FD334D9.dip0.t-ipconnect.de. [79.211.52.217]) by mx.google.com with ESMTPSA id b2sm2434541bkp.10.2014.03.28.02.46.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Mar 2014 02:46:17 -0700 (PDT) Date: Fri, 28 Mar 2014 10:46:12 +0100 From: Alexander Aring Message-ID: <20140328094610.GA21559@omega.Speedport_W_921V_1_24_000> References: <533520E5.7040700@mwlaser.de> <20140328074139.GA11168@omega.Speedport_W_921V_1_24_000> <53352BF5.5090707@mwlaser.de> <20140328080437.GA11726@omega.Speedport_W_921V_1_24_000> <53354118.3090500@mwlaser.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <53354118.3090500@mwlaser.de> Subject: Re: [ptxdist] Update libusb-1.0 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 On Fri, Mar 28, 2014 at 10:30:00AM +0100, Martin Lammers wrote: > Am 28.03.2014 09:04, schrieb Alexander Aring: > >On Fri, Mar 28, 2014 at 08:59:49AM +0100, Martin Lammers wrote: > >>Hi Alex, > >> > >>thanks for the fast response. We want to use libusbx version 1.0.18. > >> > >Then you need to write a new port of it. Look for the documentation at > >[0], "4.2.1 Rule File Creation". Send the new rules added to ptxdist > >with git send-email as patches, then we can talk about the new port and > >hopefully get the libusbx mainline to ptxdist so other can use it also. > > > >I don't have time right now to do the port myself, sorry. > > > >- Alex > > > >[0] http://www.ptxdist.org/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf > > > Hi Alex, > thanks for the information. On the ptxdist the version of libusb.org have > the name libusb-1.x. When it build the name of the library file like > libusb-1.0.a .la. name the library LIBUSBX_... > Now i want to create a new rule file for the libusbx versions witch had the > same library name like libusb-1.0.a .la. > It is necessary to block the two versions each other ? > Yes. LIBUSB should have depends on !LIBUSBX and LIBUSBX should have depends on !LIBUSB. Maybe there exists a better solution, I don't look much more into that. > Now we had to check, if we get any problems with the update, because the > libusb is used by some phytec tools. This would end in problems yea, but then you need to change the dependency of these tools to "select LIBUSBX". You don't should do that, because these tools was developed for LIBUSB and not LIBUSBX. You can't have LIBUSB and LIBUSBX installed, but maybe it's easy to port it look at [0] in About. "As far as the library binary and header are concerned, since libusb and libusbx use the same names and have the same API, you just need to replace your deployed libusbx files with the libusb ones. That's all!" This makes all things much difficult... maybe we make a config option to LIBUSB to decide if you want to have libusb or libusbx and change the actually libusb rules. But this sounds like an hack, which remember me about the gnu- and bsd-netcat rules. Another option would be to drop libusb support and add libusbx support. But this is a question which should answer by the ptxdist maintainer Michael Olbrich. My opinion is that when all others distribution uses libusbx and not libusb then we should also drop the libusb support and add libusbx for that instead. But remember what I already said, the "phytec tools" was developed for your libusb and to the libusb version which is shipped out with your BSP, you can maybe run into trouble with that and I don't want to make the phytec people angry. - Alex [0] http://libusbx.org/ -- ptxdist mailing list ptxdist@pengutronix.de