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
openldap: load configuration files from global sysconfdir /etc #21648
Conversation
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.
Approved with NixOS and a configuration for an openldap-server.
Why is out in brackets (see installflags)?
$(foo) is expanded late, by Make. It seems to be convention to use in case of Make flags in nixpkgs, just by looking at the number of matches in the package tree. I wonder why the build fails, though, I can't reproduce it. |
You mean the travis-ci builds? Openldap is dependency for a huge amount of packages. I think the check will try to build all of them and something different went wrong. |
AFAICT this is pretty much unrelated to my change. |
Any idea what I can do? |
The travis-ci tests failed because of "No disk space left" and "size of logfile exceeded". So I think we don't need to worry about these failures. |
You can try to use nox-review to build all dependent packages. This failed on my virtual machine with 16 GB diskspace. I think you need much more space to test the huge amount of packages with openldap as dependencies. Nevertheless I think your PR is ok. |
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.
👍 but not sure if we should push this to staging first?
@vcunat ^ staging? |
Should be merged together with: #21764 |
Out of curiosity, why load it from /etc, instead of a configuration in the nix store? This seems a bit antithetical to NixOS. |
@grahamc see pull request description. |
Sorry :/ I missed |
Yes, better staging – my tool shows >4k rebuilds just on x86_64-linux. |
Motivation for this change
openldap is currently built so that the client programs only ever read the sample configuration file in
$out/etc/openldap/ldap.conf
. The path is fixed and can't be changed via runtime parameters, while some options can only be set through that file. This simple change solves the problem by separating the install and runtime sysconfdirs so thatenvironment.etc."openldap/ldap.conf"
can be used to configure openldap.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)