You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why does Qt 5 setup hook add all Qt modules to propagated user env packages? #14937
While trying to fix dwarf-therapist on master I ran into a strange issue. To reproduce, try building dwarf-therapist -- it should fail with:
rm: cannot remove '/nix/store/vzihksav0gb0f246ssbhx1g511n2z37k-dwarf-therapist-37.0.0/bin': Is a directory
Observe that the only paths member in pkgs/games/dwarf-fortress/dwarf-therapist/wrapper.nix is dwarf-therapist-original. To observe its contents, build dwarf-fortress-packages.dwarf-therapist-original -- its bin should contain only two files. Then, try to add ls $out/bin to postBuild in the wrapper and observe this:
changed the title [-]Strange behaviour of buildEnv[/-][+]Why does Qt 5 setup hook add all Qt modules to propagated user env packages?[/+]on Apr 24, 2016
I think the behavior of adding them all to propagatedUserEnvPkgs predates the multiple-outputs split. I think it should be fine to remove that, as long as they all still go into propagatedBuildInputs. I will check and get back to you.
Upon further investigation, we really do need to keep the propagatedUserEnvPkgs there. Many Qt components have dependencies they can only find at runtime. This is unfortunate, but it's the best I can do right now.
Activity
abbradar commentedon Apr 24, 2016
cc @vcunat (you've modified it to work with multiple outputs -- maybe you have an idea?)
[-]Strange behavoiur of buildEnv[/-][+]Strange behaviour of buildEnv[/+]vcunat commentedon Apr 24, 2016
I was following this ticket, but I've got no idea yet.
abbradar commentedon Apr 24, 2016
I'll try to poke around with trace around the builder script (don't want to dive there yet ~_^) and see what I can find.
abbradar commentedon Apr 24, 2016
I think this line in Qt 5 setup hook produces this. Still testing what happens without it. I'm not sure why is this needed; cc @ttuegel
EDIT: commenting this line fixes my problem
[-]Strange behaviour of buildEnv[/-][+]Why does Qt 5 setup hook add all Qt modules to propagated user env packages?[/+]ttuegel commentedon Apr 26, 2016
I think the behavior of adding them all to
propagatedUserEnvPkgspredates the multiple-outputs split. I think it should be fine to remove that, as long as they all still go intopropagatedBuildInputs. I will check and get back to you.qt55.qtbase: don't add submodules to propagatedUserEnvPkgs
ttuegel commentedon Apr 29, 2016
Upon further investigation, we really do need to keep the
propagatedUserEnvPkgsthere. Many Qt components have dependencies they can only find at runtime. This is unfortunate, but it's the best I can do right now.abbradar commentedon May 9, 2016
Thanks for investigation! (I've forgotten about this)