pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libusb1



Module Name:    pkgsrc
Committed By:   jmcneill
Date:           Sun Dec 22 17:06:39 UTC 2019

Modified Files:
        pkgsrc/devel/libusb1: Makefile distinfo
        pkgsrc/devel/libusb1/patches: patch-libusb_os_netbsd__usb.c

Log Message:
Translate EWOULDBLOCK to LIBUSB_ERROR_TIMEOUT on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/libusb1/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/libusb1/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libusb1/Makefile
diff -u pkgsrc/devel/libusb1/Makefile:1.21 pkgsrc/devel/libusb1/Makefile:1.22
--- pkgsrc/devel/libusb1/Makefile:1.21  Sun Dec 22 16:49:05 2019
+++ pkgsrc/devel/libusb1/Makefile       Sun Dec 22 17:06:39 2019
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.21 2019/12/22 16:49:05 jmcneill Exp $
+# $NetBSD: Makefile,v 1.22 2019/12/22 17:06:39 jmcneill Exp $
 
 DISTNAME=      libusb-1.0.22
 PKGNAME=       ${DISTNAME:S/libusb/libusb1/}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=libusb/}
 EXTRACT_SUFX=  .tar.bz2

Index: pkgsrc/devel/libusb1/distinfo
diff -u pkgsrc/devel/libusb1/distinfo:1.12 pkgsrc/devel/libusb1/distinfo:1.13
--- pkgsrc/devel/libusb1/distinfo:1.12  Sun Dec 22 16:49:05 2019
+++ pkgsrc/devel/libusb1/distinfo       Sun Dec 22 17:06:39 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2019/12/22 16:49:05 jmcneill Exp $
+$NetBSD: distinfo,v 1.13 2019/12/22 17:06:39 jmcneill Exp $
 
 SHA1 (libusb-1.0.22.tar.bz2) = 10116aa265aac4273a0c894faa089370262ec0dc
 RMD160 (libusb-1.0.22.tar.bz2) = 59b800abb0b4c088dbee950fa67bb31240b8a134
@@ -6,6 +6,6 @@ SHA512 (libusb-1.0.22.tar.bz2) = 2a93ba4
 Size (libusb-1.0.22.tar.bz2) = 598833 bytes
 SHA1 (patch-configure) = 2776ff354ea8f17663a9a5330f6fe990af27d8fe
 SHA1 (patch-configure.ac) = 9344b3d6439348164410d1b2071cf14c3f388354
-SHA1 (patch-libusb_os_netbsd__usb.c) = af3202b93596710a94345ccdfe6466d833f34028
+SHA1 (patch-libusb_os_netbsd__usb.c) = 3ea7568379683c9a8660b308d2c52b4a48b3c8e6
 SHA1 (patch-libusb_os_sunos__usb.c) = 4896e497d451487a09b3be9ad74f72595a441086
 SHA1 (patch-ub) = 14bffca93ec8445cbfccb613dfda92f652b0ceb0

Index: pkgsrc/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c
diff -u pkgsrc/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c:1.1 pkgsrc/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c:1.2
--- pkgsrc/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c:1.1      Sun Dec 22 16:49:05 2019
+++ pkgsrc/devel/libusb1/patches/patch-libusb_os_netbsd__usb.c  Sun Dec 22 17:06:39 2019
@@ -1,7 +1,8 @@
-$NetBSD: patch-libusb_os_netbsd__usb.c,v 1.1 2019/12/22 16:49:05 jmcneill Exp $
+$NetBSD: patch-libusb_os_netbsd__usb.c,v 1.2 2019/12/22 17:06:39 jmcneill Exp $
 
-Do not emit log messages from netbsd_clock_gettime as it is called from
-the logger.
+* Do not emit log messages from netbsd_clock_gettime as it is called from
+  the logger.
+* Translate EWOULDBLOCK (ugen timeouts) errors to LIBUSB_ERROR_TIMEOUT.
 
 --- libusb/os/netbsd_usb.c.orig        2018-03-17 07:23:37.000000000 +0000
 +++ libusb/os/netbsd_usb.c
@@ -14,3 +15,12 @@ the logger.
        if (clkid == USBI_CLOCK_REALTIME)
                return clock_gettime(CLOCK_REALTIME, tp);
  
+@@ -516,6 +514,8 @@ _errno_to_libusb(int err)
+               return (LIBUSB_ERROR_NO_DEVICE);
+       case ENOMEM:
+               return (LIBUSB_ERROR_NO_MEM);
++      case EWOULDBLOCK:
++              return (LIBUSB_ERROR_TIMEOUT);
+       }
+ 
+       usbi_dbg("error: %s", strerror(err));



Home | Main Index | Thread Index | Old Index