Skip to content

darwin: read the port number as "usb-port-number" on macOS 26 - #6

Open
aljazkonec1 wants to merge 1 commit into
cmake-android-mainlinefrom
fix/macos26-usb-port-number
Open

aljazkonec1 wants to merge 1 commit into
cmake-android-mainlinefrom
fix/macos26-usb-port-number

Conversation

@aljazkonec1

Copy link
Copy Markdown

macOS 26 renamed the IORegistry port number property of the parent port from "port" to "usb-port-number". The darwin backend read only "port", so libusb_get_port_numbers() returned no ports on macOS 26, and XLink named every USB device "0." (bus 0, no ports).

Read "port" first, so macOS 15 and older work as before, and read "usb-port-number" when "port" is missing. Upstream libusb fixed the same problem in a409dbb (issues libusb#1661, libusb#1700, release v1.0.30) with a check of the running macOS version; this fork has no get_running_version()

macOS 26 renamed the IORegistry port number property of the parent port
from "port" to "usb-port-number". The darwin backend read only "port", so
libusb_get_port_numbers() returned no ports on macOS 26, and XLink named
every USB device "0." (bus 0, no ports).

Read "port" first, so macOS 15 and older work as before, and read
"usb-port-number" when "port" is missing. Upstream libusb fixed the same
problem in a409dbb (issues libusb#1661, libusb#1700, release v1.0.30) with a check of
the running macOS version; this fork has no get_running_version().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant