Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix libusb and build release failed #300

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

nekoteoj
Copy link
Contributor

@nekoteoj nekoteoj commented Jan 4, 2024

Fix issue #297

Solution:

  1. Fixed libusb.go. Golang 1.21 doesn't allow defining a method for non-local structs. The solution here is to create a type alias for used C interop structs. Then, we can define methods for these type aliases. For example, an alias for C.struct_libusb_endpoint_descriptor can be defined with type Struct_Libusb_Endpoint_Descriptor = C.struct_libusb_endpoint_descriptor.
  2. The build release for macOS build failed because the apple-codesign need a newer version of cargo in the packaging Docker image. To resolve this, I update the Fedora version in the packaging Dockerfile to version 39.

I tested this using my Trezor model one is it's working great. Also, I tested the build release command and everything work fine now too.

Copy link
Contributor

@tsusanka tsusanka left a comment

Choose a reason for hiding this comment

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

Thanks!

@nekoteoj
Copy link
Contributor Author

nekoteoj commented Jan 4, 2024

No problem! Thanks for reviewing!

@prusnak prusnak merged commit d048bb2 into trezor:master Jan 4, 2024
2 checks passed
@tsusanka tsusanka mentioned this pull request Jan 5, 2024
@chenrui333
Copy link

Would love a release for this PR, thanks @nekoteoj for the great work!

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.

4 participants