Skip to content

postgresql: always create the bin directory in postgresqlAndPlugins#58251

Merged
danbst merged 2 commits intoNixOS:masterfrom
marsam:postgresql-plugins-bin
Jul 16, 2019
Merged

postgresql: always create the bin directory in postgresqlAndPlugins#58251
danbst merged 2 commits intoNixOS:masterfrom
marsam:postgresql-plugins-bin

Conversation

@marsam
Copy link
Contributor

@marsam marsam commented Mar 25, 2019

This is needed because some PostgreSQL plugins don't have a bin
directory. If only these plugins are listed in cfg.extraPlugins
buildEnv will turn $out/bin into a symbolic link to ${pg}/bin. Lateron
we try to rm $out/bin/{pg_config,postgres,pg_ctl} which will then fail
because $out/bin will be read-only.

Rebased from #44379, which didn't get merged
Closes #22653

backport please

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@marsam marsam requested a review from thoughtpolice as a code owner March 25, 2019 12:04
@GrahamcOfBorg GrahamcOfBorg added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Mar 25, 2019
@GrahamcOfBorg GrahamcOfBorg requested a review from danbst March 31, 2019 01:36
@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Mar 31, 2019
This is needed because some PostgreSQL plugins don't have a bin
directory. If only these plugins are listed in cfg.extraPlugins buildEnv
will turn $out/bin into a symbolic link to ${pg}/bin. Lateron we try to
rm $out/bin/{pg_config,postgres,pg_ctl} which will then fail because
$out/bin will be read-only.
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels May 4, 2019
@aanderse
Copy link
Member

@marsam Is this PR still valid? Are you just waiting for review from someone like @thoughtpolice, @danbst, or @aszlig?

@marsam
Copy link
Contributor Author

marsam commented Jul 16, 2019

Is this PR still valid?

yes, is still valid. I'd really appreciate a review of the PostgreSQL package maintainers

@danbst danbst merged commit 4a2375c into NixOS:master Jul 16, 2019
@aanderse
Copy link
Member

Thanks team!

@marsam marsam deleted the postgresql-plugins-bin branch July 16, 2019 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Postgresql extraPlugins require /bin dir to exist in extension directory

6 participants