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

libusb → libusb-compat-0_1, libusb1 ⇠ libusb #86165

Merged
merged 2 commits into from Apr 29, 2020

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Apr 28, 2020

Motivation for this change

Until recently, libusb-compat propagated libusb1 and many packages unknowingly used it to obtain libusb1. When #82944 removed this evil propagation, it broke many packages with such incorrect assumption. This patch trades the breakage of packages wanting libusb1 caused by the PR for a hopefully less common breakage of the packages relying on the compat library.

cc @flokli @samueldr @worldofpeace

Until recently, libusb-compat propagated libusb1 and many packages unknowingly used it to obtain libusb1.
When NixOS#82944 removed this evil propagation, it broke many packages with such incorrect assumption.
This patch trades the breakage of packages wanting libusb1 caused by the PR for a hopefully less common breakage of the packages relying on the compat library.
@jtojnar jtojnar changed the title libusb → libusb-compat-0_1, libusb1 ↜ libusb libusb → libusb-compat-0_1, libusb1 ⇠ libusb Apr 28, 2020
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
boost miniupnpc openssl unbound
cppzmq zeromq pcsclite readline
libsodium hidapi randomx rapidjson
pythonProtobuf libusb
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure about this? The code seems to be looking for libusb-1.0:

https://github.com/monero-project/monero/blob/28e0a28b96212abce237e7b94df78bd4541a66c1/cmake/FindLibUSB.cmake#L21

(same for monero-gui)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then it must be broken on master.

@jtojnar jtojnar merged commit 2b5e2ff into NixOS:master Apr 29, 2020
@jtojnar jtojnar deleted the libusb-compat-rename branch April 29, 2020 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants