1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/devel/libusb/Makefile
Andreas Klemm 00dcb052a3 - fix for PR 58925
solves problem of hanging usb sessions with cams using gphoto2 ptp2 driver
- bumped port revision
- tested by different people under -current and -stable, no ill side
  effects and really cures the problem.

The author of bsd.c clearly states out in the sources, that he
has ported codee from linux 1:1 and he "kind of hopes" that it is ok.
But it wasn't.

This patch fixes hang that happens after the 1st read because the USB
driver tries to read more bytes than are available.

0000  10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00  ................
1.240828 gphoto2-port(2): Reading 512=0x200 bytes from port...
gp_port_read: Operation timed out
9.267455 PTP2/library.c(2): PTP: gp_port_* function returned 0xffffffde
-34
9.267819 context(0): PTP I/O error

PR:		58925
Submitted by:	Mariusz Woloszyn <emsi@ipartners.pl>
Reviewed by:	John Reynolds <johnjen@reynoldsnet.org> and some tester
Approved by:	portmgr@ (Joe Marcus Clarke <marcus@marcuscom.com>)
2003-11-25 19:35:43 +00:00

23 lines
493 B
Makefile

# New ports collection makefile for: libusb
# Date created: 27 January 2001
# Whom: John Reynolds <johnjen@reynoldsnet.org>
#
# $FreeBSD$
#
PORTNAME= libusb
PORTVERSION= 0.1.7
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= johnjen@reynoldsnet.org
COMMENT= Library giving userland programs access to USB devices
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-build-docs
INSTALLS_SHLIB= yes
.include <bsd.port.mk>