-
-
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
ceph: Add makeWrapper to dependencies and nativeBuildInputs #37597
Conversation
The ceph-mgr daemon needs to know the location of cephs own-made python modules for some of the modules that you can enable for it. With wrapProgram, a wrapper is added that sets the proper pythonpath environment variable for the ceph-mgr daemon so its modules can find the ceph python modules
@GrahamcOfBorg test ceph |
Success on aarch64-linux Attempted: tests.ceph No partial log is available. |
@@ -159,6 +160,7 @@ stdenv.mkDerivation { | |||
|
|||
postFixup = '' | |||
wrapPythonPrograms | |||
wrapProgram $out/bin/ceph-mgr --set PYTHONPATH $out/lib/python2.7/site-packages |
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.
- wrapProgram $out/bin/ceph-mgr --set PYTHONPATH $out/lib/python2.7/site-packages
+ wrapProgram $out/bin/ceph-mgr --set PYTHONPATH $out/${python2Packages.python.sitePackages}
Failure on x86_64-linux (full log) Attempted: tests.ceph Partial log (click to expand)
|
…kages.python.sitePackages attribute instead
@GrahamcOfBorg test ceph |
Success on aarch64-linux Attempted: tests.ceph No partial log is available. |
Failure on x86_64-linux (full log) Attempted: tests.ceph Partial log (click to expand)
|
@fpletz borg will always run into timeouts when compiling ceph. |
LGTM and fixes #36622 Similar fixes will be needed for several other programs as well, but that can be handled separately. :) |
backport: |
Motivation for this change
The ceph-mgr daemon needs to know the location of cephs own-made python modules for some of the modules that you can enable for it.
With wrapProgram, a wrapper is added that sets the proper pythonpath environment variable for the ceph-mgr daemon so its modules can find the ceph python modules.
It also adds cherrypy to the python env used by the python scripts, as its needed for the dashboard module for ceph-mgr.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)