Revert "buildenv: read propagated-user-env-packages line-by-line"#27859
Revert "buildenv: read propagated-user-env-packages line-by-line"#27859Ericson2314 merged 1 commit intoNixOS:stagingfrom
Conversation
This reverts commit dce958a.
|
@adisbladis I think you are correct that this should be reverted. Note that this needs to go in staging instead. |
|
ping @Ericson2314 |
|
Please do NOT merge and wait for @Ericson2314's reply :) |
|
Ah thanks. I forgot that @ttuegel fixed my earlier change here when I rolled it back. I think it would be better to continue reading the entire file while splitting on newline and space alike. See NixOS/nix#1482 for how that's done in Perl. The reason for this is other code (e.g. https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L309) reads the entire file (even before any of my changes). [In https://github.com//pull/27427#issuecomment-318737198, @oxij proposes that we switch to @edolstra Any opinions? Not quite sure where you stand from the Nix PRs. |
|
It's good to come up with a long-term solution, but if that takes time I prefer we roll back as soon as possible and fix issues for our users. We can come up with a long-term solution later. |
|
|
This reverts commit dce958a.
Motivation for this change
This change was originally a fix for 3cb745d which was reverted in b087618
Since the revert dce958a breaks Qt applications.
I don't know if this is the correct fix or if 3cb745d should be reinstated, the commit message in the revert made me lean towards just restoring the old behaviour.
Either solution would work fine, I have tested both.
If that solution is preferable I can close this one and create a new PR.
Things done
Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)cc @ttuegel