-
-
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
mariadb-client: create symlinks for libmariadb #70879
Conversation
Fixes NixOS#67144
This with import <nixpkgs> {};
with python27Packages;
stdenv.mkDerivation {
name = "testPythonEnv";
src = null;
buildInputs = [
python27Full
python27Packages.virtualenv
python27Packages.pip
mariadb-client.dev
];
shellHook = ''
SOURCE_DATE_EPOCH=$(date +%s) # Required for building Python wheels
cd $(mktemp -d)
virtualenv venv
export PATH=$PWD/venv/bin:$PATH
pip install --no-cache-dir mysqlclient
'';
} Without this patch,
With the patch, everything is great:
|
@callahad not cheked with libmysql?
|
I don't really know my way around nixpkgs or mariadb, so this was a bit of a stab in the dark. :) I thought ...so maybe I'm holding it wrong when trying to depend on |
In case it helps, it looks like 3a6e362 is when we started rm'ing |
#65222 - here changed to use a separate package - libmysql (mariadb-connector-c) |
Probably to me need to double-check the build configuration |
@callahad please check this patch
|
That patch appears to work and passes After building with that patch (and #70841), this is my
Compared to with my patch:
Let's go with yours. :) |
It’s better to use libmysql |
Yep, everything also works fine with |
So I think where we're at is:
Still feels like we should fix |
theoretically, need to remove mysql-client.dev and use libmysql |
Maybe I'm not understanding you correctly. What exactly do you mean by "use libmysql?" |
Oh! Do you mean we should remove the |
@callahad yes. |
Great. I'll close this and open a new PR later tonight to do that. Thank you. |
Fixes #67144
nix-review output on darwin
Motivation for this change
I can't build things that link to mariadb's client libraries.
I ran into this issue trying to install Python's mysqlclient module. Other folks ran into issues installing OCaml bindings to mysql (#67144).
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @thoughtpolice @Izorkin @matthewbauer