From owner-freebsd-usb@FreeBSD.ORG Wed Apr 18 07:15:17 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4B7C106566C for ; Wed, 18 Apr 2012 07:15:17 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 35E108FC18 for ; Wed, 18 Apr 2012 07:15:17 +0000 (UTC) Received: from [82.113.99.19] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SKP6g-0004nk-LG; Wed, 18 Apr 2012 09:15:15 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3I7FBmD001310; Wed, 18 Apr 2012 09:15:11 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3I7F98U001309; Wed, 18 Apr 2012 09:15:09 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Wed, 18 Apr 2012 09:15:09 +0200 From: Matthias Apitz To: Hans Petter Selasky Message-ID: <20120418071509.GA1296@tiny> References: <20120417100147.GA2557@tiny> <20120417185216.GA1306@tiny> <201204172158.36499.hselasky@c2i.net> <201204172205.43267.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201204172205.43267.hselasky@c2i.net> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.99.19 Cc: Bruce Cran , freebsd-usb@freebsd.org Subject: Re: dfu-util 0.5 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2012 07:15:17 -0000 El día Tuesday, April 17, 2012 a las 10:05:43PM +0200, Hans Petter Selasky escribió: > On Tuesday 17 April 2012 21:58:36 Hans Petter Selasky wrote: > > Hi Matthias, > > > > I reviewed the dfu-util code and there is a bug there with regard to libusb > > usage. > > > > Can you try the attached patch. It fixes a duplicate libusb open bug. > > > > --HPS > > Found a small bug. Try updated patch. > > --HPS Hi, Thanks, but the patch failed in two places: $ rm -rf dfu-util-0.5 $ tar xzf dfu-util-0.5.tar.gz $ cd dfu-util-0.5/src $ patch < ~/dfu-util.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/src/main.c b/src/main.c |index 8986859..46f0e01 100644 |--- a/src/main.c |+++ b/src/main.c -------------------------- Patching file main.c using Plan A... Hunk #1 succeeded at 63. Hunk #2 failed at 76. Hunk #3 failed at 86. Hunk #4 succeeded at 114 (offset -4 lines). Hunk #5 succeeded at 148 (offset -4 lines). Hunk #6 succeeded at 168 (offset -4 lines). Hunk #7 succeeded at 190 (offset -4 lines). Hunk #8 succeeded at 254 (offset -1 lines). Hunk #9 succeeded at 287 (offset -4 lines). Hunk #10 succeeded at 931 (offset -18 lines). 2 out of 10 hunks failed--saving rejects to main.c.rej done was your diff against the original dfu-util-0.5.tar.gz? Thanks matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5