-
Notifications
You must be signed in to change notification settings - Fork 372
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
Remove redundant setting of environment variables #1561
Conversation
(Please see prior discussion in #1545.) The underlying issue was as follows: the binaries could find the libraries (
But the libraries themselves (e.g. |
extras/travis_build.sh
Outdated
@@ -108,7 +106,7 @@ if [ "$xLIBNEUROSIM" = "1" ] ; then | |||
CONFIGURE_LIBNEUROSIM="-Dwith-libneurosim=$HOME/.cache/libneurosim.install" | |||
chmod +x extras/install_csa-libneurosim.sh | |||
./extras/install_csa-libneurosim.sh | |||
export LD_LIBRARY_PATH=$HOME/.cache/csa.install/lib:$LD_LIBRARY_PATH | |||
export LD_LIBRARY_PATH=$HOME/.cache/csa.install/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} |
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.
👍
…ce nest_vars instead
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.
I'll approve once the tests pass
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.
@clinssen
This change causes make installcheck
to behave like if it is running on Travis.
bash: /home/travis/build/nest/nest-simulator/result/bin/nest_vars.sh: No such file or directory
The user specified install directory seems to be ignored.
I really appreciate all the feedback so far, but we are still in draft mode and I'm still experimenting with possible solutions! @jougs: regrettably, it seems that the adding a custom dependency option will not work. The environment sourced in the "update_environment" custom CMake target does not carry over to the environment in which It looks like the invocation in "make installcheck" could be changed from just invoking @heplesser: I can still add the dependency of installcheck on install without a problem. |
This looks like a clean solution.
Good. |
Just a quick heads up: I decided to resect my solution to #345 out of #1404 and make it into a new standalone PR. With that finished, |
Thanks @jougs, that simplifies things. Then hopefully you won't mind if I crudely insert a There is one related issue that I'm now running into. After #1513, we are falsely advertising @heplesser: adding a dependency of "installtarget" on "install" turns out to be not supported by CMake, because "install" is a built-in target. They've had an issue open for this for over 10 years (https://gitlab.kitware.com/cmake/cmake/-/issues/8438). There are no workarounds that I could find. |
I do exactly the same in my refactoring branch 😄
This sounds good to me.
Probably this is the reason why it is not implemented. Can you please add a corresponding comment, so we don't have to re-discover this each second year? Thanks! |
@clinssen Let me know when this PR can be moved out of Draft state! |
@heplesser: it's ready for review! Could you double-check the new MacOS test in |
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.
@clinssen Looks good!
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.
Nice! Please see my inline comments for a more refined assessment ;-)
NP: Kid Loco – Confessions (Parov Stelar Remix)
Co-authored-by: Jochen Martin Eppler <[email protected]>
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 a small one left.
@gtrensch, just to be on the safe side: Does this now solve all issues you described and observed? |
Co-authored-by: Jochen Martin Eppler <[email protected]>
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.
Approving.
Replaces #1545 and fixes #972.