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
pythonPackages.cx_oracle: fix dlopen, patchelf and fix library path for oracle-instantclient binaries #40695
Conversation
(cherry picked from commit 276f289)
(cherry picked from commit 0f4269b)
(cherry picked from commit ccb4558)
(cherry picked from commit 7824c60)
(cherry picked from commit c936651)
(cherry picked from commit c1932f5)
(cherry picked from commit a88354d)
previously, $ORACLE_HOME had to be set for each python script using this library. We now patch odpi to load libclntsh.so from oracle-instantclient if $ORACLE_HOME was not provided. (cherry picked from commit 639f795)
/cc @y0no |
Success on aarch64-linux (full log) Attempted: python The following builds were skipped because they don't evaluate on aarch64-linux: oracle-instantclient Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python The following builds were skipped because they don't evaluate on x86_64-linux: oracle-instantclient Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: python The following builds were skipped because they don't evaluate on x86_64-darwin: oracle-instantclient Partial log (click to expand)
|
I added the commits from #40900 into this PR as well, as this makes the expression much nicer :-) |
Success on aarch64-linux (full log) Attempted: python Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: python Partial log (click to expand)
|
(cherry picked from commit 82eaa5b)
Split `buildCommand`, provide `unpackCmd` and add `installPhase`. Use autoPatchelfHook, we can get rid of all the manual hacking around with patchelf. Use install to install to $out (cherry picked from commit fe56ad7)
we requireFile, so hydra can't build it anyways. (cherry picked from commit 9770699)
641afcf
to
047c7ab
Compare
Success on x86_64-darwin (full log) Attempted: python Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python Partial log (click to expand)
|
👍 |
Motivation for this change
Backport of #40688 to release-18.03.
This PR:
LD_LIBRARY_PATH
for binaries in therepatchelf
s some previously missed binariesodpi
library, so it can find the oracle-instantclient libraries without having to setORACLE_HOME
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)