pkgsrc-WIP-changes archive

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

py-adb: Don't try to unload a USB kernel driver on NetBSD.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Fri Apr 3 21:39:54 2020 +0100
Changeset:	8b10a79f1e6c1c91412027ea47f2b9f952cc5cae

Modified Files:
	py-adb/distinfo
Added Files:
	py-adb/patches/patch-adb_common.py

Log Message:
py-adb: Don't try to unload a USB kernel driver on NetBSD.

This allows this to work with basic functionality over USB.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8b10a79f1e6c1c91412027ea47f2b9f952cc5cae

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

diffstat:
 py-adb/distinfo                    |  1 +
 py-adb/patches/patch-adb_common.py | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diffs:
diff --git a/py-adb/distinfo b/py-adb/distinfo
index 388b05ac38..486d71173c 100644
--- a/py-adb/distinfo
+++ b/py-adb/distinfo
@@ -4,3 +4,4 @@ SHA1 (adb-1.3.0.tar.gz) = 5a5ebffbfaffeeba2b36d519ab8bad212c218506
 RMD160 (adb-1.3.0.tar.gz) = aa708a57ba992168e43d99f40c7d03783de0ca73
 SHA512 (adb-1.3.0.tar.gz) = 0ec5c2acee688498c065cfd136491594631e5410121f9f856cf9d0818af238bbf41f2646bf50b8503873bbd48e9bc97065638d3f4af35ba82681a0c84a26139c
 Size (adb-1.3.0.tar.gz) = 27050 bytes
+SHA1 (patch-adb_common.py) = 40490613f464bdf28d179ee62bd20b245797254e
diff --git a/py-adb/patches/patch-adb_common.py b/py-adb/patches/patch-adb_common.py
new file mode 100644
index 0000000000..dd5bd7e9ac
--- /dev/null
+++ b/py-adb/patches/patch-adb_common.py
@@ -0,0 +1,14 @@
+$NetBSD$
+
+This fails on NetBSD too.
+
+--- adb/common.py.orig	2018-05-31 08:43:12.000000000 +0000
++++ adb/common.py
+@@ -118,6 +118,7 @@ class UsbHandle(object):
+         iface_number = self._setting.getNumber()
+         try:
+             if (platform.system() != 'Windows'
++                    and platform.system() != 'NetBSD'
+                     and handle.kernelDriverActive(iface_number)):
+                 handle.detachKernelDriver(iface_number)
+         except libusb1.USBError as e:


Home | Main Index | Thread Index | Old Index