pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libusb1 libusb1: Recognize ETIMEDOUT as a connec...
details: https://anonhg.NetBSD.org/pkgsrc/rev/506b693f4bdf
branches: trunk
changeset: 426619:506b693f4bdf
user: nia <nia%pkgsrc.org@localhost>
date: Fri Apr 03 20:39:03 2020 +0000
description:
libusb1: Recognize ETIMEDOUT as a connection timeout on NetBSD
Helps py-adb work over USB.
Bump PKGREVISION.
diffstat:
devel/libusb1/Makefile | 3 ++-
devel/libusb1/distinfo | 4 ++--
devel/libusb1/patches/patch-libusb_os_netbsd__usb.c | 5 +++--
3 files changed, 7 insertions(+), 5 deletions(-)
diffs (49 lines):
diff -r 6e95a99b4b02 -r 506b693f4bdf devel/libusb1/Makefile
--- a/devel/libusb1/Makefile Fri Apr 03 20:32:57 2020 +0000
+++ b/devel/libusb1/Makefile Fri Apr 03 20:39:03 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2020/04/03 20:32:57 nia Exp $
+# $NetBSD: Makefile,v 1.25 2020/04/03 20:39:03 nia Exp $
DISTNAME= libusb-1.0.23
PKGNAME= ${DISTNAME:S/libusb/libusb1/}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=libusb/}
GITHUB_PROJECT= libusb
diff -r 6e95a99b4b02 -r 506b693f4bdf devel/libusb1/distinfo
--- a/devel/libusb1/distinfo Fri Apr 03 20:32:57 2020 +0000
+++ b/devel/libusb1/distinfo Fri Apr 03 20:39:03 2020 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.14 2020/04/03 20:05:41 nia Exp $
+$NetBSD: distinfo,v 1.15 2020/04/03 20:39:03 nia Exp $
SHA1 (libusb-1.0.23.tar.bz2) = 0140200398306b5e91c294d4a3c0f63aa0ef07b3
RMD160 (libusb-1.0.23.tar.bz2) = b6ffe2441951d37d671bfbb1d84821269e8aef7c
SHA512 (libusb-1.0.23.tar.bz2) = 73430ad31dd405e76a9c6c55086961003989c44964e2735b5076f9ca849e3f6fe71d10a66b74b111f0c34a0d2cb744b9ca105863c552123fce4ec0bbdd2ec15b
Size (libusb-1.0.23.tar.bz2) = 602860 bytes
-SHA1 (patch-libusb_os_netbsd__usb.c) = 8b1a71ceec1b96089ebfaa0fa900845b2e3ff572
+SHA1 (patch-libusb_os_netbsd__usb.c) = 2cac7171e088f5d433c8a683b93168694c7fc8de
diff -r 6e95a99b4b02 -r 506b693f4bdf devel/libusb1/patches/patch-libusb_os_netbsd__usb.c
--- a/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c Fri Apr 03 20:32:57 2020 +0000
+++ b/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c Fri Apr 03 20:39:03 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-libusb_os_netbsd__usb.c,v 1.3 2020/04/03 20:05:41 nia Exp $
+$NetBSD: patch-libusb_os_netbsd__usb.c,v 1.4 2020/04/03 20:39:03 nia Exp $
* Set structure values by name
* Do not emit log messages from netbsd_clock_gettime as it is called from
@@ -101,11 +101,12 @@
if (clkid == USBI_CLOCK_REALTIME)
return clock_gettime(CLOCK_REALTIME, tp);
-@@ -521,6 +499,8 @@ _errno_to_libusb(int err)
+@@ -521,6 +499,9 @@ _errno_to_libusb(int err)
return (LIBUSB_ERROR_NO_DEVICE);
case ENOMEM:
return (LIBUSB_ERROR_NO_MEM);
+ case EWOULDBLOCK:
++ case ETIMEDOUT:
+ return (LIBUSB_ERROR_TIMEOUT);
}
Home |
Main Index |
Thread Index |
Old Index