Skip to content

Why does Qt 5 setup hook add all Qt modules to propagated user env packages? #14937

Closed

Description

@abbradar

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:

DwarfTherapist
dwarftherapist
moc
qdbuscpp2xml
qdbusxml2cpp
qdoc
qlalr
qmake
rcc
syncqt.pl
uic

What happens here? Does anyone have any idea where do these files come from?

Activity

  1. added
    0.kind: question
    on Apr 23, 2016
  2. abbradar commented on Apr 24, 2016

    @abbradar
    MemberAuthor

    cc @vcunat (you've modified it to work with multiple outputs -- maybe you have an idea?)

  3. changed the title [-]Strange behavoiur of buildEnv[/-] [+]Strange behaviour of buildEnv[/+] on Apr 24, 2016
  4. vcunat commented on Apr 24, 2016

    @vcunat
    Member

    I was following this ticket, but I've got no idea yet.

  5. abbradar commented on Apr 24, 2016

    @abbradar
    MemberAuthor

    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.

  6. abbradar commented on Apr 24, 2016

    @abbradar
    MemberAuthor

    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

  7. 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
  8. ttuegel commented on Apr 26, 2016

    @ttuegel
    Member

    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.

  9. added a commit that references this issue on Apr 26, 2016
    ecab17c
  10. ttuegel commented on Apr 29, 2016

    @ttuegel
    Member

    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.

  11. abbradar commented on May 9, 2016

    @abbradar
    MemberAuthor

    Thanks for investigation! (I've forgotten about this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: question

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions