head 1.8; access; symbols pkgsrc-2020Q1:1.7.0.6 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.8 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.4 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.2 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.6.0.4 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.2 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.5.0.8 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.6 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.4 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.2 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.4.0.14 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.10 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.8 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.6 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.4 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.2 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.3.0.6 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.4 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.2 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.2.0.22 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.20 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.18 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.16 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.14 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.12 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.10 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.8 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.6 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.4 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.2 pkgsrc-2012Q4-base:1.2; locks; strict; comment @# @; 1.8 date 2020.04.03.20.05.41; author nia; state dead; branches; next 1.7; commitid QWBlaibMX1MPFY2C; 1.7 date 2019.06.21.16.58.23; author sjmulder; state Exp; branches; next 1.6; commitid 5NqNxrYtGA51R4sB; 1.6 date 2018.11.25.17.03.34; author gdt; state Exp; branches; next 1.5; commitid P3TYUp2LM0uKzl1B; 1.5 date 2017.10.02.13.20.28; author leot; state Exp; branches; next 1.4; commitid cuN8AWGnDNY9Ot9A; 1.4 date 2016.04.09.08.18.58; author richard; state Exp; branches; next 1.3; commitid fD7DXcnCS5x7vV1z; 1.3 date 2015.08.22.21.23.46; author leot; state Exp; branches; next 1.2; commitid hoAqfFdJYv9Qhjyy; 1.2 date 2012.10.08.16.59.26; author dholland; state Exp; branches; next 1.1; 1.1 date 2012.10.08.16.54.07; author dholland; state Exp; branches; next ; desc @@ 1.8 log @libusb1: Update to 1.0.23 2019-08-28: v1.0.23 * Add German translation (#446) * Add Hungarian translation (#493) * Android: Improved support for Android * BSD: Remove infinite recursion in OpenBSD backend * configure.ac: Fix detection of clock_gettime library (#439) * Core: abandon synchronous transfers when device closure is detected. * Core: fix error in handling the removal of file descriptors while handling events. * Darwin(macOS): Switch from using ResetDevice to USBDeviceReEnumerate (#455) * Darwin(macOS): Remove code that changed the device class used (#428) * Darwin(macOS): Reduce hotplug timeout to 1ms (from 5s) * New API libusb_set_log_cb() to redirect global and per context log messages to the provided log handling function * New API libusb_wrap_sys_device to allow the user to specify the usb device to use. * Solaris: Break infinite recursion in backend clock_gettime * Solaris: Enable timerfd on sunos when available * Windows: Add support for isochronous transfers with WinUSB * Various other bug fixes and improvements @ text @$NetBSD: patch-configure,v 1.7 2019/06/21 16:58:23 sjmulder Exp $ prepare DragonFlyBSD backend support Fix clock_gettime check https://github.com/libusb/libusb/pull/439 --- configure.orig 2019-06-21 01:40:18.666466601 +0200 +++ configure 2019-06-21 01:40:50.766082708 +0200 @@@@ -16266,6 +16266,11 @@@@ backend=openbsd threads=posix ;; +*-dragonfly*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: DragonflyBSD (using OpenBSD backend)" >&5 +$as_echo "DragonflyBSD (using OpenBSD backend)" >&6; } + backend="openbsd" + ;; *-netbsd*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5 $as_echo "NetBSD" >&6; } @@@@ -16308,9 +16313,9 @@@@ $as_echo "#define OS_LINUX 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime2" >&5 -$as_echo_n "checking for library containing clock_gettime2... " >&6; } -if ${ac_cv_search_clock_gettime2+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 +$as_echo_n "checking for library containing clock_gettime... " >&6; } +if ${ac_cv_search_clock_gettime+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@@@ -16323,11 +16328,11 @@@@ #ifdef __cplusplus extern "C" #endif -char clock_gettime2 (); +char clock_gettime (); int main () { -return clock_gettime2 (); +return clock_gettime (); ; return 0; } @@@@ -16340,25 +16345,25 @@@@ LIBS="-l$ac_lib -pthread $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_clock_gettime2=$ac_res + ac_cv_search_clock_gettime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if ${ac_cv_search_clock_gettime2+:} false; then : + if ${ac_cv_search_clock_gettime+:} false; then : break fi done -if ${ac_cv_search_clock_gettime2+:} false; then : +if ${ac_cv_search_clock_gettime+:} false; then : else - ac_cv_search_clock_gettime2=no + ac_cv_search_clock_gettime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime2" >&5 -$as_echo "$ac_cv_search_clock_gettime2" >&6; } -ac_res=$ac_cv_search_clock_gettime2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 +$as_echo "$ac_cv_search_clock_gettime" >&6; } +ac_res=$ac_cv_search_clock_gettime if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" @ 1.7 log @devel/libusb1: needs -lrt on RHEL 6 On glibc <2.17 clock_gettime() requires -lrt but the autoconf check was broken. Patch the check until a new version is released. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.6 2018/11/25 17:03:34 gdt Exp $ @ 1.6 log @libusb: update to 1.0.22 2018-03-24: v1.0.22: * New libusb_set_option() API * Fix transfer timeout not being cleared upon resubmission * Report super speed plus devices on modern Linux and macOS * Darwin: Improve support for macOS Sierra and High Sierra * Darwin: SDK fixes and improvements * Linux: Let initialization succeed when no devices are present * Linux: Mark internal file descriptors with CLOEXEC flag * Solaris: Add support for attach/detach kernel driver * Windows: Add dynamic UsbDk backend selection * Windows: Add isochronous transfer support via libusbK * Windows: Add Visual Studio 2017 support * Windows: Fix enumeration problems on Windows 8 and later * Windows: Major rework of poll() emulation * Windows: Numerous HID API fixes * Windows: Support cancelation of individual transfers (Vista and later) * Various other bug fixes and improvements @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.5 2017/10/02 13:20:28 leot Exp $ d5 6 a10 3 --- configure.orig 2018-03-25 01:20:03.000000000 +0000 +++ configure @@@@ -16266,6 +16266,11 @@@@ $as_echo "OpenBSD" >&6; } d22 60 @ 1.5 log @libusb1: Update devel/libusb1 to 1.0.21 pkgsrc changes: * Delete several Solaris backend patches, 1.0.21 contains all of them (patch-libusb_os_sunos__usb.c is still needed though) Changes: 2016-10-01: v1.0.21: * Core: Refactor code related to transfer flags and timeout handling * Darwin: Ignore root hub simulation devices * Darwin: Improved support for OS X El Capitan * Darwin: Work around devices with buggy endpoint descriptors * Darwin: Do not use objc_registerThreadWithCollector after its deprecation * Darwin: Use C11 atomics on 10.12+ as the OS atomics are now deprecated * Linux: Support preallocating kernel memory for zerocopy USB * Linux: Deal with receiving POLLERR before all transfers have completed * Solaris: Add solaris backend * Windows: Add Visual Studio 2015 support * Windows: Add usbdk backend * Prevent attempts to recursively handle events * Fix race condition in handle_timeout() * Allow transferred argument to be optional in bulk APIs * Various other bug fixes and improvements @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.4 2016/04/09 08:18:58 richard Exp $ d5 1 a5 1 --- configure.orig 2016-03-25 05:42:03.826039410 +0000 d7 3 a9 3 @@@@ -11939,6 +11942,11 @@@@ $as_echo "OpenBSD" >&6; } backend="openbsd" threads="posix" @ 1.4 log @update to libusb-1.0.20 add experimental SunOS backend support adapted from the upstream RTI submission from Oracle and initial illumos support from OpenIndiana/Hipster From the Changelog: For detailed information about the changes below, please see the git log or visit: http://log.libusb.info 2015-09-13: v1.0.20 * Add Haiku support * Fix multiple memory and resource leaks (#16, #52, #76, #81) * Fix possible deadlock when executing transfer callback * New libusb_free_pollfds() API * Darwin: Fix devices not being detected on OS X 10.8 (#48) * Linux: Allow larger isochronous transfer submission (#23) * Windows: Fix broken builds Cygwin/MinGW builds and compiler warnings * Windows: Fix broken bus number lookup * Windows: Improve submission of control requests for composite devices * Examples: Add two-stage load support to fxload (#12) * Correctly report cancellations due to timeouts * Improve efficiency of event handling * Improve speed of transfer submission in multi-threaded environments * Various other bug fixes and improvements The (#xx) numbers are libusb issue numbers, see ie: https://github.com/libusb/libusb/issues/16 MAKE_JOBS_SAFE=no given build issues when enabled. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 prepare DragonFlyBSD and SunOS backend support a6 17 @@@@ -657,6 +657,8 @@@@ OS_WINDOWS_FALSE OS_WINDOWS_TRUE OS_NETBSD_FALSE OS_NETBSD_TRUE +OS_SUNOS_FALSE +OS_SUNOS_TRUE OS_OPENBSD_FALSE OS_OPENBSD_TRUE OS_DARWIN_FALSE @@@@ -666,6 +668,7 @@@@ OS_LINUX_TRUE OS_HAIKU OS_WINDOWS OS_NETBSD +OS_SUNOS OS_OPENBSD OS_DARWIN USE_UDEV a18 72 @@@@ -11969,6 +11977,13 @@@@ subdirs="$subdirs libusb/os/haiku" backend="haiku" threads="posix" ;; +*-solaris*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5 +$as_echo "SunOS" >&6; } + backend="sunos" + threads="posix" + ;; + *) as_fn_error $? "unsupported operating system" "$LINENO" 5 esac @@@@ -12230,6 +12245,31 @@@@ done $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h ;; + +sunos) + +$as_echo "#define OS_SUNOS 1" >>confdefs.h + + + THREAD_CFLAGS="-pthread" + LIBS="-pthread -ldevinfo" + for ac_header in poll.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" +if test "x$ac_cv_header_poll_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_POLL_H 1 +_ACEOF + +fi + +done + + +$as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h + + ;; + netbsd) $as_echo "#define OS_NETBSD 1" >>confdefs.h @@@@ -12317,6 +12357,14 @@@@ else OS_OPENBSD_FALSE= fi + if test "x$backend" = xsunos; then + OS_SUNOS_TRUE= + OS_SUNOS_FALSE='#' +else + OS_SUNOS_TRUE='#' + OS_SUNOS_FALSE= +fi + if test "x$backend" = xnetbsd; then OS_NETBSD_TRUE= OS_NETBSD_FALSE='#' @@@@ -12834,6 +12882,10 @@@@ if test -z "${OS_OPENBSD_TRUE}" && test as_fn_error $? "conditional \"OS_OPENBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${OS_SUNOS_TRUE}" && test -z "${OS_SUNOS_FALSE}"; then + as_fn_error $? "conditional \"OS_SUNOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${OS_NETBSD_TRUE}" && test -z "${OS_NETBSD_FALSE}"; then as_fn_error $? "conditional \"OS_NETBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @ 1.3 log @Update devel/libusb1 to libusb1-1.0.19. ok wiz@@. pkgsrc changes: * Delete a patch that is now imported upstream * Add test target support Changes: 2014-05-30: v1.0.19 * Add support for USB bulk streams on Linux and Mac OS X (#11) * Windows: Add AMD and Intel USB-3.0 root hub support * Windows: Fix USB 3.0 speed detection on Windows 8 or later (#10) * Added Russian translation for libusb_strerror strings * All: Various small fixes and cleanups The (#xx) numbers are libusb issue numbers, see ie: https://github.com/libusb/libusb/issues/11 2014-01-25: v1.0.18 * Fix multiple memory leaks * Fix a crash when HID transfers return no data on Windows * Ensure all pending events are consumed * Improve Android and ucLinux support * Multiple Windows improvements (error logging, VS2013, VIA xHCI support) * Multiple OS X improvements (broken compilation, SIGFPE, 64bit support) 2013-09-06: v1.0.17 * Hotplug callbacks now always get passed a libusb_context, even if it is the default context. Previously NULL would be passed for the default context, but since the first context created is the default context, and most apps use only 1 context, this meant that apps explicitly creating a context would still get passed NULL * Android: Add .mk files to build with the Android NDK * Darwin: Add Xcode project * Darwin: Fix crash on unplug (#121) * Linux: Fix hang (deadlock) on libusb_exit * Linux: Fix libusb build failure with --disable-udev (#124) * Linux: Fix libusb_get_device_list() hang with --disable-udev (#130) * OpenBSD: Update OpenBSD backend with support for control transfers to non-ugen(4) devices and make get_configuration() no longer generate I/O. Note that using this libusb version on OpenBSD requires using OpenBSD 5.3-current or later. Users of older OpenBSD versions are advised to stay with the libusb shipped with OpenBSD (mpi) * Windows: fix libusb_dll_2010.vcxproj link errors (#129) * Various other bug fixes and improvements 2013-07-11: v1.0.16 * Add hotplug support for Darwin and Linux (#9) * Add superspeed endpoint companion descriptor support (#15) * Add BOS descriptor support (#15) * Make descriptor parsing code more robust * New libusb_get_port_numbers API, this is libusb_get_port_path without the unnecessary context parameter, libusb_get_port_path is now deprecated * New libusb_strerror API (#14) * New libusb_set_auto_detach_kernel_driver API (#17) * Improve topology API docs (#95) * Logging now use a single write call per log-message, avoiding log-message "interlacing" when using multiple threads. * Android: use Android logging when building on Android (#101) * Darwin: make libusb_reset reenumerate device on descriptors change (#89) * Darwin: add support for the LIBUSB_TRANSFER_ADD_ZERO_PACKET flag (#91) * Darwin: add a device cache (#112, #114) * Examples: Add sam3u_benchmark isochronous example by Harald Welte (#109) * Many other bug fixes and improvements The (#xx) numbers are libusbx issue numbers, see ie: https://github.com/libusbx/libusbx/issues/9 2013-04-15: v1.0.15 * Improve transfer cancellation and avoid short read failures on broken descriptors * Filter out 8-bit characters in libusb_get_string_descriptor_ascii() * Add WinCE support * Add library stress tests * Add Cypress FX3 firmware upload support for fxload sample * Add HID and kernel driver detach support capabilities detection * Add SuperSpeed detection on OS X * Fix bInterval value interpretation on OS X * Fix issues with autoclaim, composite HID devices, interface autoclaim and early abort in libusb_close() on Windows. Also add VS2012 solution files. * Improve fd event handling on Linux * Other bug fixes and improvements 2012-09-26: v1.0.14 * Reverts the previous API change with regards to bMaxPower. If this doesn't matter to you, you are encouraged to keep using v1.0.13, as it will use the same attribute as v2.0, to be released soon. * Note that LIBUSB_API_VERSION is *decreased* to 0x010000FF and the previous guidelines with regards to concurrent use of MaxPower/bMaxPower still apply. 2012-09-20: v1.0.13 * [MAJOR] Fix a typo in the API with struct libusb_config_descriptor where MaxPower was used instead of bMaxPower, as defined in the specs. If your application was accessing the MaxPower attribute, and you need to maintain compatibility with libusb or older versions, see APPENDIX A below. * Fix broken support for the 0.1 -> 1.0 libusb-compat layer * Fix unwanted cancellation of pending timeouts as well as major timeout related bugs * Fix handling of HID and composite devices on Windows * Introduce LIBUSB_API_VERSION macro * Add Cypress FX/FX2 firmware upload sample, based on fxload from http://linux-hotplug.sourceforge.net * Add libusb0 (libusb-win32) and libusbK driver support on Windows. Note that while the drivers allow it, isochronous transfers are not supported yet in libusb. Also not supported yet is the use of libusb-win32 filter drivers on composite interfaces * Add support for the new get_capabilities ioctl on Linux and avoid unnecessary splitting of bulk transfers * Improve support for newer Intel and Renesas USB 3.0 controllers on Windows * Harmonize the device number for root hubs across platforms * Other bug fixes and improvements 2012-06-15: v1.0.12 * Fix a potential major regression with pthread on Linux * Fix missing thread ID from debug log output on cygwin * Fix possible crash when using longjmp and MinGW's gcc 4.6 * Add topology calls: libusb_get_port_number(), libusb_get_parent() & libusb_get_port_path() * Add toggleable debug, using libusb_set_debug() or the LIBUSB_DEBUG environment variable * Define log levels in libusb.h and set timestamp origin to first libusb_init() call * All logging is now sent to to stderr (info was sent to stdout previously) * Update log messages severity and avoid polluting log output on OS-X * Add HID driver support on Windows * Enable interchangeability of MSVC and MinGW DLLs * Additional bug fixes and improvements 2012-05-08: v1.0.11 * Revert removal of critical Windows event handling that was introduced in 1.0.10 * Fix a possible deadlock in Windows when submitting transfers * Add timestamped logging * Add NetBSD support (experimental) and BSD libusb_get_device_speed() data * Add bootstrap.sh alongside autogen.sh (bootstrap.sh doesn't invoke configure) * Search for device nodes in /dev for Android support * Other bug fixes 2012-04-17: v1.0.10 * Public release * Add libusb_get_version * Add Visual Studio 2010 project files * Some Windows code cleanup * Fix xusb sample warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ APPENDIX A - How to maintain code compatibility with versions of libusb and libusb that use MaxPower: If you must to maintain compatibility with versions of the library that aren't using the bMaxPower attribute in struct libusb_config_descriptor, the recommended way is to use the new LIBUSB_API_VERSION macro with an #ifdef. For instance, if your code was written as follows: if (dev->config[0].MaxPower < 250) Then you should modify it to have: #if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION >= 0x01000100) if (dev->config[0].bMaxPower < 250) #else if (dev->config[0].MaxPower < 250) #endif @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2012/10/08 16:59:26 dholland Exp $ d3 1 a3 1 Recognize Dragonfly. d5 1 a5 1 --- configure.orig 2014-06-13 18:28:18.000000000 +0000 d7 18 a24 1 @@@@ -11933,6 +11933,11 @@@@ $as_echo "OpenBSD" >&6; } d36 72 @ 1.2 log @oops, add patch comments (meant to do that before committing) @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.1 2012/10/08 16:54:07 dholland Exp $ d5 1 a5 1 --- configure.orig 2012-10-06 07:29:32.285323000 +0000 d7 1 a7 2 @@@@ -11108,6 +11108,11 @@@@ $as_echo "Darwin/Mac OS X" >&6; } $as_echo "OpenBSD" >&6; } d9 1 d17 2 a18 2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD (using OpenBSD backend)" >&5 $as_echo "NetBSD (using OpenBSD backend)" >&6; } @ 1.1 log @Build patches for DragonFly, from Neil Booth in PR 47042. @ text @d1 3 a3 1 $NetBSD$ @