-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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 mariadb drivers #73928
Fix mariadb drivers #73928
Conversation
053d2dc
to
213da44
Compare
|
There don't appear to be any tests. |
|
213da44
to
9b88fc4
Compare
src = fetchFromGitHub { | ||
owner = "MariaDB"; | ||
repo = "mariadb-connector-odbc"; | ||
rev = "c921b500650eca535010f12e0d83417d2ef915ec"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm terribly sorry I didn't notice this before... we generally set rev
to something involving version
for easy updates. So in this case:
rev = "c921b500650eca535010f12e0d83417d2ef915ec"; | |
rev = version; |
I've tested this on NixOS and after this change I'm happy to merge to master
. This change deserves a backport as well. Thank you so much for digging into this! Hopefully at some point someone can get to the bottom of our libmysqlclient
issue, but until that happens the priority is to have a working package 😄
Thanks again @jamii 🎉
For unknown reasons, building against libmysqlclient results in unixODBC reporting an error when trying to load the driver, but building against the subrepo works fine. Fixes NixOS#73928
9b88fc4
to
fa9a981
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thank you very much @jamii! Are you going to open a backport PR? |
Not soon. I was asked to spend less time working on nix stuff 🤷♂️ |
I'll grab it then. Thanks again... and sorry to hear :-( |
Motivation for this change
The mariadb unixODBC drivers fail to load with an unhelpful error message - #73258
I haven't been able to pin down what exactly is wrong, but I've found that building against the subrepo rather than against the system libmysqlclient leads to working drivers.
I've tested this PR against mariadb on NixOS and OS X Mojave.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @