summaryrefslogtreecommitdiff
path: root/devel/libusb
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-10-11 18:25:19 +0000
committerdrochner <drochner@pkgsrc.org>2007-10-11 18:25:19 +0000
commit1c43755fc3c3379b2dfda8ec4161a2d83eb74000 (patch)
tree5b3da74bb101c7f4aab3986ed83de740cfbaa869 /devel/libusb
parent7e197cadae1ab82b96b8a45e5507c47aa05fec7c (diff)
downloadpkgsrc-1c43755fc3c3379b2dfda8ec4161a2d83eb74000.tar.gz
Make usb_control_msg() return the number of bytes actually transferred
rather than the requested transfer length (USBD_SHORT_XFER_OK is set, so this may happen). This is the documented behaviour, and it is appearently what the Linux version does. Bump PKGREVISION. From Erik Berls per PR pkg/37053.
Diffstat (limited to 'devel/libusb')
-rw-r--r--devel/libusb/Makefile4
-rw-r--r--devel/libusb/distinfo4
-rw-r--r--devel/libusb/patches/patch-ad13
3 files changed, 15 insertions, 6 deletions
diff --git a/devel/libusb/Makefile b/devel/libusb/Makefile
index 4ccc9841dbc..e147b26acab 100644
--- a/devel/libusb/Makefile
+++ b/devel/libusb/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2006/05/26 10:06:13 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2007/10/11 18:25:19 drochner Exp $
DISTNAME= libusb-0.1.12
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libusb/}
diff --git a/devel/libusb/distinfo b/devel/libusb/distinfo
index 477817f9235..118f8179eb0 100644
--- a/devel/libusb/distinfo
+++ b/devel/libusb/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2006/05/26 10:06:13 joerg Exp $
+$NetBSD: distinfo,v 1.19 2007/10/11 18:25:19 drochner Exp $
SHA1 (libusb-0.1.12.tar.gz) = 599a5168590f66bc6f1f9a299579fd8500614807
RMD160 (libusb-0.1.12.tar.gz) = 63848df717e00fff67ab30ba86a85466370d4e8e
@@ -6,5 +6,5 @@ Size (libusb-0.1.12.tar.gz) = 389343 bytes
SHA1 (patch-aa) = 1da6c46e8b41d7846032922bbef8a0b5eb1ae68b
SHA1 (patch-ab) = bc4756536ce7b2cc49d0c7c48c249f146f185839
SHA1 (patch-ac) = cc92318e0979779f6ef03ee653bc94ee2b96a055
-SHA1 (patch-ad) = 56a4beb9047f4e1e3e098d2b9aa2c7d0ece34045
+SHA1 (patch-ad) = f81135a5f92bf0c2e1ca921368bd39482bd3b580
SHA1 (patch-ae) = 49a01ebe66de4965f3611cf42db09703aa68c415
diff --git a/devel/libusb/patches/patch-ad b/devel/libusb/patches/patch-ad
index 477db22e47f..a10e8fe7e9b 100644
--- a/devel/libusb/patches/patch-ad
+++ b/devel/libusb/patches/patch-ad
@@ -1,6 +1,6 @@
-$NetBSD: patch-ad,v 1.8 2006/05/26 10:06:13 joerg Exp $
+$NetBSD: patch-ad,v 1.9 2007/10/11 18:25:19 drochner Exp $
---- bsd.c.orig 2006-03-04 02:52:46.000000000 +0000
+--- bsd.c.orig 2006-03-04 03:52:46.000000000 +0100
+++ bsd.c
@@ -25,8 +25,8 @@
* for both read and write.
@@ -145,6 +145,15 @@ $NetBSD: patch-ad,v 1.8 2006/05/26 10:06:13 joerg Exp $
return retrieved;
}
+@@ -477,7 +482,7 @@ int usb_control_msg(usb_dev_handle *dev,
+ USB_ERROR_STR(-errno, "error sending control message: %s",
+ strerror(errno));
+
+- return UGETW(req.ucr_request.wLength);
++ return req.ucr_actlen;
+ }
+
+ int usb_os_find_busses(struct usb_bus **busses)
@@ -548,7 +553,7 @@ int usb_os_find_devices(struct usb_bus *
/* best not to play with things we don't understand */
continue;