-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
rubyPackages.pg: use pkg-config instead of pg_config #237858
Conversation
This change forces pg native extension to use pkg-config to locate libpq instead of running pg_config. It also removes an unnecessary reference to postgresql package since build flags are embedded in the output at `$out/${ruby.gemPath}/build_info/*`.
Result of 15 packages built:
|
Result of 15 packages built:
|
# Note that setting --with-pg-config=${postgresql}/bin/pg_config would add | ||
# an unnecessary reference to the entire postgresql package. | ||
buildFlags = [ "--with-pg-config=ignore" ]; | ||
nativeBuildInputs = [ pkg-config ]; |
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.
just for reference, #234470 once that gets merged we can just switch to use libpq instead of postgresql
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.
Thanks, subscribed to PR updates.
Result of 4 packages marked as broken and skipped:
15 packages built:
@tie just checking did you ommit broken/skipped packages ? |
@kirillrdy, I’ve run Thanks for pointing that out though, I’ve re-read |
Result of 4 packages marked as broken and skipped:
15 packages built:
|
Result of 2 packages marked as broken and skipped:
10 packages built:
|
Successfully created backport PR for |
Description of changes
This change forces pg native extension to use pkg-config to locate libpq instead of running pg_config. It also removes an unnecessary reference to postgresql package since build flags are embedded in the output at
$out/${ruby.gemPath}/build_info/*
.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)