From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 5 20:10:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B94AE106566B for ; Thu, 5 Feb 2009 20:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 93EDE8FC18 for ; Thu, 5 Feb 2009 20:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n15KA1Il022828 for ; Thu, 5 Feb 2009 20:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n15KA1BS022827; Thu, 5 Feb 2009 20:10:01 GMT (envelope-from gnats) Resent-Date: Thu, 5 Feb 2009 20:10:01 GMT Resent-Message-Id: <200902052010.n15KA1BS022827@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bruce Cran Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62A02106566B for ; Thu, 5 Feb 2009 20:03:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 50C6E8FC16 for ; Thu, 5 Feb 2009 20:03:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n15K3SPK014866 for ; Thu, 5 Feb 2009 20:03:28 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n15K3S3Z014865; Thu, 5 Feb 2009 20:03:28 GMT (envelope-from nobody) Message-Id: <200902052003.n15K3S3Z014865@www.freebsd.org> Date: Thu, 5 Feb 2009 20:03:28 GMT From: Bruce Cran To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/131430: [NEW PORT] comms/dfu-util OpenMoko USB Device Firmware Upgrade Utility X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 20:10:02 -0000 >Number: 131430 >Category: ports >Synopsis: [NEW PORT] comms/dfu-util OpenMoko USB Device Firmware Upgrade Utility >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 05 20:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Bruce Cran >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD tau.draftnet 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Feb 5 01:47:59 GMT 2009 brucec@tau.draftnet:/usr/obj/usr/src/sys/HP amd64 >Description: The dfu-util port contains the USB Device Firmware Upgrade program from the OpenMoko project. It currently only works on 8.0-CURRENT with the new USB ("USB2") stack. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # dfu-util # dfu-util/distinfo # dfu-util/pkg-message # dfu-util/pkg-descr # dfu-util/files # dfu-util/files/patch-src-dfu.c # dfu-util/files/patch-src-main.c # dfu-util/files/patch-configure.ac # dfu-util/files/patch-src-commands.h # dfu-util/files/patch-src-dfu.h # dfu-util/files/patch-src-sam7dfu.c # dfu-util/Makefile # echo c - dfu-util mkdir -p dfu-util > /dev/null 2>&1 echo x - dfu-util/distinfo sed 's/^X//' >dfu-util/distinfo << '03334b8ac52fc5211bc2a86ffeb6a935' XMD5 (dfu-util-0.1.snap20090204.tar.gz) = a188876ad7d0de52c805fd807f266c42 XSHA256 (dfu-util-0.1.snap20090204.tar.gz) = c272c55ff3900e35fd4849120a2ef12125ed0a05198c4e348539429ae309f00c XSIZE (dfu-util-0.1.snap20090204.tar.gz) = 21756 03334b8ac52fc5211bc2a86ffeb6a935 echo x - dfu-util/pkg-message sed 's/^X//' >dfu-util/pkg-message << '3dd9fcfcc871f8140fd79c22c3e86793' XNote: dfu-util may not work on the first run, it might be necessary to run it Xtwice before it detects the device correctly. 3dd9fcfcc871f8140fd79c22c3e86793 echo x - dfu-util/pkg-descr sed 's/^X//' >dfu-util/pkg-descr << '39d267b48b97f882d1f1f3d4e56f7782' Xdfu-util is a program that implements the host (PC) side of the USB DFU X(Universal Serial Bus Device Firmware Upgrade) protocol. X XIn the OpenMoko project (for example), this program is used to communicate Xwith the specially enhanced u-boot boot loader, which implements the DFU Xdevice side. X XAuthor: Bruce Cran XWWW: http://wiki.openmoko.org/wiki/Dfu-util 39d267b48b97f882d1f1f3d4e56f7782 echo c - dfu-util/files mkdir -p dfu-util/files > /dev/null 2>&1 echo x - dfu-util/files/patch-src-dfu.c sed 's/^X//' >dfu-util/files/patch-src-dfu.c << 'd85a6b9eb8abf16f00d837c0a08d7dac' X--- src/dfu.c.orig 2007-02-25 15:43:05.000000000 +0000 X+++ src/dfu.c 2009-02-04 22:05:08.000000000 +0000 X@@ -19,7 +19,7 @@ X */ X X #include X-#include X+#include X #include "dfu.h" X X /* DFU commands */ d85a6b9eb8abf16f00d837c0a08d7dac echo x - dfu-util/files/patch-src-main.c sed 's/^X//' >dfu-util/files/patch-src-main.c << '30434a5ab544bd0e33cc568974ae22f4' X--- src/main.c.orig 2008-10-07 18:34:43.000000000 +0100 X+++ src/main.c 2009-02-04 22:09:26.000000000 +0000 X@@ -22,10 +22,12 @@ X */ X X #include X+#include X #include X #include X-#include X+#include X #include X+#include X X #include "dfu.h" X #include "usb_dfu.h" 30434a5ab544bd0e33cc568974ae22f4 echo x - dfu-util/files/patch-configure.ac sed 's/^X//' >dfu-util/files/patch-configure.ac << '6fbef7b4046092c75747cc060b971ad3' X--- configure.ac.orig 2008-10-07 14:14:07.000000000 +0100 X+++ configure.ac 2009-02-04 22:04:02.000000000 +0000 X@@ -15,9 +15,7 @@ X X # Checks for libraries. X X-PKG_CHECK_MODULES(USB, libusb >= 0.1.4,, X- AC_MSG_ERROR([*** Required libusb >= 0.1.4 not installed ***])) X-AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb) X+USB_LIBS=-lusb20 X X LIBS="$LIBS $USB_LIBS" X CFLAGS="$CFLAGS $USB_CFLAGS" 6fbef7b4046092c75747cc060b971ad3 echo x - dfu-util/files/patch-src-commands.h sed 's/^X//' >dfu-util/files/patch-src-commands.h << '20053727483320ce775b2a511820539f' X--- src/commands.h.orig 2007-02-22 21:33:15.000000000 +0000 X+++ src/commands.h 2009-02-04 22:04:41.000000000 +0000 X@@ -21,7 +21,7 @@ X #ifndef __COMMANDS_H__ X #define __COMMANDS_H__ X X-#include X+#include X #include "arguments.h" X X int execute_command( struct usb_dev_handle *device, 20053727483320ce775b2a511820539f echo x - dfu-util/files/patch-src-dfu.h sed 's/^X//' >dfu-util/files/patch-src-dfu.h << 'cb41cc8be7108bede8e782188543d593' X--- src/dfu.h.orig 2007-02-25 15:43:05.000000000 +0000 X+++ src/dfu.h 2009-02-04 22:05:15.000000000 +0000 X@@ -21,7 +21,7 @@ X #ifndef __DFU_H__ X #define __DFU_H__ X X-#include X+#include X #include "usb_dfu.h" X X /* DFU states */ cb41cc8be7108bede8e782188543d593 echo x - dfu-util/files/patch-src-sam7dfu.c sed 's/^X//' >dfu-util/files/patch-src-sam7dfu.c << '5717b7640dc9e9d59b4d6bd22ab61a24' X--- src/sam7dfu.c.orig 2008-10-07 18:42:36.000000000 +0100 X+++ src/sam7dfu.c 2009-02-04 22:04:56.000000000 +0000 X@@ -11,7 +11,8 @@ X #include X #include X #include X-#include X+#include X+#include X X #include "config.h" X #include "dfu.h" 5717b7640dc9e9d59b4d6bd22ab61a24 echo x - dfu-util/Makefile sed 's/^X//' >dfu-util/Makefile << '9fcb71f76eb865369e08707a885dc538' X# New ports collection makefile for: dfu-util X# Date created: 2008-02-04 X# Whom: Bruce Cran X# X# $FreeBSD$ X# X XPORTNAME= dfu-util XDISTVERSION= 0.1.snap${SNAPDATE} XCATEGORIES= comms XMASTER_SITES= http://www.cran.org.uk/~brucec/software/ X XMAINTAINER= bruce@cran.org.uk XCOMMENT= Device firmware update (DFU) USB programmer X XMAN1= dfu-util.1 XPLIST_FILES= bin/dfu-util XUSE_AUTOTOOLS= aclocal:19 automake:19 autoheader:262 XAUTOMAKE_ARGS= --add-missing --foreign --copy X XSNAPDATE= 20090204 XGNU_CONFIGURE= yes X X.include X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/src/dfu-util ${PREFIX}/bin X ${INSTALL_MAN} ${WRKSRC}/doc/dfu-util.1 ${MAN1PREFIX}/man/man1 X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 9fcb71f76eb865369e08707a885dc538 exit >Release-Note: >Audit-Trail: >Unformatted: