Skip to content

added libusb-1.0.dll from pypi libusb. This is nedded to run on windows - #105

Merged
rgantois merged 1 commit into
bootlin:mainfrom
fred441a:libusb_windows_support
Oct 16, 2026
Merged

rgantois merged 1 commit into
bootlin:mainfrom
fred441a:libusb_windows_support

Conversation

@fred441a

@fred441a fred441a commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

When using the windows installer from release 3.0.0 running the snagrecover command for usb-dfu devices results a missing backend error. This is due to libusb-1.0.dll not being present in PATH and pyusb therefor not being able to use it. This MR solves this by using the libusb-1.0.dll distributed in the pypi libusb library, which has a very open zlib license. The dll file could also just be added to the repo, but i do not know how that works licensing wise. Having it locally in the repo might be preferable as the current solution in the snagboot.spec file is a little ugly.

@rgantois rgantois left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Frederik, I've left a couple of comments below, overall the changes look good to me. I'll test this on my side once the comments are adressed.

Comment thread snagboot.spec Resolved
Comment thread snagboot.spec Resolved
@rgantois

Copy link
Copy Markdown
Collaborator

Thanks!

@rgantois
rgantois merged commit 0a27867 into bootlin:main Oct 16, 2026
9 of 11 checks passed
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.

2 participants