Received: by mail.netbsd.org (Postfix, from userid 605) id 64A1C84DAC; Fri, 3 Apr 2020 20:15:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E1D5984D82 for ; Fri, 3 Apr 2020 20:15:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id BWiEoZfUHJbj for ; Fri, 3 Apr 2020 20:15:19 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 5C6B684CE2 for ; Fri, 3 Apr 2020 20:15:19 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 56528FB27; Fri, 3 Apr 2020 20:15:19 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1585944919119820" MIME-Version: 1.0 Date: Fri, 3 Apr 2020 20:15:19 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/devel/libmtp To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20200403201519.56528FB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1585944919119820 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Fri Apr 3 20:15:19 UTC 2020 Modified Files: pkgsrc/devel/libmtp: Makefile distinfo Added Files: pkgsrc/devel/libmtp/patches: patch-src_libusb1-glue.c Log Message: libmtp: Don't attempt to unload kernel drivers on NetBSD. This reduces the amount the command line utilities complain and makes this marginally less broken. But, it's a hack around the underlying issue, it shouldn't treat this as a failure if the underlying libusb driver doesn't support it. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/libmtp/Makefile cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/libmtp/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libmtp/patches/patch-src_libusb1-glue.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1585944919119820 Content-Disposition: inline Content-Length: 2436 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/libmtp/Makefile diff -u pkgsrc/devel/libmtp/Makefile:1.19 pkgsrc/devel/libmtp/Makefile:1.20 --- pkgsrc/devel/libmtp/Makefile:1.19 Tue Mar 24 16:58:05 2020 +++ pkgsrc/devel/libmtp/Makefile Fri Apr 3 20:15:19 2020 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.19 2020/03/24 16:58:05 nia Exp $ +# $NetBSD: Makefile,v 1.20 2020/04/03 20:15:19 nia Exp $ DISTNAME= libmtp-1.1.17 +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libmtp/} Index: pkgsrc/devel/libmtp/distinfo diff -u pkgsrc/devel/libmtp/distinfo:1.13 pkgsrc/devel/libmtp/distinfo:1.14 --- pkgsrc/devel/libmtp/distinfo:1.13 Tue Mar 24 16:58:05 2020 +++ pkgsrc/devel/libmtp/distinfo Fri Apr 3 20:15:19 2020 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.13 2020/03/24 16:58:05 nia Exp $ +$NetBSD: distinfo,v 1.14 2020/04/03 20:15:19 nia Exp $ SHA1 (libmtp-1.1.17.tar.gz) = b9d29f6f99f682e3b8c4f05cb6b1c8de3a454688 RMD160 (libmtp-1.1.17.tar.gz) = a6ee084464d610a307388701f56f014c9669c8bb @@ -7,4 +7,5 @@ Size (libmtp-1.1.17.tar.gz) = 829529 byt SHA1 (patch-configure) = f57b708684696e496b1d61783e48fe4b63618d65 SHA1 (patch-hotplug.sh.in) = 72216bb36bd0f6274c16c09d121fcffb567ab120 SHA1 (patch-m4_byteorder.m4) = e6c1170d9099f13c637b3a73d67618d318c7a73d +SHA1 (patch-src_libusb1-glue.c) = 2c83f2436a7cbc27c8b03f8d22db9bb446f55446 SHA1 (patch-src_util.c) = f7be6760014323dc2b159e1e44f94e40d96f26d0 Added files: Index: pkgsrc/devel/libmtp/patches/patch-src_libusb1-glue.c diff -u /dev/null pkgsrc/devel/libmtp/patches/patch-src_libusb1-glue.c:1.1 --- /dev/null Fri Apr 3 20:15:19 2020 +++ pkgsrc/devel/libmtp/patches/patch-src_libusb1-glue.c Fri Apr 3 20:15:19 2020 @@ -0,0 +1,22 @@ +$NetBSD: patch-src_libusb1-glue.c,v 1.1 2020/04/03 20:15:19 nia Exp $ + +Don't try to unload kernel drivers on NetBSD, it doesn't work. + +--- src/libusb1-glue.c.orig 2019-03-25 06:02:39.000000000 +0000 ++++ src/libusb1-glue.c +@@ -1920,6 +1920,7 @@ static int init_ptp_usb(PTPParams* param + * drivers (such as mass storage), then try to unload it to make it + * accessible from user space. + */ ++#ifndef __NetBSD__ + if (FLAG_UNLOAD_DRIVER(ptp_usb) && + libusb_kernel_driver_active(device_handle, ptp_usb->interface) + ) { +@@ -1927,6 +1928,7 @@ static int init_ptp_usb(PTPParams* param + perror("libusb_detach_kernel_driver() failed, continuing anyway..."); + } + } ++#endif + + + /* --_----------=_1585944919119820--